Packages

c

com.johnsnowlabs.ml

T5MedicalEncoderDecoder

abstract class T5MedicalEncoderDecoder extends MedicalEncoderDecoderModel

Linear Supertypes
MedicalEncoderDecoderModel, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. T5MedicalEncoderDecoder
  2. MedicalEncoderDecoderModel
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new T5MedicalEncoderDecoder(spp: SentencePieceWrapper, additionalTokens: Map[Int, String] = Map())

Type Members

  1. class DecoderProcessor extends AnyRef

Abstract Value Members

  1. abstract def tag(batch: Seq[Array[Int]], maxNewTokens: Int, maxTextLength: Int, doSample: Boolean, topK: Int, randomSeed: Option[Int], ignoreTokenIds: Array[Int] = Array(), stopAtEos: Boolean, noRepeatNgramSize: Int): (Array[Array[Int]], Array[Float])
    Attributes
    protected

Concrete 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 additionalTokens: Map[Int, String]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def calcBannedNgramTokens(prevInputIds: Seq[Array[Int]], numHypos: Int, noRepeatNgramSize: Int, curLen: Int): Array[Array[Int]]
    Attributes
    protected
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def decode(sentences: Array[Array[Int]]): Seq[String]
    Attributes
    protected
  9. def encode(sentences: Seq[Annotation], task: String): Seq[Array[Int]]
    Attributes
    protected
  10. def encodeS(sentences: Seq[String], task: String): Seq[Array[Int]]
    Attributes
    protected
  11. val eosTokenId: Int
    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def generate(prompts: Seq[Annotation], batchSize: Int, maxNewTokens: Int, maxContextLength: Int, doSample: Boolean, topK: Int, randomSeed: Option[Int], ignoreTokenIds: Array[Int], isCaseSensitive: Boolean, stopAtEos: Boolean, noRepeatNgramSize: Int): Seq[Annotation]
    Definition Classes
    T5MedicalEncoderDecoder → MedicalEncoderDecoderModel
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getGeneratedNgrams(prevInputIds: Seq[Array[Int]], generatedNgrams: Array[Map[IndexedSeq[Int], List[Int]]], hypoIdx: Int, curLen: Int, noRepeatNgramSize: Int): Array[Int]
    Attributes
    protected
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val paddingTokenId: Int
    Attributes
    protected
  24. val pieceSize: Int
    Attributes
    protected
  25. def predict(sentences: Seq[Annotation], task: String, batchSize: Int, maxNewTokens: Int, maxTextLength: Int, doSample: Boolean, topK: Int, randomSeed: Option[Int] = None, ignoreTokenIds: Array[Int] = Array(), isCaseSensitive: Boolean, stopAtEos: Boolean, noRepeatNgramSize: Int, refineSummary: Boolean = false, refineSummaryTargetLength: Int = 100, refineChunkSize: Int = 512, refineMaxAttempts: Int = 3): Seq[Annotation]
    Definition Classes
    T5MedicalEncoderDecoder → MedicalEncoderDecoderModel
  26. def predictQuestions(questionAndContexts: Seq[(Annotation, Annotation)], batchSize: Int, maxNewTokens: Int, maxContextLength: Int, doSample: Boolean, topK: Int, questionPrompt: String, randomSeed: Option[Int] = None, ignoreTokenIds: Array[Int] = Array(), isCaseSensitive: Boolean, questionAnswerTerminals: Array[Int], skipLastToken: Boolean, useCache: Boolean, noRepeatNgramSize: Int): Seq[Annotation]
    Definition Classes
    MedicalEncoderDecoderModel
  27. def refinedPredict(batch: Seq[String], task: String, maxNewTokens: Int, maxTextLength: Int, doSample: Boolean, topK: Int, randomSeed: Option[Int] = None, ignoreTokenIds: Array[Int] = Array(), stopAtEos: Boolean, noRepeatNgramSize: Int, refineSummaryTargetLength: Int = 100, refineChunkSize: Int = 512, sumBelowTargetLength: Boolean = true): (Seq[String], Seq[Float])
  28. def sessionWarmup(): Unit
    Definition Classes
    T5MedicalEncoderDecoder → MedicalEncoderDecoderModel
  29. def setTensorByIndicesToValue(prevInputIds: Array[Float], indices: IndexedSeq[Boolean], value: Float): Array[Float]
    Attributes
    protected
  30. val spp: SentencePieceWrapper
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. val vocabSize: Int
    Attributes
    protected
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from MedicalEncoderDecoderModel

Inherited from AnyRef

Inherited from Any

Ungrouped