@Test public void testGetBigramFrequency() { System.out.println("getBigramFrequency"); Bigram bigram = new Bigram("romantic", "comedy"); assertEquals(9, corpus.getBigramFrequency(bigram)); }
@Override public int getBigramFrequency(Bigram bigram) { MutableInt count = freq2.get(bigram); return count == null ? 0 : count.value; }
SimpleCorpus implements Corpus { @Override public int getBigramFrequency(Bigram bigram) { MutableInt count = freq2.get(bigram); return count == null ? 0 : count.value; } }
SimpleCorpus implements Corpus { @Override public int getBigramFrequency(Bigram bigram) { MutableInt count = freq2.get(bigram); return count == null ? 0 : count.value; } SimpleCorpus();  SimpleCorpus(SentenceSplitter splitter, Tokenizer tokenizer, StopWords stopWords, Punctuations punctuations); }
SimpleCorpus implements Corpus { @Override public int getBigramFrequency(Bigram bigram) { MutableInt count = freq2.get(bigram); return count == null ? 0 : count.value; } SimpleCorpus();  SimpleCorpus(SentenceSplitter splitter, Tokenizer tokenizer, StopWords stopWords, Punctuations punctuations); Text add(Text text); @Override long size(); @Override int getNumDocuments(); @Override int getNumTerms(); @Override long getNumBigrams(); @Override int getAverageDocumentSize(); @Override int getTermFrequency(String term); @Override int getBigramFrequency(Bigram bigram); @Override Iterator<String> getTerms(); @Override Iterator<Bigram> getBigrams(); @Override Iterator<Text> search(String term); @Override Iterator<Relevance> search(RelevanceRanker ranker, String term); @Override Iterator<Relevance> search(RelevanceRanker ranker, String[] terms); }
SimpleCorpus implements Corpus { @Override public int getBigramFrequency(Bigram bigram) { MutableInt count = freq2.get(bigram); return count == null ? 0 : count.value; } SimpleCorpus();  SimpleCorpus(SentenceSplitter splitter, Tokenizer tokenizer, StopWords stopWords, Punctuations punctuations); Text add(Text text); @Override long size(); @Override int getNumDocuments(); @Override int getNumTerms(); @Override long getNumBigrams(); @Override int getAverageDocumentSize(); @Override int getTermFrequency(String term); @Override int getBigramFrequency(Bigram bigram); @Override Iterator<String> getTerms(); @Override Iterator<Bigram> getBigrams(); @Override Iterator<Text> search(String term); @Override Iterator<Relevance> search(RelevanceRanker ranker, String term); @Override Iterator<Relevance> search(RelevanceRanker ranker, String[] terms);  }