df

fun df(terms: List<String>, corpus: List<Map<String, Int>>): IntArray

Returns the document frequencies, i.e. the number of documents that contain term.

Return

the array of document frequencies.

Parameters

terms

the token list used as features.

corpus

the training corpus.