public class WordStemmer extends java.lang.Object implements TreeVisitor
| Constructor and Description |
|---|
WordStemmer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Reads, stems, and prints the trees in the file.
|
void |
visitTree(Tree t)
Does whatever one needs to do to a particular parse tree.
|
public void visitTree(Tree t)
TreeVisitorvisitTree in interface TreeVisitort - A tree. Classes implementing this interface can assume
that the tree passed in is not null.public static void main(java.lang.String[] args)
args - Usage: WordStemmer file