![]() |
GrammarScope
4.0.0
|
Public Member Functions | |
DependencyParser (final String parserModel, final Properties extraFlags, final String taggerModel, final Properties taggerExtraFlags) | |
String | getPosTaggerModel () |
String | getDependencyParseModel () |
boolean | isValid () |
String | getOptions () |
List< GrammaticalStructure > | parseSentences (final List< List< CoreLabel >> sentences) |
GrammaticalStructure | parse (final List< CoreLabel > sentence) |
Protected Attributes | |
edu.stanford.nlp.parser.nndep.DependencyParser | parser |
Tagger | tagger |
final String | parserModel |
final String | taggerModel |
Dependency parser wrapper
grammarscope.server.parser.DependencyParser.DependencyParser | ( | final String | parserModel, |
final Properties | extraFlags, | ||
final String | taggerModel, | ||
final Properties | taggerExtraFlags | ||
) |
Constructor
parserModel | parser model (null defaults to englishRNN) |
extraFlags | parser extra flags |
taggerModel | pos tagger model |
taggerExtraFlags | pos tagger options |
String grammarscope.server.parser.DependencyParser.getDependencyParseModel | ( | ) |
Get dependency parse model
Implements grammarscope.server.parser.iface.IDependencyParser.
String grammarscope.server.parser.DependencyParser.getOptions | ( | ) |
String grammarscope.server.parser.DependencyParser.getPosTaggerModel | ( | ) |
boolean grammarscope.server.parser.DependencyParser.isValid | ( | ) |
Whether this parser is valid
Implements grammarscope.server.parser.iface.IDependencyParser.
GrammaticalStructure grammarscope.server.parser.DependencyParser.parse | ( | final List< CoreLabel > | sentence | ) |
Parse sentence
sentence | sentence to parse |
Implements grammarscope.server.parser.iface.IDependencyParser.
List<GrammaticalStructure> grammarscope.server.parser.DependencyParser.parseSentences | ( | final List< List< CoreLabel >> | sentences | ) |
Parse sentences
sentences | sentences to parse |
Implements grammarscope.server.parser.iface.IDependencyParser.
|
protected |
Stanford NN Parser
|
protected |
Stanford pos parserModel
|
protected |
Stanford pos tagger
|
protected |
Stanford pos taggerModel