GrammarScope  4.0.0
Public Member Functions | Protected Attributes | List of all members
grammarscope.server.parser.DependencyParser Class Reference
Inheritance diagram for grammarscope.server.parser.DependencyParser:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.server.parser.DependencyParser:
Collaboration graph
[legend]

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
 

Detailed Description

Dependency parser wrapper

Author
Bernard Bou

Constructor & Destructor Documentation

◆ DependencyParser()

grammarscope.server.parser.DependencyParser.DependencyParser ( final String  parserModel,
final Properties  extraFlags,
final String  taggerModel,
final Properties  taggerExtraFlags 
)

Constructor

Parameters
parserModelparser model (null defaults to englishRNN)
extraFlagsparser extra flags
taggerModelpos tagger model
taggerExtraFlagspos tagger options

Member Function Documentation

◆ getDependencyParseModel()

String grammarscope.server.parser.DependencyParser.getDependencyParseModel ( )

Get dependency parse model

Returns
model

Implements grammarscope.server.parser.iface.IDependencyParser.

◆ getOptions()

String grammarscope.server.parser.DependencyParser.getOptions ( )

Get options

Returns
options as string

Implements grammarscope.server.parser.iface.IDependencyParser.

◆ getPosTaggerModel()

String grammarscope.server.parser.DependencyParser.getPosTaggerModel ( )

Get pos tagger model

Returns
model

Implements grammarscope.server.parser.iface.IDependencyParser.

◆ isValid()

boolean grammarscope.server.parser.DependencyParser.isValid ( )

Whether this parser is valid

Returns
true if this parser is valid

Implements grammarscope.server.parser.iface.IDependencyParser.

◆ parse()

GrammaticalStructure grammarscope.server.parser.DependencyParser.parse ( final List< CoreLabel >  sentence)

Parse sentence

Parameters
sentencesentence to parse
Returns
grammatical structure

Implements grammarscope.server.parser.iface.IDependencyParser.

◆ parseSentences()

List<GrammaticalStructure> grammarscope.server.parser.DependencyParser.parseSentences ( final List< List< CoreLabel >>  sentences)

Parse sentences

Parameters
sentencessentences to parse
Returns
list of parse trees

Implements grammarscope.server.parser.iface.IDependencyParser.

Member Data Documentation

◆ parser

edu.stanford.nlp.parser.nndep.DependencyParser grammarscope.server.parser.DependencyParser.parser
protected

Stanford NN Parser

◆ parserModel

final String grammarscope.server.parser.DependencyParser.parserModel
protected

Stanford pos parserModel

◆ tagger

Tagger grammarscope.server.parser.DependencyParser.tagger
protected

Stanford pos tagger

◆ taggerModel

final String grammarscope.server.parser.DependencyParser.taggerModel
protected

Stanford pos taggerModel


The documentation for this class was generated from the following file: