Class LangModel

java.lang.Object
org.apache.tika.eval.core.tokens.LangModel

public class LangModel extends Object
  • Field Details

    • EMPTY_MODEL

      public static LangModel EMPTY_MODEL
  • Constructor Details

    • LangModel

      public LangModel(long totalTokens)
  • Method Details

    • contains

      public boolean contains(String token)
    • getTokens

      public Set<String> getTokens()
    • getProbability

      public double getProbability(String token)
    • add

      public void add(String t, long tf)
    • getUnseenProbability

      public double getUnseenProbability()
    • getCount

      public long getCount(String token)
    • getCounts

      public Map<String,Long> getCounts()