Class LangModel


  • public class LangModel
    extends Object
    • Field Detail

      • EMPTY_MODEL

        public static LangModel EMPTY_MODEL
    • Constructor Detail

      • LangModel

        public LangModel​(long totalTokens)
    • Method Detail

      • contains

        public boolean contains​(String token)
      • getProbability

        public double getProbability​(String token)
      • add

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

        public double getUnseenProbability()
      • getCount

        public long getCount​(String token)