|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.GrammaticalStructureFactory
public class GrammaticalStructureFactory
A general factory for GrammaticalStructure
objects.
Uses reflection to create objects of any subclass of
GrammaticalStructure
.
Constructor Summary | |
---|---|
GrammaticalStructureFactory(String name)
Make a new GrammaticalStructureFactory that dispenses GrammaticalStructure
objects of the given specific type |
|
GrammaticalStructureFactory(String name,
Filter<String> puncFilter)
Make a new GrammaticalStructureFactory that dispenses GrammaticalStructure objects of the given specific type |
|
GrammaticalStructureFactory(String name,
Filter<String> puncFilter,
HeadFinder hf)
|
Method Summary | |
---|---|
GrammaticalStructure |
newGrammaticalStructure(Tree t)
Vend a new GrammaticalStructure based on the given Tree . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrammaticalStructureFactory(String name)
GrammaticalStructure
objects of the given specific type
name
- the fully qualified name of a subclass of GrammaticalStructurepublic GrammaticalStructureFactory(String name, Filter<String> puncFilter)
GrammaticalStructure
objects of the given specific type
name
- the fully qualified name of a subclass of GrammaticalStructurepuncFilter
- A filter that returns false on punctuation wordspublic GrammaticalStructureFactory(String name, Filter<String> puncFilter, HeadFinder hf)
Method Detail |
---|
public GrammaticalStructure newGrammaticalStructure(Tree t)
GrammaticalStructure
based on the given Tree
.
t
- the tree to analyze
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |