@Test public void testContains() throws Exception { NGramCharModel ngramModel = new NGramCharModel(); String token = "the"; ngramModel.add(token); Assert.assertFalse(ngramModel.contains("fox")); }
public boolean contains(String ngram) { return mNGrams.containsKey(ngram); }
NGramCharModel implements Iterable<String> { public boolean contains(String ngram) { return mNGrams.containsKey(ngram); } }
NGramCharModel implements Iterable<String> { public boolean contains(String ngram) { return mNGrams.containsKey(ngram); } NGramCharModel(); }
NGramCharModel implements Iterable<String> { public boolean contains(String ngram) { return mNGrams.containsKey(ngram); } NGramCharModel(); int getCount(String ngram); void setCount(String ngram, int count); void add(String ngram); void add(CharSequence chars, int minLength, int maxLength); void remove(String ngram); boolean contains(String ngram); int size(); @Override Iterator<String> iterator(); int numberOfGrams(); void cutoff(int cutoffUnder, int cutoffOver); @Override boolean equals(Object obj); @Override String toString(); @Override int hashCode(); }
NGramCharModel implements Iterable<String> { public boolean contains(String ngram) { return mNGrams.containsKey(ngram); } NGramCharModel(); int getCount(String ngram); void setCount(String ngram, int count); void add(String ngram); void add(CharSequence chars, int minLength, int maxLength); void remove(String ngram); boolean contains(String ngram); int size(); @Override Iterator<String> iterator(); int numberOfGrams(); void cutoff(int cutoffUnder, int cutoffOver); @Override boolean equals(Object obj); @Override String toString(); @Override int hashCode();  }