Packages

class FinanceSummarizer extends MedicalSummarizer

Linear Supertypes
MedicalSummarizer, MedicalEncoderDecoder, CheckLicense, WriteSentencePieceModel, HasEngine, WriteOnnxModel, WriteTensorflowModel, HasBatchedAnnotate[MedicalEncoderDecoder], HasCaseSensitiveProperties, AnnotatorModel[MedicalEncoderDecoder], CanBeLazy, RawAnnotator[MedicalEncoderDecoder], HasOutputAnnotationCol, HasInputAnnotationCols, HasOutputAnnotatorType, ParamsAndFeaturesWritable, HasFeatures, DefaultParamsWritable, MLWritable, Model[MedicalEncoderDecoder], Transformer, PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. FinanceSummarizer
  2. MedicalSummarizer
  3. MedicalEncoderDecoder
  4. CheckLicense
  5. WriteSentencePieceModel
  6. HasEngine
  7. WriteOnnxModel
  8. WriteTensorflowModel
  9. HasBatchedAnnotate
  10. HasCaseSensitiveProperties
  11. AnnotatorModel
  12. CanBeLazy
  13. RawAnnotator
  14. HasOutputAnnotationCol
  15. HasInputAnnotationCols
  16. HasOutputAnnotatorType
  17. ParamsAndFeaturesWritable
  18. HasFeatures
  19. DefaultParamsWritable
  20. MLWritable
  21. Model
  22. Transformer
  23. PipelineStage
  24. Logging
  25. Params
  26. Serializable
  27. Serializable
  28. Identifiable
  29. AnyRef
  30. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

getParam

  1. def getConfigProtoBytes: Option[Array[Byte]]

    Definition Classes
    MedicalEncoderDecoder
  2. def getDoSample: Boolean

    Definition Classes
    MedicalEncoderDecoder
  3. def getIgnoreTokenIds: Array[Int]

    Definition Classes
    MedicalEncoderDecoder
  4. def getMaxNewTokens: Int

    Definition Classes
    MedicalEncoderDecoder
  5. def getMaxTextLength: Int

    Definition Classes
    MedicalEncoderDecoder
  6. def getMlFrameworkType: String

    Get ML framework type

    Get ML framework type

    Definition Classes
    MedicalEncoderDecoder
  7. def getNoRepeatNgramSize: Int

    Definition Classes
    MedicalEncoderDecoder
  8. def getRandomSeed: Option[Int]

    Definition Classes
    MedicalEncoderDecoder
  9. def getRefineChunkSize: Int

    Definition Classes
    MedicalEncoderDecoder
  10. def getRefineMaxAttempts: Int

    Definition Classes
    MedicalEncoderDecoder
  11. def getRefineSummaryTargetLength: Int

    Definition Classes
    MedicalEncoderDecoder
  12. def getStopAtEos: Boolean

    Checks whether text generation stops when the end-of-sentence token is encountered.

    Checks whether text generation stops when the end-of-sentence token is encountered.

    Definition Classes
    MedicalSummarizerMedicalEncoderDecoder

param

  1. val configProtoBytes: IntArrayParam

    ConfigProto from tensorflow, serialized into byte array.

    ConfigProto from tensorflow, serialized into byte array. Get with config_proto.SerializeToString()

    Definition Classes
    MedicalEncoderDecoder
  2. val doSample: BooleanParam

    Whether or not to use sampling, use greedy decoding otherwise (Default: false)

    Whether or not to use sampling, use greedy decoding otherwise (Default: false)

    Definition Classes
    MedicalEncoderDecoder
  3. var ignoreTokenIds: IntArrayParam

    A list of token ids which are ignored in the decoder's output (Default: Array())

    A list of token ids which are ignored in the decoder's output (Default: Array())

    Definition Classes
    MedicalEncoderDecoder
  4. val inputAnnotatorTypes: Array[AnnotatorType]

    Input annotator type : DOCUMENT

    Input annotator type : DOCUMENT

    Definition Classes
    MedicalEncoderDecoder → HasInputAnnotationCols
  5. val maxNewTokens: IntParam

    Maximum number of new tokens to be generated (Default: 30)

    Maximum number of new tokens to be generated (Default: 30)

    Definition Classes
    MedicalEncoderDecoder
  6. val maxTextLength: IntParam

    Maximum length of context text.

    Maximum length of context text. (Default: 1024)

    Definition Classes
    MedicalEncoderDecoder
  7. val mlFrameworkType: Param[String]

    ML framework type

    ML framework type

    Definition Classes
    MedicalEncoderDecoder
  8. val noRepeatNgramSize: IntParam

    If set to int > 0, all ngrams of that size can only occur once (Default: 0)

    If set to int > 0, all ngrams of that size can only occur once (Default: 0)

    Definition Classes
    MedicalEncoderDecoder
  9. val outputAnnotatorType: String

    Output annotator type : DOCUMENT

    Output annotator type : DOCUMENT

    Definition Classes
    MedicalEncoderDecoder → HasOutputAnnotatorType
  10. var randomSeed: Option[Int]

    Optional Random seed for the model.

    Optional Random seed for the model. Needs to be of type Long.

    Definition Classes
    MedicalEncoderDecoder
  11. val refineChunkSize: IntParam

    How large should refined chunks Be.

    How large should refined chunks Be. Should be equal to LLM context window size in tokens. Takes only effect when refineSummary=True

    Definition Classes
    MedicalEncoderDecoder
  12. val refineMaxAttempts: IntParam

    How many times should chunks be re-summarized while they are above SummaryTargetLength before stopping.

    How many times should chunks be re-summarized while they are above SummaryTargetLength before stopping. Takes only effect when refineSummary=True

    Definition Classes
    MedicalEncoderDecoder
  13. val refineSummary: BooleanParam

    Set true to perform refined summarization at increased computation cost.

    Set true to perform refined summarization at increased computation cost.

    Definition Classes
    MedicalEncoderDecoder
  14. val refineSummaryTargetLength: IntParam

    Target length for refined summary.

    Target length for refined summary. Text will be chunked and re-summarized until it is below this length or maximum attempts are used up.

    Definition Classes
    MedicalEncoderDecoder
  15. val task: Param[String]

    Set transformer task, e.g.

    Set transformer task, e.g. "summarize:" (Default: ""). The T5 task needs to be in the format "task:".

    Definition Classes
    MedicalEncoderDecoder
  16. val topK: IntParam

    The number of highest probability vocabulary tokens to keep for top-k-filtering (Default: 50)

    The number of highest probability vocabulary tokens to keep for top-k-filtering (Default: 50)

    Definition Classes
    MedicalEncoderDecoder
  17. val useCache: BooleanParam

    Cache internal state of the model to improve performance

    Cache internal state of the model to improve performance

    Definition Classes
    MedicalEncoderDecoder

