public class NGramCount extends Object
Constructor and Description |
---|
NGramCount() |
Modifier and Type | Method and Description |
---|---|
static void |
countWords(String file,
DataCounter<NGram> counter,
int n)
This method adds all the n-grams in the file to counter.
|
static <E> DataCount<E>[] |
getCountsArray(DataCounter<E> counter) |
static void |
main(String[] args)
TODO: Replace this comment with your own as appropriate.
|
public static void countWords(String file, DataCounter<NGram> counter, int n)
file
- counter
- n
- public static <E> DataCount<E>[] getCountsArray(DataCounter<E> counter)
public static void main(String[] args)