![]() |
GrammarScope
4.0.0
|
Classes | |
interface | IRelationProcessor |
class | Walker |
Public Member Functions | |
StanfordRelationModel (final GrammaticalRelation root, final List< GrammaticalRelation > relations, final Language language) | |
List< GrammaticalRelation > | getChildren (final GrammaticalRelation relation) |
GrammaticalRelation | getParent (final GrammaticalRelation relation) |
Static Public Member Functions | |
static String | getTreeName (final GrammaticalRelation grammaticalRelation, final boolean down, final boolean displayLongName) |
static String | getTreeAncestorsNames (final GrammaticalRelation grammaticalRelation, final boolean down, final boolean displayLongName) |
static StanfordRelationModel | makeModel (final Language language) |
static StanfordRelationModel | makeEnglishModel () |
static StanfordRelationModel | makeUniversalEnglishModel () |
static StanfordRelationModel | makeChineseModel () |
static void | main (final String[] args) |
Public Attributes | |
final GrammaticalRelation | root |
final GrammaticalRelation[] | relations |
final Language | language |
Static Private Member Functions | |
static Map< GrammaticalRelation, List< GrammaticalRelation > > | makeChildren (final List< GrammaticalRelation > relations) |
static StanfordRelationModel | makeDefaultModel () |
Private Attributes | |
final Map< GrammaticalRelation, List< GrammaticalRelation > > | children |
Decorates Stanford GrammaticalRelation model
grammarscope.server.iface.StanfordRelationModel.StanfordRelationModel | ( | final GrammaticalRelation | root, |
final List< GrammaticalRelation > | relations, | ||
final Language | language | ||
) |
Constructor
root | root relation |
relations | relation list |
language | language |
List<GrammaticalRelation> grammarscope.server.iface.StanfordRelationModel.getChildren | ( | final GrammaticalRelation | relation | ) |
Get this relation's parent
relation | relation |
GrammaticalRelation grammarscope.server.iface.StanfordRelationModel.getParent | ( | final GrammaticalRelation | relation | ) |
Get this relation's children
relation | relation |
|
static |
Get up lineage (parents to root)
grammaticalRelation | grammatical relation |
down | parent-child order |
displayLongName | whether to display long names |
|
static |
Get tree name (this node with appended lineage)
grammaticalRelation | grammatical relation |
down | parent-child order |
displayLongName | whether to display long names |
|
static |
Dump model tree
args | not used |
|
staticprivate |
Build children map
relations | set of relations |
|
static |
Make Chinese model
|
staticprivate |
Make default model
|
static |
Make English model
|
static |
Make model
language | language name |
|
static |
Make UniversalEnglish model
|
private |
Children map
final GrammaticalRelation [] grammarscope.server.iface.StanfordRelationModel.relations |
Relation array
final GrammaticalRelation grammarscope.server.iface.StanfordRelationModel.root |
Root relation