LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::Coreferences::CorefSolver Class Reference

A process unit implementing the Lappin & Leass algorithm for coreference solving The process unit configuration parameters are (@TODO add signification, default value and whether they are mandatory or optional): More...

#include <linguisticProcessing/core/CorefSolving/corefSolver.h>

Inheritance diagram for Lima::LinguisticProcessing::Coreferences::CorefSolver:
Lima::MediaProcessUnit Lima::AbstractProcessUnit< MediaProcessUnit, MediaProcessUnitInitializationParameters > Lima::InitializableObject< Base, InitializationParameters >

Public Member Functions

 CorefSolver ()
 
virtual ~CorefSolver ()
 
void init (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
 initialize with parameters from configuration file.
 
LimaStatusCode process (AnalysisContent &analysis) const override
 
MediaId language () const
 
uint64_t scope () const
 
uint64_t threshold () const
 
bool resolveDefinites () const
 
bool resolveN3PPronouns () const
 
std::set< LinguisticCode > inNpCategs () const
 
std::set< LinguisticCode > definiteCategs () const
 
LinguisticCode L_PRON () const
 
LinguisticCode L_VERB () const
 
LinguisticCode L_PREP () const
 
std::map< std::string, LinguisticCode > tagLocalDef () const
 
std::map< std::string, std::deque< std::string > > relLocalDef () const
 
std::set< LinguisticCode > reflexiveReciprocal () const
 
std::set< LinguisticCode > undefPronouns () const
 
std::set< LinguisticCode > possPronouns () const
 
const Common::PropertyCode::PropertyAccessor * macroAccessor () const
 
const Common::PropertyCode::PropertyAccessor * microAccessor () const
 
const Common::PropertyCode::PropertyAccessor * genderAccessor () const
 
const Common::PropertyCode::PropertyAccessor * personAccessor () const
 
const Common::PropertyCode::PropertyAccessor * numberAccessor () const
 
const std::map< std::string, float > salienceWeights () const
 
const std::map< std::string, int > slotValues () const
 
- Public Member Functions inherited from Lima::InitializableObject< Base, InitializationParameters >
 InitializableObject ()
 
 InitializableObject (const InitializableObject &object)
 
InitializableObject & operator= (const InitializableObject &object)
 
virtual ~InitializableObject ()
 
const std::string & getId () const
 get the object id
 
void setId (const std::string &id)
 set the object id
 

Protected Attributes

MediaId m_language
 
uint64_t m_scope
 
uint64_t m_threshold
 
bool m_resolveDefinites
 
bool m_resolveN3PPronouns
 
std::set< LinguisticCode > m_inNpCategs
 
std::set< LinguisticCode > m_definiteCategs
 
std::map< std::string, LinguisticCode > m_tagLocalDef
 
std::map< std::string, std::deque< std::string > > m_relLocalDef
 
std::set< LinguisticCode > m_reflexiveReciprocal
 
std::set< LinguisticCode > m_undefPronouns
 
std::set< LinguisticCode > m_possPronouns
 
LinguisticCode m_conjCoord
 
const Common::PropertyCode::PropertyAccessor * m_macroAccessor
 
const Common::PropertyCode::PropertyAccessor * m_microAccessor
 
const Common::PropertyCode::PropertyAccessor * m_genderAccessor
 
const Common::PropertyCode::PropertyAccessor * m_personAccessor
 
const Common::PropertyCode::PropertyAccessor * m_numberAccessor
 
std::map< std::string, float > m_salienceWeights
 
std::map< std::string, int > m_slotValues
 
- Protected Attributes inherited from Lima::InitializableObject< Base, InitializationParameters >
std::string m_id
 

Additional Inherited Members

- Public Types inherited from Lima::InitializableObject< Base, InitializationParameters >
typedef InitializableObjectManager< Base, InitializationParameters > Manager
 Manager is the type of the Manager associated to the initializableObject.
 
typedef InitializableObjectFactory< Base > Factory
 Factory is the type of the Factory associated to the initializableObject.
 

Detailed Description

A process unit implementing the Lappin & Leass algorithm for coreference solving The process unit configuration parameters are (@TODO add signification, default value and whether they are mandatory or optional):

  • scope
  • threshold
  • Resolve Definites
  • Resolve non third person pronouns
  • LexicalAnaphora
  • UndefinitePronouns
  • PossessivePronouns
  • PrepRelation
  • PleonasticRelation
  • DefiniteRelation
  • SubjectRelation
  • AttributeRelation
  • CODRelation
  • COIRelation
  • AdjunctRelation
  • AgentRelation
  • NPDeterminerRelation
  • SalienceFactors
  • SlotValues

Definition at line 80 of file corefSolver.h.

Constructor & Destructor Documentation

◆ CorefSolver()

Lima::LinguisticProcessing::Coreferences::CorefSolver::CorefSolver ( )

Definition at line 42 of file corefSolver.cpp.

◆ ~CorefSolver()

virtual Lima::LinguisticProcessing::Coreferences::CorefSolver::~CorefSolver ( )
inlinevirtual

Definition at line 85 of file corefSolver.h.

Member Function Documentation

◆ definiteCategs()

std::set< LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::definiteCategs ( ) const
inline

Definition at line 220 of file corefSolver.h.

◆ genderAccessor()

const Common::PropertyCode::PropertyAccessor * Lima::LinguisticProcessing::Coreferences::CorefSolver::genderAccessor ( ) const
inline

Definition at line 266 of file corefSolver.h.

◆ init()

void Lima::LinguisticProcessing::Coreferences::CorefSolver::init ( Common::XMLConfigurationFiles::GroupConfigurationStructure &  unitConfiguration,
Manager *  manager 
)
overridevirtual

initialize with parameters from configuration file.

Parameters
unitConfiguration@IN : <group> tag in xml configuration file that contains parameters to initialize the object.
manager@IN : manager that asked for initialization and carries init params Use it to initialize other objects of same kind.
Exceptions
InvalidConfigurationwhen parameters are invalids.

Implements Lima::MediaProcessUnit.

Definition at line 47 of file corefSolver.cpp.

◆ inNpCategs()

std::set< LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::inNpCategs ( ) const
inline

Definition at line 216 of file corefSolver.h.

◆ L_PREP()

LinguisticCode Lima::LinguisticProcessing::Coreferences::CorefSolver::L_PREP ( ) const
inline

Definition at line 232 of file corefSolver.h.

◆ L_PRON()

LinguisticCode Lima::LinguisticProcessing::Coreferences::CorefSolver::L_PRON ( ) const
inline

Definition at line 224 of file corefSolver.h.

◆ L_VERB()

LinguisticCode Lima::LinguisticProcessing::Coreferences::CorefSolver::L_VERB ( ) const
inline

Definition at line 228 of file corefSolver.h.

◆ language()

MediaId Lima::LinguisticProcessing::Coreferences::CorefSolver::language ( ) const
inline

Definition at line 196 of file corefSolver.h.

◆ macroAccessor()

const Common::PropertyCode::PropertyAccessor * Lima::LinguisticProcessing::Coreferences::CorefSolver::macroAccessor ( ) const
inline

Definition at line 256 of file corefSolver.h.

◆ microAccessor()

const Common::PropertyCode::PropertyAccessor * Lima::LinguisticProcessing::Coreferences::CorefSolver::microAccessor ( ) const
inline

Definition at line 261 of file corefSolver.h.

◆ numberAccessor()

const Common::PropertyCode::PropertyAccessor * Lima::LinguisticProcessing::Coreferences::CorefSolver::numberAccessor ( ) const
inline

Definition at line 276 of file corefSolver.h.

◆ personAccessor()

const Common::PropertyCode::PropertyAccessor * Lima::LinguisticProcessing::Coreferences::CorefSolver::personAccessor ( ) const
inline

Definition at line 271 of file corefSolver.h.

◆ possPronouns()

std::set< LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::possPronouns ( ) const
inline

Definition at line 252 of file corefSolver.h.

◆ process()

LimaStatusCode Lima::LinguisticProcessing::Coreferences::CorefSolver::process ( AnalysisContent &  analysis) const
overridevirtual
Parameters
analysis
Returns

Access to or creation of an annotation graph

Creates a node in the annotation graph for each node of the morphosyntactic graph. Each new node is annotated with the name mrphv and associated to the morphosyntactic vertex number

Write words on the annotation vertex

To be able to dump the content of an annotation, a function pointer with a precise signature has to be givent to the annotation graph. See annotationGraphTestProcessUnit.h} for the details of the dumpPoint function

