◆ RelationDependentsDirectFactory()
| grammarscope.glue.RelationDependentsDirectFactory.RelationDependentsDirectFactory |
( |
final StanfordRelationModel |
relationModel, |
|
|
final Language |
language0 |
|
) |
| |
◆ build()
| void grammarscope.glue.RelationDependentsDirectFactory.build |
( |
final Tree |
tree, |
|
|
final ARelationDependents |
artifact |
|
) |
| |
|
private |
Build relation dependents
- Parameters
-
| tree | parse tree |
| artifact | artifact |
◆ getRelationDependents() [1/2]
| void grammarscope.glue.RelationDependentsDirectFactory.getRelationDependents |
( |
final GrammaticalRelation |
grammaticalRelation, |
|
|
final TreeGraphNode |
tree, |
|
|
final TreeGraphNode |
rootTree, |
|
|
final List< RelationDependent > |
list |
|
) |
| |
|
private |
Analyze sentence (recursive)
- Parameters
-
| grammaticalRelation | the targeted grammatical relation |
| tree | the parsed subtree to analyze |
| rootTree | the root tree above the parsed subtree to analyze |
| list | the list accumulation results |
◆ getRelationDependents() [2/2]
| List<RelationDependent> grammarscope.glue.RelationDependentsDirectFactory.getRelationDependents |
( |
final GrammaticalRelation |
relation, |
|
|
final TreeGraphNode |
tree, |
|
|
final TreeGraphNode |
rootTree |
|
) |
| |
|
private |
Analyze tree for a given grammatical relation
- Parameters
-
| relation | the targeted grammatical relation |
| tree | the parsed subtree to analyze |
| rootTree | the root tree above the parsed subtree to analyze |
- Returns
- list of relation dependents
◆ make()
Make relation dependents from parse tree
- Parameters
-
- Returns
- relation dependents artifact
◆ makeRelationDependent()
| static RelationDependent grammarscope.glue.RelationDependentsDirectFactory.makeRelationDependent |
( |
final GrammaticalRelation |
relation, |
|
|
final Tree |
tree, |
|
|
final Tree |
head |
|
) |
| |
|
staticprivate |
Make relation dependent
- Parameters
-
| relation | grammatical relation |
| tree | target tree |
| head | its head |
- Returns
- relation dependent
◆ treeToSegments()
| static List<Segment> grammarscope.glue.RelationDependentsDirectFactory.treeToSegments |
( |
final Tree |
tree | ) |
|
|
staticprivate |
Tree to segments
- Parameters
-
- Returns
- list of segments for this tree
◆ headFinder
| HeadFinder grammarscope.glue.RelationDependentsDirectFactory.headFinder |
|
private |
◆ relationModel
The documentation for this class was generated from the following file: