CountVectorizer

public final class CountVectorizer<T extends Number> implements Vectorizer<T, Float>

Constructors

Link copied to clipboard
public CountVectorizer<T> CountVectorizer(    PercentOrCount minDf,     PercentOrCount maxDf,     IntRange ngramRange)

Functions

Link copied to clipboard
public Unit fit(List<List<String>> input)

Does a fitTransform

Link copied to clipboard
public D2SparseArray fitTransform(List<List<String>> input)
Link copied to clipboard
public final PercentOrCount getMaxDf()
Link copied to clipboard
public final PercentOrCount getMinDf()
Link copied to clipboard
public final IntRange getNgramRange()
Link copied to clipboard
public final Map<String, Integer> getVectorization()
Link copied to clipboard
public final Unit setVectorization(Map<String, Integer> vectorization)
Link copied to clipboard
public D2SparseArray transform(List<List<String>> input)

Properties

Link copied to clipboard
private final PercentOrCount maxDf
Link copied to clipboard
private final PercentOrCount minDf
Link copied to clipboard
private final IntRange ngramRange
Link copied to clipboard
private Map<String, Integer> vectorization