| Constructor and Description |
|---|
JWeb1TSearcher(File indexPath,
int minN,
int maxN)
Try to deduce the index files from the given path.
|
JWeb1TSearcher(String... indexFiles) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFrequency(Collection<String> aPhrase) |
long |
getFrequency(String... aPhrase) |
long |
getNrOfDistinctNgrams(int aNGramSize) |
long |
getNrOfNgrams(int aNGramSize) |
public JWeb1TSearcher(String... indexFiles) throws IOException
indexFiles - Index files need to be listed in ascending order, starting with 1-grams, and without gap until the largest index. E.g. index1,index2,index3. You cannot use "index1,index3" or "index2,index3".IOExceptionpublic JWeb1TSearcher(File indexPath, int minN, int maxN) throws IOException
indexPath - The path in which the ngram index files are located.minN - The minimum ngram length.maxN - The maximum ngram length.IOExceptionpublic long getFrequency(Collection<String> aPhrase) throws IOException
getFrequency in interface SearcherIOExceptionpublic long getFrequency(String... aPhrase) throws IOException
getFrequency in interface SearcherIOExceptionpublic long getNrOfNgrams(int aNGramSize)
getNrOfNgrams in interface Searcherpublic long getNrOfDistinctNgrams(int aNGramSize)
getNrOfDistinctNgrams in interface SearcherCopyright © 2013. All Rights Reserved.