public class CountVectorizerModelData extends Object
CountVectorizerModel
.
This class also provides methods to convert model data from Table to a data stream, and classes to save/load model data.
Modifier and Type | Class and Description |
---|---|
static class |
CountVectorizerModelData.ModelDataDecoder
Decoder for
CountVectorizerModelData . |
static class |
CountVectorizerModelData.ModelDataEncoder
Encoder for
CountVectorizerModelData . |
Modifier and Type | Field and Description |
---|---|
String[] |
vocabulary
The array over terms, only the terms in the vocabulary will be counted.
|
Constructor and Description |
---|
CountVectorizerModelData() |
CountVectorizerModelData(String[] vocabulary) |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.streaming.api.datastream.DataStream<CountVectorizerModelData> |
getModelDataStream(org.apache.flink.table.api.Table modelDataTable)
Converts the table model to a data stream.
|
public String[] vocabulary
public CountVectorizerModelData()
public CountVectorizerModelData(String[] vocabulary)
public static org.apache.flink.streaming.api.datastream.DataStream<CountVectorizerModelData> getModelDataStream(org.apache.flink.table.api.Table modelDataTable)
modelDataTable
- The table model data.Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.