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 constructAnnotationForSequenceClassifier(sentence: Sentence, label: String, meta: Array[(String, String)]): Annotation
    Definition Classes
    XXXForClassification
  10. def constructMetaForSequenceClassifier(tags: Map[String, Int], scores: Array[Float]): Array[(String, String)]
    Definition Classes
    XXXForClassification
  11. val detectedEngine: String
    Definition Classes
    RoBertaClassification
  12. def encode(sentences: Seq[(WordpieceTokenizedSentence, Int)], maxSequenceLength: Int): Seq[Array[Int]]
    Definition Classes
    XXXForClassification
  13. def encodeSequence(seq1: Seq[WordpieceTokenizedSentence], seq2: Seq[WordpieceTokenizedSentence], maxSequenceLength: Int): Seq[Array[Int]]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def findIndexedToken(tokenizedSentences: Seq[TokenizedSentence], sentence: (WordpieceTokenizedSentence, Int), tokenPiece: TokenPiece): Option[IndexedToken]
    Definition Classes
    RoBertaClassification → XXXForClassification
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. val handleImpossibleAnswer: Boolean
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val logger: Logger
    Attributes
    protected
    Definition Classes
    RoBertaClassification
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. val onnxWrapper: Option[OnnxWrapper]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification
  27. def predict(tokenizedSentences: Seq[TokenizedSentence], batchSize: Int, maxSentenceLength: Int, caseSensitive: Boolean, tags: Map[String, Int]): Seq[Annotation]
    Definition Classes
    XXXForClassification
  28. 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
  29. 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
  30. def predictSpan(documents: Seq[Annotation], maxSentenceLength: Int, caseSensitive: Boolean, mergeTokenStrategy: String, engine: String): Seq[Annotation]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  31. def scoresToLabelForSequenceClassifier(tags: Map[String, Int], scores: Array[Float]): String
    Definition Classes
    XXXForClassification
  32. val sentenceEndTokenId: Int
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  33. val sentencePadTokenId: Int
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  34. val sentenceStartTokenId: Int
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  35. val sigmoidThreshold: Float
    Attributes
    protected
    Definition Classes
    RoBertaClassification → XXXForClassification
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def tag(batch: Seq[Array[Int]]): Seq[Array[Array[Float]]]
    Definition Classes
    RoBertaClassification → XXXForClassification
  38. def tagSequence(batch: Seq[Array[Int]], activation: String): Array[Array[Float]]
    Definition Classes
    RoBertaClassification → XXXForClassification
  39. def tagSpan(batch: Seq[Array[Int]]): (Array[Array[Float]], Array[Array[Float]])
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification → XXXForClassification
  40. def tagZeroShotSequence(batch: Seq[Array[Int]], entailmentId: Int, contradictionId: Int, activation: String): Array[Array[Float]]
    Definition Classes
    RoBertaClassification → XXXForClassification
  41. val tensorflowWrapper: Option[TensorflowWrapper]
    Definition Classes
    TensorflowZeroShotNer → RoBertaClassification
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. def tokenizeDocument(docs: Seq[Annotation], maxSeqLength: Int, caseSensitive: Boolean): Seq[WordpieceTokenizedSentence]
    Definition Classes
    RoBertaClassification → XXXForClassification
  44. def tokenizeSeqString(candidateLabels: Seq[String], maxSeqLength: Int, caseSensitive: Boolean): Seq[WordpieceTokenizedSentence]
    Definition Classes
    RoBertaClassification → XXXForClassification
  45. def tokenizeWithAlignment(sentences: Seq[TokenizedSentence], maxSeqLength: Int, caseSensitive: Boolean): Seq[WordpieceTokenizedSentence]
    Definition Classes
    RoBertaClassification → XXXForClassification
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  49. 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