setParam

  1. def setConfigProtoBytes(bytes: Array[Int]): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  2. def setDoSample(value: Boolean): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  3. def setIgnoreTokenIds(tokenIds: Array[Int]): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  4. def setMaxNewTokens(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  5. def setMaxTextLength(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  6. def setMlFrameworkType(value: String): FinanceSummarizer.this.type

    Set ML framework type

    Set ML framework type

    Definition Classes
    MedicalEncoderDecoder
  7. def setModelIfNotSet(spark: SparkSession, tfWrapper: TensorflowWrapper, spp: SentencePieceWrapper, useCache: Boolean): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  8. def setNoRepeatNgramSize(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  9. def setRandomSeed(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  10. def setRefineChunkSize(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  11. def setRefineMaxAttempts(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  12. def setRefineSummaryTargetLength(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  13. def setSignatures(value: Map[String, String]): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder
  14. def setStopAtEos(value: Boolean): FinanceSummarizer.this.type

    Determines whether text generation stops when the end-of-sentence token is encountered.

    Determines whether text generation stops when the end-of-sentence token is encountered.

    Definition Classes
    MedicalEncoderDecoder
  15. def setTopK(value: Int): FinanceSummarizer.this.type

    Definition Classes
    MedicalEncoderDecoder

Ungrouped

  1. type AnnotatorType = String
    Definition Classes
    HasOutputAnnotatorType
  1. def batchAnnotate(batchedAnnotations: Seq[Array[Annotation]]): Seq[Seq[Annotation]]
    Definition Classes
    MedicalEncoderDecoder → HasBatchedAnnotate
  2. def batchProcess(rows: Iterator[_]): Iterator[Row]
    Definition Classes
    HasBatchedAnnotate
  3. val batchSize: IntParam
    Definition Classes
    HasBatchedAnnotate
  4. val caseSensitive: BooleanParam
    Definition Classes
    HasCaseSensitiveProperties
  5. def checkValidEnvironment(spark: Option[SparkSession], scopes: Seq[String]): Unit
    Definition Classes
    CheckLicense
  6. def checkValidScope(scope: String): Unit
    Definition Classes
    CheckLicense
  7. def checkValidScopeAndEnvironment(scope: String, spark: Option[SparkSession], checkLp: Boolean): Unit
    Definition Classes
    CheckLicense
  8. def checkValidScopesAndEnvironment(scopes: Seq[String], spark: Option[SparkSession], checkLp: Boolean): Unit
    Definition Classes
    CheckLicense
  9. final def clear(param: Param[_]): FinanceSummarizer.this.type
    Definition Classes
    Params
  10. def copy(extra: ParamMap): MedicalEncoderDecoder
    Definition Classes
    RawAnnotator → Model → Transformer → PipelineStage → Params
  11. val engine: Param[String]
    Definition Classes
    HasEngine
  12. def explainParam(param: Param[_]): String
    Definition Classes
    Params
  13. def explainParams(): String
    Definition Classes
    Params
  14. final def extractParamMap(): ParamMap
    Definition Classes
    Params
  15. final def extractParamMap(extra: ParamMap): ParamMap
    Definition Classes
    Params
  16. val features: ArrayBuffer[Feature[_, _, _]]
    Definition Classes
    HasFeatures
  17. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  18. def getBatchSize: Int
    Definition Classes
    HasBatchedAnnotate
  19. def getCaseSensitive: Boolean
    Definition Classes
    HasCaseSensitiveProperties
  20. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  21. def getEngine: String
    Definition Classes
    HasEngine
  22. def getInputCols: Array[String]
    Definition Classes
    HasInputAnnotationCols
  23. def getLazyAnnotator: Boolean
    Definition Classes
    CanBeLazy
  24. def getModelIfNotSet: MedicalEncoderDecoderModel
    Definition Classes
    MedicalEncoderDecoder
  25. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  26. final def getOutputCol: String
    Definition Classes
    HasOutputAnnotationCol
  27. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  28. def getRefineSummary: Boolean
    Definition Classes
    MedicalEncoderDecoder
  29. def getSignatures: Option[Map[String, String]]
    Definition Classes
    MedicalEncoderDecoder
  30. def getUseCache: Boolean
    Definition Classes
    MedicalEncoderDecoder
  31. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  32. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  33. def hasParent: Boolean
    Definition Classes
    Model
  34. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  35. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  36. val lazyAnnotator: BooleanParam
    Definition Classes
    CanBeLazy
  37. def onWrite(path: String, spark: SparkSession): Unit
    Definition Classes
    MedicalSummarizerMedicalEncoderDecoder → ParamsAndFeaturesWritable
  38. val optionalInputAnnotatorTypes: Array[String]
    Definition Classes
    HasInputAnnotationCols
  39. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  40. var parent: Estimator[MedicalEncoderDecoder]
    Definition Classes
    Model
  41. def save(path: String): Unit
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  42. final def set[T](param: Param[T], value: T): FinanceSummarizer.this.type
    Definition Classes
    Params
  43. def setBatchSize(size: Int): FinanceSummarizer.this.type
    Definition Classes
    HasBatchedAnnotate
  44. def setCaseSensitive(value: Boolean): FinanceSummarizer.this.type
    Definition Classes
    HasCaseSensitiveProperties
  45. final def setInputCols(value: String*): FinanceSummarizer.this.type
    Definition Classes
    HasInputAnnotationCols
  46. def setInputCols(value: Array[String]): FinanceSummarizer.this.type
    Definition Classes
    HasInputAnnotationCols
  47. def setLazyAnnotator(value: Boolean): FinanceSummarizer.this.type
    Definition Classes
    CanBeLazy
  48. def setModelIfNotSet(spark: SparkSession, encoder: OnnxWrapper, decoder: OnnxWrapper, spp: SentencePieceWrapper): FinanceSummarizer.this.type
    Definition Classes
    MedicalEncoderDecoder
  49. final def setOutputCol(value: String): FinanceSummarizer.this.type
    Definition Classes
    HasOutputAnnotationCol
  50. def setParent(parent: Estimator[MedicalEncoderDecoder]): MedicalEncoderDecoder
    Definition Classes
    Model
  51. def setRefineSummary(value: Boolean): FinanceSummarizer.this.type
    Definition Classes
    MedicalEncoderDecoder
  52. val signatures: MapFeature[String, String]
    Definition Classes
    MedicalEncoderDecoder
  53. val stopAtEos: BooleanParam
    Definition Classes
    MedicalEncoderDecoder
  54. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  55. final def transform(dataset: Dataset[_]): DataFrame
    Definition Classes
    AnnotatorModel → Transformer
  56. def transform(dataset: Dataset[_], paramMap: ParamMap): DataFrame
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" )
  57. def transform(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): DataFrame
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" ) @varargs()
  58. final def transformSchema(schema: StructType): StructType
    Definition Classes
    RawAnnotator → PipelineStage
  59. val uid: String
    Definition Classes
    FinanceSummarizerMedicalSummarizerMedicalEncoderDecoder → Identifiable
  60. def write: MLWriter
    Definition Classes
    ParamsAndFeaturesWritable → DefaultParamsWritable → MLWritable
  61. def writeOnnxModel(path: String, spark: SparkSession, onnxWrapper: OnnxWrapper, suffix: String, fileName: String): Unit
    Definition Classes
    WriteOnnxModel
  62. def writeOnnxModels(path: String, spark: SparkSession, onnxWrappersWithNames: Seq[(OnnxWrapper, String)], suffix: String): Unit
    Definition Classes
    WriteOnnxModel
  63. def writeSentencePieceModel(path: String, spark: SparkSession, spp: SentencePieceWrapper, suffix: String, filename: String): Unit
    Definition Classes
    WriteSentencePieceModel
  64. def writeTensorflowHub(path: String, tfPath: String, spark: SparkSession, suffix: String): Unit
    Definition Classes
    WriteTensorflowModel
  65. def writeTensorflowModel(path: String, spark: SparkSession, tensorflow: TensorflowWrapper, suffix: String, filename: String, configProtoBytes: Option[Array[Byte]]): Unit
    Definition Classes
    WriteTensorflowModel
  66. def writeTensorflowModelV2(path: String, spark: SparkSession, tensorflow: TensorflowWrapper, suffix: String, filename: String, configProtoBytes: Option[Array[Byte]], savedSignatures: Option[Map[String, String]]): Unit
    Definition Classes
    WriteTensorflowModel