Implements Lima::MediaProcessUnit.

Definition at line 188 of file corefSolver.cpp.

◆ reflexiveReciprocal()

std::set< LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::reflexiveReciprocal ( ) const
inline

Definition at line 244 of file corefSolver.h.

◆ relLocalDef()

std::map< std::string, std::deque< std::string > > Lima::LinguisticProcessing::Coreferences::CorefSolver::relLocalDef ( ) const
inline

Definition at line 240 of file corefSolver.h.

◆ resolveDefinites()

bool Lima::LinguisticProcessing::Coreferences::CorefSolver::resolveDefinites ( ) const
inline

Definition at line 208 of file corefSolver.h.

◆ resolveN3PPronouns()

bool Lima::LinguisticProcessing::Coreferences::CorefSolver::resolveN3PPronouns ( ) const
inline

Definition at line 212 of file corefSolver.h.

◆ salienceWeights()

const std::map< std::string, float > Lima::LinguisticProcessing::Coreferences::CorefSolver::salienceWeights ( ) const
inline

Definition at line 281 of file corefSolver.h.

◆ scope()

uint64_t Lima::LinguisticProcessing::Coreferences::CorefSolver::scope ( ) const
inline

Definition at line 200 of file corefSolver.h.

◆ slotValues()

const std::map< std::string, int > Lima::LinguisticProcessing::Coreferences::CorefSolver::slotValues ( ) const

