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])

Type Members

  1. case class SpanExample extends Product with Serializable
    Attributes
    protected
    Definition Classes
    XXXForClassification

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