GrammarScope  4.0.0
Classes | Public Member Functions | Protected Member Functions | Static Package Attributes | Private Attributes | Static Private Attributes | List of all members
grammarscope.server.corenlp.DParserAnnotator Class Reference
Inheritance diagram for grammarscope.server.corenlp.DParserAnnotator:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.server.corenlp.DParserAnnotator:
Collaboration graph
[legend]

Classes

class  GrammaticalStructure2Annotation
 

Public Member Functions

 DParserAnnotator (final String annotatorName, final Properties properties0)
 
Set< Class<? extends CoreAnnotation > > requires ()
 
Set< Class<? extends CoreAnnotation > > requirementsSatisfied ()
 

Protected Member Functions

int nThreads ()
 
long maxTime ()
 
void doOneSentence (final Annotation annotation, final CoreMap sentence)
 
void doOneFailedSentence (final Annotation annotation, final CoreMap sentence)
 

Static Package Attributes

static final String STANFORD_DPARSER = "dparse"
 

Private Attributes

final boolean verbose
 
final DependencyParser parser
 
final int nThreads
 
final long maxTime
 

Static Private Attributes

static final int DEFAULT_N_THREADS = 1
 
static final long DEFAULT_MAX_TIME = Long.MAX_VALUE
 

Detailed Description

This class adds dependency parse information to an Annotation. Contrary to the original DependencyParseAnnotator, it adds the Grammatical Structure. edu.stanford.nlp.pipeline.DependencyParseAnnotator.

Author
Jon Gauthier
Bernard Bou

Constructor & Destructor Documentation

◆ DParserAnnotator()

grammarscope.server.corenlp.DParserAnnotator.DParserAnnotator ( final String  annotatorName,
final Properties  properties0 
)

Constructor

Parameters
annotatorNameannotator name
properties0properties of annotator

Member Function Documentation

◆ doOneFailedSentence()

void grammarscope.server.corenlp.DParserAnnotator.doOneFailedSentence ( final Annotation  annotation,
final CoreMap  sentence 
)
protected

◆ doOneSentence()

void grammarscope.server.corenlp.DParserAnnotator.doOneSentence ( final Annotation  annotation,
final CoreMap  sentence 
)
protected

◆ maxTime()

long grammarscope.server.corenlp.DParserAnnotator.maxTime ( )
protected

◆ nThreads()

int grammarscope.server.corenlp.DParserAnnotator.nThreads ( )
protected

◆ requirementsSatisfied()

Set<Class<? extends CoreAnnotation> > grammarscope.server.corenlp.DParserAnnotator.requirementsSatisfied ( )

◆ requires()

Set<Class<? extends CoreAnnotation> > grammarscope.server.corenlp.DParserAnnotator.requires ( )

Member Data Documentation

◆ DEFAULT_MAX_TIME

final long grammarscope.server.corenlp.DParserAnnotator.DEFAULT_MAX_TIME = Long.MAX_VALUE
staticprivate

◆ DEFAULT_N_THREADS

final int grammarscope.server.corenlp.DParserAnnotator.DEFAULT_N_THREADS = 1
staticprivate

◆ maxTime

final long grammarscope.server.corenlp.DParserAnnotator.maxTime
private

Maximum parse time (in milliseconds) for a sentence

◆ nThreads

final int grammarscope.server.corenlp.DParserAnnotator.nThreads
private

Threads

◆ parser

final DependencyParser grammarscope.server.corenlp.DParserAnnotator.parser
private

Dependency Parser

◆ STANFORD_DPARSER

final String grammarscope.server.corenlp.DParserAnnotator.STANFORD_DPARSER = "dparse"
staticpackage

◆ verbose

final boolean grammarscope.server.corenlp.DParserAnnotator.verbose
private

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