GrammarScope  4.0.0
Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
grammarscope.server.factory.CoreferencesFactory Class Reference

Static Public Member Functions

static Coreferences getCoreferences (final Map< Integer, CorefChain > coreferenceChains, final Segmentation segmentation, final String text) throws RuntimeException
 

Private Member Functions

 CoreferencesFactory ()
 

Static Private Member Functions

static Mention.Gender convert (final Dictionaries.Gender value)
 
static Mention.Number convert (final Dictionaries.Number value)
 
static Mention.Animacy convert (final Dictionaries.Animacy value)
 

Detailed Description

Coreferences factory

Author
Bernard Bou

Constructor & Destructor Documentation

◆ CoreferencesFactory()

grammarscope.server.factory.CoreferencesFactory.CoreferencesFactory ( )
private

Member Function Documentation

◆ convert() [1/3]

static Mention.Animacy grammarscope.server.factory.CoreferencesFactory.convert ( final Dictionaries.Animacy  value)
staticprivate

Convert animacy to avoid dependencies on Stanford Library)

Parameters
valueanimacy value
Returns
animacy value

◆ convert() [2/3]

static Mention.Gender grammarscope.server.factory.CoreferencesFactory.convert ( final Dictionaries.Gender  value)
staticprivate

Convert gender to avoid dependencies on Stanford Library)

Parameters
valuegender value
Returns
gender value

◆ convert() [3/3]

static Mention.Number grammarscope.server.factory.CoreferencesFactory.convert ( final Dictionaries.Number  value)
staticprivate

Convert number to avoid dependencies on Stanford Library)

Parameters
valuenumber value
Returns
number value

◆ getCoreferences()

static Coreferences grammarscope.server.factory.CoreferencesFactory.getCoreferences ( final Map< Integer, CorefChain >  coreferenceChains,
final Segmentation  segmentation,
final String  text 
) throws RuntimeException
static

Make coreferences

Parameters
coreferenceChainsStanford coreference chains
segmentationsegmentation data
texttext
Returns
coreferences
Exceptions
RuntimeExceptionexception

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