HashCountVectorizer

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

Constructors

Link copied to clipboard
public HashCountVectorizer<T> HashCountVectorizer(Integer nFeatures, IntRange ngramRange)

Functions

Link copied to clipboard
public Unit fit(List<List<String>> input)
Link copied to clipboard
public NDArray<Float, D2> fitTransform(List<List<String>> input)
Link copied to clipboard
public final Integer getNFeatures()
Link copied to clipboard
public final IntRange getNgramRange()
Link copied to clipboard
public NDArray<Float, D2> transform(List<List<String>> input)

Properties

Link copied to clipboard
private final Integer nFeatures
Link copied to clipboard
private final IntRange ngramRange