类 CountVectorizer
- java.lang.Object
-
- org.apache.flink.ml.feature.countvectorizer.CountVectorizer
-
- 所有已实现的接口:
Serializable,org.apache.flink.ml.api.Estimator<CountVectorizer,CountVectorizerModel>,org.apache.flink.ml.api.Stage<CountVectorizer>,org.apache.flink.ml.common.param.HasInputCol<CountVectorizer>,org.apache.flink.ml.common.param.HasOutputCol<CountVectorizer>,CountVectorizerModelParams<CountVectorizer>,CountVectorizerParams<CountVectorizer>,org.apache.flink.ml.param.WithParams<CountVectorizer>
public class CountVectorizer extends Object implements org.apache.flink.ml.api.Estimator<CountVectorizer,CountVectorizerModel>, CountVectorizerParams<CountVectorizer>
An Estimator which converts a collection of text documents to vectors of token counts. When an a-priori dictionary is not available, CountVectorizer can be used as an estimator to extract the vocabulary, and generates aCountVectorizerModel. The model produces sparse representations for the documents over the vocabulary, which can then be passed to other algorithms like LDA.- 另请参阅:
- 序列化表格
-
-
字段概要
-
从接口继承的字段 org.apache.flink.ml.feature.countvectorizer.CountVectorizerModelParams
BINARY, MIN_TF
-
从接口继承的字段 org.apache.flink.ml.feature.countvectorizer.CountVectorizerParams
MAX_DF, MIN_DF, VOCABULARY_SIZE
-
-
构造器概要
构造器 构造器 说明 CountVectorizer()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 CountVectorizerModelfit(org.apache.flink.table.api.Table... inputs)Map<org.apache.flink.ml.param.Param<?>,Object>getParamMap()static CountVectorizerload(org.apache.flink.table.api.bridge.java.StreamTableEnvironment tEnv, String path)voidsave(String path)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.apache.flink.ml.feature.countvectorizer.CountVectorizerModelParams
getBinary, getMinTF, setBinary, setMinTF
-
从接口继承的方法 org.apache.flink.ml.feature.countvectorizer.CountVectorizerParams
getMaxDF, getMinDF, getVocabularySize, setMaxDF, setMinDF, setVocabularySize
-
-
-
-
方法详细资料
-
fit
public CountVectorizerModel fit(org.apache.flink.table.api.Table... inputs)
- 指定者:
fit在接口中org.apache.flink.ml.api.Estimator<CountVectorizer,CountVectorizerModel>
-
getParamMap
public Map<org.apache.flink.ml.param.Param<?>,Object> getParamMap()
- 指定者:
getParamMap在接口中org.apache.flink.ml.param.WithParams<CountVectorizer>
-
save
public void save(String path) throws IOException
- 指定者:
save在接口中org.apache.flink.ml.api.Stage<CountVectorizer>- 抛出:
IOException
-
load
public static CountVectorizer load(org.apache.flink.table.api.bridge.java.StreamTableEnvironment tEnv, String path) throws IOException
- 抛出:
IOException
-
-