MultiNGram

class MultiNGram.MultiNGram(inputCol=None, lengths=None, outputCol=None)[source]

Bases: mmlspark.Utils.ComplexParamsMixin, pyspark.ml.util.JavaMLReadable, pyspark.ml.util.JavaMLWritable, pyspark.ml.wrapper.JavaTransformer

Parameters:
  • inputCol (str) – The name of the input column
  • lengths (object) – the collection of lengths to use for ngram extraction
  • outputCol (str) – The name of the output column (default: [self.uid]_output)
getInputCol()[source]
Returns:The name of the input column
Return type:str
static getJavaPackage()[source]

Returns package name String.

getLengths()[source]
Returns:the collection of lengths to use for ngram extraction
Return type:object
getOutputCol()[source]
Returns:The name of the output column (default: [self.uid]_output)
Return type:str
classmethod read()[source]

Returns an MLReader instance for this class.

setInputCol(value)[source]
Parameters:inputCol (str) – The name of the input column
setLengths(value)[source]
Parameters:lengths (object) – the collection of lengths to use for ngram extraction
setOutputCol(value)[source]
Parameters:outputCol (str) – The name of the output column (default: [self.uid]_output)
setParams(inputCol=None, lengths=None, outputCol=None)[source]

Set the (keyword only) parameters

Parameters:
  • inputCol (str) – The name of the input column
  • lengths (object) – the collection of lengths to use for ngram extraction
  • outputCol (str) – The name of the output column (default: [self.uid]_output)