Bm25Transformer

public final class Bm25Transformer implements Transformer<Float, Float>

Constructors

Link copied to clipboard
public Bm25Transformer Bm25Transformer(Integer k, Float b)

Functions

Link copied to clipboard
public Unit fit(MultiArray<Float, D2> input)
Link copied to clipboard
public MultiArray<Float, D2> fitTransform(MultiArray<Float, D2> input)
Link copied to clipboard
public final Float getB()
Link copied to clipboard
public final NDArray<Float, D1> getIdf()
Link copied to clipboard
public final Integer getK()
Link copied to clipboard
public final Unit setIdf(NDArray<Float, D1> idf)
Link copied to clipboard
public D2SparseArray transform(MultiArray<Float, D2> input)

Input is a count matrix

Properties

Link copied to clipboard
private final Float b
Link copied to clipboard
private NDArray<Float, D1> idf
Link copied to clipboard
private final Integer k