Package org.apache.tika.eval.tokens
Class LangModel
- java.lang.Object
-
- org.apache.tika.eval.tokens.LangModel
-
public class LangModel extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static LangModel
EMPTY_MODEL
-
Constructor Summary
Constructors Constructor Description LangModel(long totalTokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String t, long tf)
boolean
contains(String token)
long
getCount(String token)
Map<String,Long>
getCounts()
double
getProbability(String token)
Set<String>
getTokens()
double
getUnseenProbability()
-
-
-
Field Detail
-
EMPTY_MODEL
public static LangModel EMPTY_MODEL
-
-