c

com.johnsnowlabs.ml.tensorflow

TensorflowZeroShotNer

class TensorflowZeroShotNer extends RoBertaClassification

Linear Supertypes
RoBertaClassification, XXXForClassification, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TensorflowZeroShotNer
  2. RoBertaClassification
  3. XXXForClassification
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TensorflowZeroShotNer(tensorflowWrapper: Option[TensorflowWrapper], onnxWrapper: Option[OnnxWrapper], sentenceStartTokenId: Int, sentenceEndTokenId: Int, sentencePadTokenId: Int, handleImpossibleAnswer: Boolean = false, configProtoBytes: Option[Array[Byte]] = None, tags: Map[String, Int], signatures: Option[Map[String, String]] = None, merges: Map[(String, String), Int], vocabulary: Map[String, Int])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val _tfRoBertaSignatures: Map[String, String]
    Definition Classes
    RoBertaClassification
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def calculateSigmoid(scores: Array[Float]): Array[Float]
    Definition Classes
    XXXForClassification
  7. def calculateSoftmax(scores: Array[Float]): Array[Float]
    Definition Classes
    XXXForClassification
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def computeZeroShotLogitsWithONNX(batch: Seq[Array[Int]], maxSentenceLength: Int): Array[Float]
    Definition Classes
    RoBertaClassification
  10. def computeZeroShotLogitsWithTF(batch: Seq[Array[Int]], maxSentenceLength: Int): Array[Float]
    Definition Classes
    RoBertaClassification
  11. def constructAnnotationForSequenceClassifier(sentence: Sentence, label: String, meta: Array[(String, String)]): Annotation
    Definition Classes
    XXXForClassification
  12. def constructMetaForSequenceClassifier(tags: Map[String, Int], scores: Array[Float]): Array[(String, String)]
    Definition Classes
    XXXForClassification
  13. val detectedEngine: String
    Definition Classes
    RoBertaClassification
  14. def encode(sentences: Seq[(WordpieceTokenizedSentence, Int)], maxSequenceLength: Int): Seq[Array[Int]]
    Definition Classes
    XXXForClassification
  15. def encodeSequence(seq1: Seq[WordpieceTokenizedSentence], seq2: Seq[WordpieceTokenizedSentence], maxSequenceLength: Int): Seq[Array[Int]]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  16. def encodeSequenceWithPadding(seq1: Seq[WordpieceTokenizedSentence], seq2: Seq[WordpieceTokenizedSentence], maxSequenceLength: Int): Seq[Array[Int]]
    Definition Classes
    XXXForClassification
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def findIndexedToken(tokenizedSentences: Seq[TokenizedSentence], sentence: (WordpieceTokenizedSentence, Int), tokenPiece: TokenPiece): Option[IndexedToken]
    Definition Classes
    RoBertaClassification → XXXForClassification
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. val handleImpossibleAnswer: Boolean
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val logger: Logger
    Attributes
    protected
    Definition Classes
    RoBertaClassification
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. val onnxWrapper: Option[OnnxWrapper]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification
  30. def predict(tokenizedSentences: Seq[TokenizedSentence], batchSize: Int, maxSentenceLength: Int, caseSensitive: Boolean, tags: Map[String, Int]): Seq[Annotation]
    Definition Classes
    XXXForClassification
  31. def predictSequence(tokenizedSentences: Seq[TokenizedSentence], sentences: Seq[Sentence], batchSize: Int, maxSentenceLength: Int, caseSensitive: Boolean, coalesceSentences: Boolean, tags: Map[String, Int], activation: String): Seq[Annotation]
    Definition Classes
    XXXForClassification
  32. def predictSequenceWithZeroShot(tokenizedSentences: Seq[TokenizedSentence], sentences: Seq[Sentence], candidateLabels: Array[String], entailmentId: Int, contradictionId: Int, batchSize: Int, maxSentenceLength: Int, caseSensitive: Boolean, coalesceSentences: Boolean, tags: Map[String, Int], activation: String): Seq[Annotation]
    Definition Classes
    XXXForClassification
  33. def predictSpan(documents: Seq[Annotation], maxSentenceLength: Int, caseSensitive: Boolean, mergeTokenStrategy: String, engine: String): Seq[Annotation]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  34. def predictSpanMultipleChoice(documents: Seq[Annotation], choicesDelimiter: String, maxSentenceLength: Int, caseSensitive: Boolean): Seq[Annotation]
    Definition Classes
    XXXForClassification
  35. def scoresToLabelForSequenceClassifier(tags: Map[String, Int], scores: Array[Float]): String
    Definition Classes
    XXXForClassification
  36. val sentenceEndTokenId: Int
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  37. val sentencePadTokenId: Int
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  38. val sentenceStartTokenId: Int
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  39. val sigmoidThreshold: Float
    Attributes
    protected
    Definition Classes
    RoBertaClassification → XXXForClassification
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def tag(batch: Seq[Array[Int]]): Seq[Array[Array[Float]]]
    Definition Classes
    RoBertaClassification → XXXForClassification
  42. def tagSequence(batch: Seq[Array[Int]], activation: String): Array[Array[Float]]
    Definition Classes
    RoBertaClassification → XXXForClassification
  43. def tagSpan(batch: Seq[Array[Int]]): (Array[Array[Float]], Array[Array[Float]])
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  44. def tagSpanMultipleChoice(batch: Seq[Array[Int]]): Array[Float]
    Definition Classes
    XXXForClassification
  45. def tagZeroShotSequence(batch: Seq[Array[Int]], entailmentId: Int, contradictionId: Int, activation: String): Array[Array[Float]]
    Definition Classes
    RoBertaClassification → XXXForClassification
  46. val tensorflowWrapper: Option[TensorflowWrapper]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. def tokenizeDocument(docs: Seq[Annotation], maxSeqLength: Int, caseSensitive: Boolean): Seq[WordpieceTokenizedSentence]
    Definition Classes
    RoBertaClassification → XXXForClassification
  49. def tokenizeSeqString(candidateLabels: Seq[String], maxSeqLength: Int, caseSensitive: Boolean): Seq[WordpieceTokenizedSentence]
    Definition Classes
    RoBertaClassification → XXXForClassification
  50. def tokenizeWithAlignment(sentences: Seq[TokenizedSentence], maxSeqLength: Int, caseSensitive: Boolean): Seq[WordpieceTokenizedSentence]
    Definition Classes
    RoBertaClassification → XXXForClassification
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  54. def wordAndSpanLevelAlignmentWithTokenizer(tokenLogits: Array[Array[Float]], tokenizedSentences: Seq[TokenizedSentence], sentence: (WordpieceTokenizedSentence, Int), tags: Map[String, Int]): Seq[Annotation]
    Definition Classes
    XXXForClassification

Inherited from RoBertaClassification

Inherited from XXXForClassification

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped