edu.stanford.nlp.trees
Class StringLabeledScoredTreeReaderFactory
java.lang.Object
|
+--edu.stanford.nlp.trees.StringLabeledScoredTreeReaderFactory
- All Implemented Interfaces:
- TreeReaderFactory
- public class StringLabeledScoredTreeReaderFactory
- extends Object
- implements TreeReaderFactory
This class implements a TreeReaderFactory
that produces
labeled, scored array-based Trees, which have been cleaned up to
delete empties, etc. This seems to be a common case.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringLabeledScoredTreeReaderFactory
public StringLabeledScoredTreeReaderFactory()
newTreeReader
public TreeReader newTreeReader(Reader in)
- An implementation of the
TreeReaderFactory
interface.
It creates a simple TreeReader
which literally
reproduces trees in the treebank as LabeledScoredTree
objects, with StringLabel
labels.
- Specified by:
newTreeReader
in interface TreeReaderFactory
- Parameters:
in
- The Reader
to build on
- Returns:
- The new TreeReader
Stanford NLP Group