Package sklearn.feature_extraction.text
Class TfidfVectorizer
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- net.razorvine.pickle.objects.ClassDict
-
- org.jpmml.python.PythonObject
-
- sklearn.Step
-
- sklearn.Transformer
-
- sklearn.feature_extraction.text.CountVectorizer
-
- sklearn.feature_extraction.text.TfidfVectorizer
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,HasNumberOfFeatures,HasType
public class TfidfVectorizer extends CountVectorizer
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class sklearn.feature_extraction.text.CountVectorizer
TOKEN_PATTERN
-
Fields inherited from interface sklearn.HasNumberOfFeatures
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description TfidfVectorizer(String module, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dmg.pmml.ApplyencodeApply(org.dmg.pmml.DefineFunction defineFunction, org.jpmml.converter.Feature feature, int index, String term)org.dmg.pmml.DefineFunctionencodeDefineFunction(org.jpmml.converter.Feature feature, SkLearnEncoder encoder)List<org.jpmml.converter.Feature>encodeFeatures(List<org.jpmml.converter.Feature> features, SkLearnEncoder encoder)StringfunctionName()org.jpmml.python.TypeInfogetDType()TfidfTransformergetTransformer()-
Methods inherited from class sklearn.feature_extraction.text.CountVectorizer
getAnalyzer, getBinary, getDataType, getLowercase, getNGramRange, getNumberOfFeatures, getOpType, getPreprocessor, getStopWords, getStripAccents, getTokenizer, getTokenPattern, getVocabulary
-
Methods inherited from class sklearn.Transformer
checkFeatures, encode, getDType, getOptionalDType, updateDataField, updateFeatures
-
Methods inherited from class sklearn.Step
createFieldName, createFieldName, createFieldName, getPMMLName, setPMMLName
-
Methods inherited from class org.jpmml.python.PythonObject
get, getArray, getArray, getArray, getArrayShape, getArrayShape, getBoolean, getBooleanArray, getClassName, getDict, getInteger, getIntegerArray, getList, getList, getListLike, getListLike, getNumber, getNumberArray, getObject, getOptional, getOptionalBoolean, getOptionalObject, getOptionalScalar, getOptionalString, getPythonModule, getPythonName, getPythonObject, getScalar, getString, getTuple, getTupleList, setClassName
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getDType
public org.jpmml.python.TypeInfo getDType()
- Overrides:
getDTypein classCountVectorizer
-
encodeFeatures
public List<org.jpmml.converter.Feature> encodeFeatures(List<org.jpmml.converter.Feature> features, SkLearnEncoder encoder)
- Overrides:
encodeFeaturesin classCountVectorizer
-
encodeDefineFunction
public org.dmg.pmml.DefineFunction encodeDefineFunction(org.jpmml.converter.Feature feature, SkLearnEncoder encoder)- Overrides:
encodeDefineFunctionin classCountVectorizer
-
encodeApply
public org.dmg.pmml.Apply encodeApply(org.dmg.pmml.DefineFunction defineFunction, org.jpmml.converter.Feature feature, int index, String term)- Overrides:
encodeApplyin classCountVectorizer
-
functionName
public String functionName()
- Overrides:
functionNamein classCountVectorizer
-
getTransformer
public TfidfTransformer getTransformer()
-
-