edu.stanford.nlp.trees
Class WordStemmer

java.lang.Object
  extended by edu.stanford.nlp.trees.WordStemmer
All Implemented Interfaces:
TreeReaderFactory, TreeVisitor

public class WordStemmer
extends Object
implements TreeVisitor, TreeReaderFactory

Stems the Words in a Tree using Morphology.

Author:
Huy Nguyen (htnguyen@cs.stanford.edu)

Constructor Summary
WordStemmer()
           
 
Method Summary
static void main(String[] args)
          Reads, stems, and prints the trees in the file.
 TreeReader newTreeReader(Reader in)
          Create a new TreeReader using the provided Reader.
 void visitTree(Tree t)
          Does whatever one needs to do to a particular parse tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordStemmer

public WordStemmer()
Method Detail

visitTree

public void visitTree(Tree t)
Description copied from interface: TreeVisitor
Does whatever one needs to do to a particular parse tree.

Specified by:
visitTree in interface TreeVisitor
Parameters:
t - A tree. Classes implementing this interface can assume that the tree passed in is not null.

newTreeReader

public TreeReader newTreeReader(Reader in)
Description copied from interface: TreeReaderFactory
Create a new TreeReader using the provided Reader.

Specified by:
newTreeReader in interface TreeReaderFactory
Parameters:
in - The Reader to build on
Returns:
The new TreeReader

main

public static void main(String[] args)
Reads, stems, and prints the trees in the file. Usage: WordStemmer file



Stanford NLP Group