|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.shef.dcs.oak.jate.util.counter.WordCounter
public class WordCounter
Count number of words in corpus/document/text.
Constructor Summary | |
---|---|
WordCounter()
|
Method Summary | |
---|---|
int |
countWords(CorpusImpl c)
Count number of words in a corpus, delimited by a space character |
int |
countWords(Document d)
Count number of words in a document, delimited by a space character |
static void |
main(java.lang.String[] args)
Main testing method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordCounter()
Method Detail |
---|
public int countWords(CorpusImpl c)
c
-
public int countWords(Document d)
d
-
public static void main(java.lang.String[] args)
args
- args[0] is the path to directory containing files
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |