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