![]() |
GrammarScope
4.0.0
|


Public Member Functions | |
| boolean | isFromString () |
| ProtoGrammaticalRelation (final String shortName, final String longName, final ProtoGrammaticalRelation parent, final String sourcePattern, final String[] targetPatterns, final String specificString) | |
| Collection< Tree > | getRelatedNodes (final Tree tree, final Tree root) |
| boolean | isApplicable (final Tree tree) |
| boolean | isAncestor (final ProtoGrammaticalRelation gr0) |
| final String | toString () |
| String | getLongName () |
| String | getShortName () |
| String | getSpecific () |
| ProtoGrammaticalRelation | getParent () |
| List<? extends ProtoGrammaticalRelation > | getChildren () |
| Pattern | getSourcePattern () |
| List< TregexPattern > | getTargetPatterns () |
Static Public Member Functions | |
| static List< TregexPattern > | compileTargetPatterns (final String[] patternStrings) |
Protected Member Functions | |
| void | addChild (final ProtoGrammaticalRelation child) |
Protected Attributes | |
| String | shortName |
| String | longName |
| ProtoGrammaticalRelation | parent |
| List< ProtoGrammaticalRelation > | children = new ArrayList<>() |
| Pattern | sourcePattern |
| List< TregexPattern > | targetPatterns = new ArrayList<>() |
| String | specific |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
ProtoGrammaticalRelation is used to define a standardized, hierarchical set of grammatical relations, together with patterns for identifying them in parse trees.
| grammarscope.mutable.ProtoGrammaticalRelation.ProtoGrammaticalRelation | ( | final String | shortName, |
| final String | longName, | ||
| final ProtoGrammaticalRelation | parent, | ||
| final String | sourcePattern, | ||
| final String[] | targetPatterns, | ||
| final String | specificString | ||
| ) |
|
protected |
Reimplemented in grammarscope.mutable.MutableGrammaticalRelation.
|
static |
Compile list of strings into TregexPatterns
| patternStrings | array of pattern strings |
| List<? extends ProtoGrammaticalRelation> grammarscope.mutable.ProtoGrammaticalRelation.getChildren | ( | ) |
Returns the children of this GrammaticalRelation.
| String grammarscope.mutable.ProtoGrammaticalRelation.getLongName | ( | ) |
| ProtoGrammaticalRelation grammarscope.mutable.ProtoGrammaticalRelation.getParent | ( | ) |
Returns the parent of this GrammaticalRelation.
Reimplemented in grammarscope.mutable.MutableGrammaticalRelation.
| Collection<Tree> grammarscope.mutable.ProtoGrammaticalRelation.getRelatedNodes | ( | final Tree | tree, |
| final Tree | root | ||
| ) |
Given a Tree node tree, attempts to return a list of nodes to which node tree has this grammatical relation.
| tree | Target for finding governors of tree related by this GR |
| root | The root of the Tree |
| String grammarscope.mutable.ProtoGrammaticalRelation.getShortName | ( | ) |
| Pattern grammarscope.mutable.ProtoGrammaticalRelation.getSourcePattern | ( | ) |
Returns the source patterns of this GrammaticalRelation.
| String grammarscope.mutable.ProtoGrammaticalRelation.getSpecific | ( | ) |
| List<TregexPattern> grammarscope.mutable.ProtoGrammaticalRelation.getTargetPatterns | ( | ) |
Returns the target patterns of this GrammaticalRelation.
| boolean grammarscope.mutable.ProtoGrammaticalRelation.isAncestor | ( | final ProtoGrammaticalRelation | gr0 | ) |
| boolean grammarscope.mutable.ProtoGrammaticalRelation.isApplicable | ( | final Tree | tree | ) |
Returns true iff the value of Tree node tree matches the sourcePattern for this GrammaticalRelation, indicating that this GrammaticalRelation is one that could hold between Tree node tree and some other node.
| tree | tree |
| boolean grammarscope.mutable.ProtoGrammaticalRelation.isFromString | ( | ) |
This function is used to determine whether the GrammaticalRelation in question is one that was created to be a thin wrapper around a String representation by valueOf(String), or whether it is a full-fledged GrammaticalRelation created by direct invocation of the constructor.
| final String grammarscope.mutable.ProtoGrammaticalRelation.toString | ( | ) |
Returns short name (abbreviation) for this GrammaticalRelation.
|
protected |
|
protected |
|
protected |
|
staticprivate |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.17