Definition at line 285 of file corefSolver.h.

◆ tagLocalDef()

std::map< std::string, LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::tagLocalDef ( ) const
inline

Definition at line 236 of file corefSolver.h.

◆ threshold()

uint64_t Lima::LinguisticProcessing::Coreferences::CorefSolver::threshold ( ) const
inline

Definition at line 204 of file corefSolver.h.

◆ undefPronouns()

std::set< LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::undefPronouns ( ) const
inline

Definition at line 248 of file corefSolver.h.

Member Data Documentation

◆ m_conjCoord

LinguisticCode Lima::LinguisticProcessing::Coreferences::CorefSolver::m_conjCoord
protected

Definition at line 185 of file corefSolver.h.

◆ m_definiteCategs

std::set< LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::m_definiteCategs
protected

Definition at line 179 of file corefSolver.h.

◆ m_genderAccessor

const Common::PropertyCode::PropertyAccessor* Lima::LinguisticProcessing::Coreferences::CorefSolver::m_genderAccessor
protected

Definition at line 189 of file corefSolver.h.

◆ m_inNpCategs

std::set< LinguisticCode > Lima::LinguisticProcessing::Coreferences::CorefSolver::m_inNpCategs
protected

Definition at line 178 of file corefSolver.h.

◆ m_language

MediaId Lima::LinguisticProcessing::Coreferences::CorefSolver::m_language
protected

Definition at line 173 of file corefSolver.h.

◆ m_macroAccessor

const Common::PropertyCode::PropertyAccessor* Lima::LinguisticProcessing::Coreferences::CorefSolver::m_macroAccessor
protected

Definition at line 186 of file corefSolver.h.

◆ m_microAccessor

const Common::PropertyCode::PropertyAccessor* Lima::LinguisticProcessing::Coreferences::CorefSolver::m_microAccessor
protected

Definition at line 188 of file corefSolver.h.

◆ m_numberAccessor

const Common::PropertyCode::PropertyAccessor* Lima::LinguisticProcessing::Coreferences::CorefSolver::m_numberAccessor
protected

Definition at line 191 of file corefSolver.h.

◆ m_personAccessor

const Common::PropertyCode::PropertyAccessor* Lima::LinguisticProcessing::Coreferences::CorefSolver::m_personAccessor
protected

Definition at line 190 of file corefSolver.h.

◆ m_possPronouns

std::set<LinguisticCode> Lima::LinguisticProcessing::Coreferences::CorefSolver::m_possPronouns
protected

Definition at line 184 of file corefSolver.h.

◆ m_reflexiveReciprocal

std::set<LinguisticCode> Lima::LinguisticProcessing::Coreferences::CorefSolver::m_reflexiveReciprocal
protected

Definition at line 182 of file corefSolver.h.

◆ m_relLocalDef

std::map< std::string,std::deque<std::string> > Lima::LinguisticProcessing::Coreferences::CorefSolver::m_relLocalDef
protected

Definition at line 181 of file corefSolver.h.

◆ m_resolveDefinites

bool Lima::LinguisticProcessing::Coreferences::CorefSolver::m_resolveDefinites
protected

Definition at line 176 of file corefSolver.h.

◆ m_resolveN3PPronouns

bool Lima::LinguisticProcessing::Coreferences::CorefSolver::m_resolveN3PPronouns
protected

Definition at line 177 of file corefSolver.h.

◆ m_salienceWeights

std::map<std::string,float> Lima::LinguisticProcessing::Coreferences::CorefSolver::m_salienceWeights
protected

Definition at line 192 of file corefSolver.h.

◆ m_scope

uint64_t Lima::LinguisticProcessing::Coreferences::CorefSolver::m_scope
protected

Definition at line 174 of file corefSolver.h.

◆ m_slotValues

std::map<std::string, int> Lima::LinguisticProcessing::Coreferences::CorefSolver::m_slotValues
protected

Definition at line 193 of file corefSolver.h.

◆ m_tagLocalDef

std::map<std::string,LinguisticCode> Lima::LinguisticProcessing::Coreferences::CorefSolver::m_tagLocalDef
protected

Definition at line 180 of file corefSolver.h.

◆ m_threshold

uint64_t Lima::LinguisticProcessing::Coreferences::CorefSolver::m_threshold
protected

Definition at line 175 of file corefSolver.h.

◆ m_undefPronouns

std::set<LinguisticCode> Lima::LinguisticProcessing::Coreferences::CorefSolver::m_undefPronouns
protected

Definition at line 183 of file corefSolver.h.


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