![]() |
GrammarScope
4.0.0
|

Public Member Functions | |
| SPOAnalyzer (final ISegmenter segmenter, final IParser parser, final IMorphology morphology, final StanfordRelationModel relationModel) | |
| List< List< SPOStructure > > | analyzeDocument (final URL url) throws IOException |
| List< SPOStructure > | analyze (final List< CoreLabel > sentence) |
| List< SPOStructure > | analyze (final TreeGraphNode tree) |
Static Public Member Functions | |
| static void | main (final String[] args) throws IOException |
Private Member Functions | |
| void | analyze (final TreeGraphNode tree, final TreeGraphNode rootTree, final List< SPOStructure > list) |
| Term | makeTerm (final Tree tree, final GrammaticalRelation grammaticalRelation, final Tree dependentTree) |
Static Private Member Functions | |
| static Map< String, GrammaticalRelation > | makeIdToRelationMap (final StanfordRelationModel relationModel) |
Private Attributes | |
| final Map< String, GrammaticalRelation > | idMap |
| final ISegmenter | segmenter |
| final IParser | parser |
| final IMorphology | morphology |
| final HeadFinder | headFinder |
Semantic pred-subject-object analyzer
| grammarscope.server.spo.SPOAnalyzer.SPOAnalyzer | ( | final ISegmenter | segmenter, |
| final IParser | parser, | ||
| final IMorphology | morphology, | ||
| final StanfordRelationModel | relationModel | ||
| ) |
Constructor
| segmenter | segmenter |
| parser | parser |
| morphology | morphology |
| relationModel | relation model |
| List<SPOStructure> grammarscope.server.spo.SPOAnalyzer.analyze | ( | final List< CoreLabel > | sentence | ) |
Analyze sentence
| sentence | sentence |
| List<SPOStructure> grammarscope.server.spo.SPOAnalyzer.analyze | ( | final TreeGraphNode | tree | ) |
Analyze tree
| tree | tree |
|
private |
Analyze tree
| tree | target tree |
| rootTree | root tree |
| list | list to collect results |
| List<List<SPOStructure> > grammarscope.server.spo.SPOAnalyzer.analyzeDocument | ( | final URL | url | ) | throws IOException |
Analyze document
| url | url |
| IOException | exception |
|
static |
Analyze document
| args | arg[1] document path |
| IOException | exception |
|
staticprivate |
Make id to grammatical relation map
| relationModel | relation model |
|
private |
Make term
| tree | scope tree |
| grammaticalRelation | grammatical relation |
| dependentTree | dependent tree |
|
private |
Head finder
|
private |
Id to relation map
|
private |
Morphology
|
private |
Parser
|
private |
Segmenter
1.8.17