trait SummarizationParams extends Params
Task-level parameters shared between the Summarization estimator and the fitted SummarizationModel.
- Grouped
- Alphabetic
- By Inheritance
- SummarizationParams
- Params
- Serializable
- Serializable
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
$[T](param: Param[T]): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
chunkOverlap: IntParam
Number of sentences repeated between consecutive chunks (Default:
1). -
val
chunkSize: IntParam
Chunk size in approximate tokens used for hierarchical summarization (Default:
0= derive automatically from the model's context limit). -
final
def
clear(param: Param[_]): SummarizationParams.this.type
- Definition Classes
- Params
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
copyValues[T <: Params](to: T, extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
defaultCopy[T <: Params](extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
explainParam(param: Param[_]): String
- Definition Classes
- Params
-
def
explainParams(): String
- Definition Classes
- Params
-
final
def
extractParamMap(): ParamMap
- Definition Classes
- Params
-
final
def
extractParamMap(extra: ParamMap): ParamMap
- Definition Classes
- Params
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
focus: Param[String]
Optional free-text focus hint included in the LLM prompt, e.g.
Optional free-text focus hint included in the LLM prompt, e.g. "main findings" (Default:
""). Only applies to thellmmethod. -
final
def
get[T](param: Param[T]): Option[T]
- Definition Classes
- Params
- def getChunkOverlap: Int
- def getChunkSize: Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getDefault[T](param: Param[T]): Option[T]
- Definition Classes
- Params
- def getFocus: String
- def getGpuLayers: Int
- def getLongDocumentStrategy: String
- def getMaxSummaryLength: Int
- def getMethod: String
- def getMinSummaryLength: Int
- def getMmrLambda: Float
- def getModel: String
- def getNoRepeatNgramSize: Int
- def getNumBeams: Int
-
final
def
getOrDefault[T](param: Param[T]): T
- Definition Classes
- Params
-
def
getParam(paramName: String): Param[Any]
- Definition Classes
- Params
- def getPositionBias: Float
- def getSummaryStyle: String
- def getTemperature: Float
- def getTopP: Float
-
val
gpuLayers: IntParam
Number of model layers offloaded to the GPU for the
llmmethod (Default:99= offload all).Number of model layers offloaded to the GPU for the
llmmethod (Default:99= offload all). Set to0on CPU-only clusters. Ignored by the other methods. -
final
def
hasDefault[T](param: Param[T]): Boolean
- Definition Classes
- Params
-
def
hasParam(paramName: String): Boolean
- Definition Classes
- Params
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isDefined(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isSet(param: Param[_]): Boolean
- Definition Classes
- Params
-
val
longDocumentStrategy: Param[String]
Strategy for documents longer than the model context:
auto,truncateorhierarchical(Default:auto).Strategy for documents longer than the model context:
auto,truncateorhierarchical(Default:auto).autosummarizes directly when the document fits and falls back to hierarchical chunk-then-combine summarization when it does not. Sincehierarchicalalso summarizes a fitting document in a single pass,autoandhierarchicalcurrently behave identically; onlytruncatediffers (it cuts the document to the context budget). -
val
maxSummaryLength: IntParam
Target maximum summary length in words/tokens, approximate (Default:
250). -
val
method: Param[String]
Summarization method:
llm,encoder_decoderorextractive(Default:llm).Summarization method:
llm,encoder_decoderorextractive(Default:llm).llm: an instruction-tuned GGUF LLM (via AutoGGUFModel / llama.cpp) prompted for summarization.encoder_decoder: a specialized abstractive summarization model (DistilBART).extractive: selects the most central sentences of the original document (embedding-based centrality with position prior and MMR redundancy control).
-
val
minSummaryLength: IntParam
Minimum summary length in words/tokens, generative methods only (Default:
20). -
val
mmrLambda: FloatParam
MMR trade-off between relevance and redundancy in extractive selection, higher = more relevance-driven (Default:
0.7).MMR trade-off between relevance and redundancy in extractive selection, higher = more relevance-driven (Default:
0.7). Only applies to theextractivemethod. -
val
model: Param[String]
Optional pretrained model name overriding the method's default model (Default:
""= use the method's default). -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
noRepeatNgramSize: IntParam
Size of n-grams that may not repeat in the generated summary (Default:
3).Size of n-grams that may not repeat in the generated summary (Default:
3). Only applies to theencoder_decodermethod;0disables the constraint. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
numBeams: IntParam
Number of beams for beam search (Default:
4).Number of beams for beam search (Default:
4). Only applies to theencoder_decodermethod. -
lazy val
params: Array[Param[_]]
- Definition Classes
- Params
-
val
positionBias: FloatParam
Weight of the lead-position prior in extractive sentence ranking (Default:
0.3).Weight of the lead-position prior in extractive sentence ranking (Default:
0.3). Only applies to theextractivemethod. -
final
def
set(paramPair: ParamPair[_]): SummarizationParams.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set(param: String, value: Any): SummarizationParams.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set[T](param: Param[T], value: T): SummarizationParams.this.type
- Definition Classes
- Params
- def setChunkOverlap(value: Int): SummarizationParams.this.type
- def setChunkSize(value: Int): SummarizationParams.this.type
-
final
def
setDefault(paramPairs: ParamPair[_]*): SummarizationParams.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
setDefault[T](param: Param[T], value: T): SummarizationParams.this.type
- Attributes
- protected[org.apache.spark.ml]
- Definition Classes
- Params
- def setFocus(value: String): SummarizationParams.this.type
- def setGpuLayers(value: Int): SummarizationParams.this.type
- def setLongDocumentStrategy(value: String): SummarizationParams.this.type
- def setMaxSummaryLength(value: Int): SummarizationParams.this.type
- def setMethod(value: String): SummarizationParams.this.type
- def setMinSummaryLength(value: Int): SummarizationParams.this.type
- def setMmrLambda(value: Float): SummarizationParams.this.type
- def setModel(value: String): SummarizationParams.this.type
- def setNoRepeatNgramSize(value: Int): SummarizationParams.this.type
- def setNumBeams(value: Int): SummarizationParams.this.type
- def setPositionBias(value: Float): SummarizationParams.this.type
- def setSummaryStyle(value: String): SummarizationParams.this.type
- def setTemperature(value: Float): SummarizationParams.this.type
- def setTopP(value: Float): SummarizationParams.this.type
-
val
summaryStyle: Param[String]
Summary style used to build the LLM prompt:
concise,detailedorbullets(Default:concise).Summary style used to build the LLM prompt:
concise,detailedorbullets(Default:concise). Only applies to thellmmethod. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
temperature: FloatParam
Generation temperature (Default:
0.2).Generation temperature (Default:
0.2). Applies to thellmmethod. -
def
toString(): String
- Definition Classes
- Identifiable → AnyRef → Any
-
val
topP: FloatParam
Top-p (nucleus) sampling (Default:
0.9).Top-p (nucleus) sampling (Default:
0.9). Applies to thellmmethod. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()