![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <linguisticProcessing/core/CorefSolving/coreferentAnnotation.h>
Public Types | |
| typedef std::set< CoreferentAnnotation * > | Vertices |
| typedef std::map< CoreferentAnnotation *, std::set< CoreferentAnnotation * > > | VerticesRelation |
| typedef std::map< CoreferentAnnotation *, std::map< CoreferentAnnotation *, float > > | WeightedVerticesRelation |
Public Member Functions | |
| CoreferentAnnotation () | |
| CoreferentAnnotation (uint64_t id, const std::string &categ, const float salience, LinguisticGraphVertex v) | |
| CoreferentAnnotation (const CoreferentAnnotation &ca) | |
| CoreferentAnnotation (uint64_t id, LinguisticGraphVertex v) | |
| CoreferentAnnotation & | operator= (const CoreferentAnnotation &ca) |
| virtual | ~CoreferentAnnotation () |
| uint64_t | id () |
| uint64_t | id () const |
| std::string & | categ () |
| const std::string & | categ () const |
| float | salience () const |
| float | bindingSalience () const |
| LinguisticGraphVertex | morphVertex () |
| LinguisticGraphVertex | morphVertex () const |
| AnnotationGraphVertex | av () |
| AnnotationGraphVertex | av () const |
| CoreferentAnnotation * | newerRef () |
| CoreferentAnnotation * | newerRef () const |
| void | id (uint64_t newId) |
| void | categ (const std::string newType) |
| void | salience (const float newSalience) |
| void | bindingSalience (const float newBindingSalience) |
| void | morphVertex (LinguisticGraphVertex v) |
| void | av (AnnotationGraphVertex av) |
| void | newerRef (CoreferentAnnotation *newerRef) |
| void | dump (std::ostream &os, const Lima::Common::AnnotationGraphs::AnnotationData *ad) const |
| bool | hasNewerRef () |
| bool | isIncludedInNounPhrase (const LinguisticGraph *g, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac, const std::set< LinguisticCode > &inNpCategs, const Common::PropertyCode::PropertyAccessor *microAccessor) const |
| general test functions | |
| LinguisticGraphVertex | npHeadVertex (const SyntacticAnalysis::SyntacticData *sd, MediaId language, std::set< DependencyGraphVertex > *alreadyProcessed) const |
| bool | isTaggedAsOneOfThese (const LinguisticGraph *g, const std::set< LinguisticCode > &categs, const Common::PropertyCode::PropertyAccessor *microAccessor) const |
| bool | isDefinite (const SyntacticAnalysis::SyntacticData *sd, const std::string &definiteRel, const std::set< LinguisticCode > &definiteCategs, const Common::PropertyCode::PropertyAccessor *microAccessor, MediaId language) const |
| test functions for the initial classification | |
| bool | isPleonastic (const SyntacticAnalysis::SyntacticData *sd, const std::string &m_pleonRel, MediaId language) const |
| bool | isPronoun (const LinguisticGraph *g, const Common::PropertyCode::PropertyAccessor *macroAccessor, const LinguisticCode &L_PRON) const |
| test functions for the initial classification | |
| bool | isConjCoord (const Common::PropertyCode::PropertyAccessor *microAccessor, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, const LinguisticCode &conjCoord) const |
| std::string | referentType (const SyntacticAnalysis::SyntacticData *sd, const LinguisticGraph *g, const Common::PropertyCode::PropertyAccessor *macroAccessor, const Common::PropertyCode::PropertyAccessor *microAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, const std::set< LinguisticCode > &definiteCategs, const std::set< LinguisticCode > &reflexiveReciprocalCategs, const std::set< LinguisticCode > &undefPronounsCategs, const std::set< LinguisticCode > &possPronounsCategs, const Common::PropertyCode::PropertyAccessor *personAccessor, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, MediaId language) const |
| bool | isN3PPronoun (const Common::PropertyCode::PropertyAccessor *personAccessor, const LinguisticAnalysisStructure::AnalysisGraph *anagraph) const |
| bool | sentenceIsRecent () const |
| test functions for the salience weighting | |
| bool | beginWithColon (const LinguisticAnalysisStructure::AnalysisGraph *anagraph, LinguisticGraphVertex &beginSentence) const |
| test functions for the salience weighting | |
| bool | endWithColon (const LinguisticAnalysisStructure::AnalysisGraph *anagraph, LinguisticGraphVertex &endSentence) const |
| bool | isInAppos (const SyntacticAnalysis::SyntacticData *sd, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac, MediaId language, std::set< DependencyGraphVertex > *alreadyProcessed) const |
| bool | isInQuantA (const SyntacticAnalysis::SyntacticData *sd, const LinguisticAnalysisStructure::AnalysisGraph *anagraph) const |
| bool | isInSubordinate (const SyntacticAnalysis::SyntacticData *sd, const Common::PropertyCode::PropertyAccessor *macroAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac, std::set< LinguisticGraphVertex > *alreadyProcessed) const |
| bool | isFunctionMasterOf (const SyntacticAnalysis::SyntacticData *sd, const std::deque< std::string > ¯oDependencyRelation, MediaId language) const |
| returns true if *this governs a macroDependencyRelation (cf. | |
| bool | isVerb (const Common::PropertyCode::PropertyAccessor *macroAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const LinguisticAnalysisStructure::AnalysisGraph *anagraph) const |
| test functions for the syntactic filter and the reflexive binding algorithm | |
| bool | isGovernedByMasculineCoordinate (const SyntacticAnalysis::SyntacticData *sd, const Common::PropertyCode::PropertyAccessor *genderAccessor, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac) const |
| bool | isAgreementCompatibleWith (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, const Common::PropertyCode::PropertyAccessor *genderAccessor, const Common::PropertyCode::PropertyAccessor *personAccessor, const Common::PropertyCode::PropertyAccessor *numberAccessor, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac) const |
| bool | isInTheArgumentDomainOf (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac, const Common::PropertyCode::PropertyAccessor *macroAccessor, const Common::PropertyCode::PropertyAccessor *microAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const LinguisticCode &conjCoord, std::set< LinguisticGraphVertex > *alreadyProcessed) const |
| bool | isInTheArgumentDomainOf2 (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac, const Common::PropertyCode::PropertyAccessor *macroAccessor, const Common::PropertyCode::PropertyAccessor *microAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const LinguisticCode &conjCoord, std::set< LinguisticGraphVertex > *alreadyProcessed) const |
| bool | isInTheAdjunctDomainOf (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, const LinguisticGraph *graph, const Common::PropertyCode::PropertyAccessor *microAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, MediaId language) const |
| bool | isInThePrepAdjunctNP (const DependencyGraphVertex &qv, const SyntacticAnalysis::SyntacticData *sd, const LinguisticGraph *graph, const Common::PropertyCode::PropertyAccessor *microAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, MediaId language) const |
| bool | sf4 (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, const Common::PropertyCode::PropertyAccessor *macroAccessor, const LinguisticCode &L_PRON, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac) const |
| bool | isInTheNpDomainOf (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, const Common::PropertyCode::PropertyAccessor *microAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac) const |
| bool | isContainedIn (const DependencyGraphVertex &dv, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac) const |
| bool | isDeterminer (DependencyGraphVertex *qv, const SyntacticAnalysis::SyntacticData *sd, const std::map< std::string, std::deque< std::string > > &relLocalDef, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac) const |
| bool | sf6 (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, const std::map< std::string, std::deque< std::string > > &relLocalDef, MediaId language, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac) const |
| bool | aba4 (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, const Common::PropertyCode::PropertyAccessor *macroAccessor, const Common::PropertyCode::PropertyAccessor *microAccessor, MediaId language, const std::set< LinguisticCode > &inNpCategs, LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac, const LinguisticCode &conjCoord, std::deque< Vertices > *npCandidates) const |
| int | getSlotValue (const SyntacticAnalysis::SyntacticData *sd, const std::map< std::string, std::deque< std::string > > &relLocalDef, const std::map< std::string, int > &slotValues, MediaId language) const |
| bool | aba5 (const CoreferentAnnotation &ca, const SyntacticAnalysis::SyntacticData *sd, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, const Common::PropertyCode::PropertyAccessor *macroAccessor, const Common::PropertyCode::PropertyAccessor *microAccessor, MediaId language, LinguisticAnalysisStructure::AnalysisGraph *anagraph, AnalysisContent &ac, const std::map< std::string, int > &slotValues, const LinguisticCode &conjCoord) const |
| int | classify (LinguisticGraph *graph, SyntacticAnalysis::SyntacticData *sd, const Common::PropertyCode::PropertyAccessor *macroAccessor, const Common::PropertyCode::PropertyAccessor *microAccessor, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, const std::set< LinguisticCode > &definiteCategs, const std::set< LinguisticCode > &reflexiveReciprocalCategs, const std::set< LinguisticCode > &undefPronouns, const std::set< LinguisticCode > &possPronouns, const bool &resolveDefinites, const bool &resolveN3PPronouns, const Common::PropertyCode::PropertyAccessor *personAccessor, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, MediaId language) |
| main functions of the global algorithm (called by Corefsolver) | |
| float | salienceWeighting (const std::map< std::string, float > &weights, const SyntacticAnalysis::SyntacticData *sd, const Common::PropertyCode::PropertyAccessor *macroAccessor, const LinguisticAnalysisStructure::AnalysisGraph *anagraph, MediaId language, const std::map< std::string, LinguisticCode > &tagLocalDef, const std::map< std::string, std::deque< std::string > > &relLocalDef, AnalysisContent &ac, LinguisticGraphVertex &beginSentence, LinguisticGraphVertex &endSentence) const |
| AnnotationGraphVertex | writeAnnotation (Common::AnnotationGraphs::AnnotationData *ad, CoreferentAnnotation &antecedent) const |
| virtual void | outputXml (std::ostream &xmlStream, const LinguisticGraph &g, const Common::AnnotationGraphs::AnnotationData *ad) const |
Protected Attributes | |
| uint64_t | m_id |
| std::string | m_categ |
| float | m_salience |
| float | m_bindingSalience |
| LinguisticGraphVertex | m_morphVertex |
| CoreferentAnnotation * | m_newerRef |
Definition at line 46 of file coreferentAnnotation.h.
| typedef std::set<CoreferentAnnotation*> Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::Vertices |
Definition at line 52 of file coreferentAnnotation.h.
| typedef std::map<CoreferentAnnotation*,std::set<CoreferentAnnotation*> > Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::VerticesRelation |
Definition at line 53 of file coreferentAnnotation.h.
| typedef std::map< CoreferentAnnotation*,std::map <CoreferentAnnotation*,float> > Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::WeightedVerticesRelation |
Definition at line 54 of file coreferentAnnotation.h.
|
inline |
Definition at line 56 of file coreferentAnnotation.h.
|
inline |
Definition at line 58 of file coreferentAnnotation.h.
|
inline |
Definition at line 61 of file coreferentAnnotation.h.
|
inline |
Definition at line 64 of file coreferentAnnotation.h.
|
inlinevirtual |
Definition at line 82 of file coreferentAnnotation.h.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::aba4 | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| MediaId | language, | ||
| const std::set< LinguisticCode > & | inNpCategs, | ||
| LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac, | ||
| const LinguisticCode & | conjCoord, | ||
| std::deque< Vertices > * | npCandidates | ||
| ) | const |
Definition at line 914 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::aba5 | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| MediaId | language, | ||
| LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac, | ||
| const std::map< std::string, int > & | slotValues, | ||
| const LinguisticCode & | conjCoord | ||
| ) | const |
Definition at line 1086 of file coreferentAnnotation.cpp.
|
inline |
|
inline |
|
inline |
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::beginWithColon | ( | const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, |
| LinguisticGraphVertex & | beginSentence | ||
| ) | const |
test functions for the salience weighting
Definition at line 250 of file coreferentAnnotation.cpp.
|
inline |
Definition at line 448 of file coreferentAnnotation.h.
|
inline |
Definition at line 488 of file coreferentAnnotation.h.
|
inline |
Definition at line 436 of file coreferentAnnotation.h.
|
inline |
Definition at line 440 of file coreferentAnnotation.h.
|
inline |
Definition at line 480 of file coreferentAnnotation.h.
| int Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::classify | ( | LinguisticGraph * | graph, |
| SyntacticAnalysis::SyntacticData * | sd, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| const std::set< LinguisticCode > & | definiteCategs, | ||
| const std::set< LinguisticCode > & | reflexiveReciprocalCategs, | ||
| const std::set< LinguisticCode > & | undefPronouns, | ||
| const std::set< LinguisticCode > & | possPronouns, | ||
| const bool & | resolveDefinites, | ||
| const bool & | resolveN3PPronouns, | ||
| const Common::PropertyCode::PropertyAccessor * | personAccessor, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| MediaId | language | ||
| ) |
main functions of the global algorithm (called by Corefsolver)
Definition at line 1138 of file coreferentAnnotation.cpp.
| void Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::dump | ( | std::ostream & | os, |
| const Lima::Common::AnnotationGraphs::AnnotationData * | ad | ||
| ) | const |
Definition at line 1304 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::endWithColon | ( | const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, |
| LinguisticGraphVertex & | endSentence | ||
| ) | const |
Definition at line 258 of file coreferentAnnotation.cpp.
| int Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::getSlotValue | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| const std::map< std::string, int > & | slotValues, | ||
| MediaId | language | ||
| ) | const |
Definition at line 1028 of file coreferentAnnotation.cpp.
|
inline |
Definition at line 504 of file coreferentAnnotation.h.
|
inline |
Definition at line 428 of file coreferentAnnotation.h.
|
inline |
Definition at line 432 of file coreferentAnnotation.h.
|
inline |
Definition at line 476 of file coreferentAnnotation.h.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isAgreementCompatibleWith | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const Common::PropertyCode::PropertyAccessor * | genderAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | personAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | numberAccessor, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac | ||
| ) | const |
Definition at line 487 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isConjCoord | ( | const Common::PropertyCode::PropertyAccessor * | microAccessor, |
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| const LinguisticCode & | conjCoord | ||
| ) | const |
Definition at line 421 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isContainedIn | ( | const DependencyGraphVertex & | dv, |
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac | ||
| ) | const |
Definition at line 849 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isDefinite | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const std::string & | definiteRel, | ||
| const std::set< LinguisticCode > & | definiteCategs, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| MediaId | language | ||
| ) | const |
test functions for the initial classification
Definition at line 137 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isDeterminer | ( | DependencyGraphVertex * | qv, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac | ||
| ) | const |
Definition at line 863 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isFunctionMasterOf | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const std::deque< std::string > & | macroDependencyRelation, | ||
| MediaId | language | ||
| ) | const |
returns true if *this governs a macroDependencyRelation (cf.
parameters) difference with GovernorOf() is:
Definition at line 354 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isGovernedByMasculineCoordinate | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const Common::PropertyCode::PropertyAccessor * | genderAccessor, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac | ||
| ) | const |
Definition at line 437 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInAppos | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac, | ||
| MediaId | language, | ||
| std::set< DependencyGraphVertex > * | alreadyProcessed | ||
| ) | const |
Definition at line 266 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isIncludedInNounPhrase | ( | const LinguisticGraph * | g, |
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac, | ||
| const std::set< LinguisticCode > & | inNpCategs, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor | ||
| ) | const |
general test functions
Definition at line 57 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInQuantA | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph | ||
| ) | const |
Definition at line 285 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInSubordinate | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac, | ||
| std::set< LinguisticGraphVertex > * | alreadyProcessed | ||
| ) | const |
Definition at line 305 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInTheAdjunctDomainOf | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const LinguisticGraph * | graph, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| MediaId | language | ||
| ) | const |
Definition at line 699 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInTheArgumentDomainOf | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const LinguisticCode & | conjCoord, | ||
| std::set< LinguisticGraphVertex > * | alreadyProcessed | ||
| ) | const |
Definition at line 551 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInTheArgumentDomainOf2 | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const LinguisticCode & | conjCoord, | ||
| std::set< LinguisticGraphVertex > * | alreadyProcessed | ||
| ) | const |
Definition at line 636 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInTheNpDomainOf | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac | ||
| ) | const |
Definition at line 813 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isInThePrepAdjunctNP | ( | const DependencyGraphVertex & | qv, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const LinguisticGraph * | graph, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| MediaId | language | ||
| ) | const |
Definition at line 732 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isN3PPronoun | ( | const Common::PropertyCode::PropertyAccessor * | personAccessor, |
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph | ||
| ) | const |
Definition at line 240 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isPleonastic | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const std::string & | m_pleonRel, | ||
| MediaId | language | ||
| ) | const |
Definition at line 166 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isPronoun | ( | const LinguisticGraph * | g, |
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const LinguisticCode & | L_PRON | ||
| ) | const |
test functions for the initial classification
Definition at line 126 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isTaggedAsOneOfThese | ( | const LinguisticGraph * | g, |
| const std::set< LinguisticCode > & | categs, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor | ||
| ) | const |
Definition at line 108 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::isVerb | ( | const Common::PropertyCode::PropertyAccessor * | macroAccessor, |
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph | ||
| ) | const |
test functions for the syntactic filter and the reflexive binding algorithm
Definition at line 403 of file coreferentAnnotation.cpp.
|
inline |
Definition at line 452 of file coreferentAnnotation.h.
|
inline |
Definition at line 456 of file coreferentAnnotation.h.
|
inline |
Definition at line 492 of file coreferentAnnotation.h.
|
inline |
Definition at line 468 of file coreferentAnnotation.h.
|
inline |
Definition at line 472 of file coreferentAnnotation.h.
|
inline |
Definition at line 500 of file coreferentAnnotation.h.
| LinguisticGraphVertex Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::npHeadVertex | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| MediaId | language, | ||
| std::set< DependencyGraphVertex > * | alreadyProcessed | ||
| ) | const |
Definition at line 74 of file coreferentAnnotation.cpp.
|
inline |
Definition at line 69 of file coreferentAnnotation.h.
|
virtual |
Definition at line 1342 of file coreferentAnnotation.cpp.
| std::string Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::referentType | ( | const SyntacticAnalysis::SyntacticData * | sd, |
| const LinguisticGraph * | g, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const Common::PropertyCode::PropertyAccessor * | microAccessor, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| const std::set< LinguisticCode > & | definiteCategs, | ||
| const std::set< LinguisticCode > & | reflexiveReciprocalCategs, | ||
| const std::set< LinguisticCode > & | undefPronounsCategs, | ||
| const std::set< LinguisticCode > & | possPronounsCategs, | ||
| const Common::PropertyCode::PropertyAccessor * | personAccessor, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| MediaId | language | ||
| ) | const |
Definition at line 190 of file coreferentAnnotation.cpp.
|
inline |
Definition at line 444 of file coreferentAnnotation.h.
|
inline |
Definition at line 484 of file coreferentAnnotation.h.
| float Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::salienceWeighting | ( | const std::map< std::string, float > & | weights, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| MediaId | language, | ||
| const std::map< std::string, LinguisticCode > & | tagLocalDef, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| AnalysisContent & | ac, | ||
| LinguisticGraphVertex & | beginSentence, | ||
| LinguisticGraphVertex & | endSentence | ||
| ) | const |
Definition at line 1174 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::sentenceIsRecent | ( | ) | const |
test functions for the salience weighting
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::sf4 | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const Common::PropertyCode::PropertyAccessor * | macroAccessor, | ||
| const LinguisticCode & | L_PRON, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac | ||
| ) | const |
Definition at line 771 of file coreferentAnnotation.cpp.
| bool Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::sf6 | ( | const CoreferentAnnotation & | ca, |
| const SyntacticAnalysis::SyntacticData * | sd, | ||
| const std::map< std::string, std::deque< std::string > > & | relLocalDef, | ||
| MediaId | language, | ||
| const LinguisticAnalysisStructure::AnalysisGraph * | anagraph, | ||
| AnalysisContent & | ac | ||
| ) | const |
Definition at line 891 of file coreferentAnnotation.cpp.
| AnnotationGraphVertex Lima::LinguisticProcessing::Coreferences::CoreferentAnnotation::writeAnnotation | ( | Common::AnnotationGraphs::AnnotationData * | ad, |
| CoreferentAnnotation & | antecedent | ||
| ) | const |
Creation of an annotation for the object CoreferentAnnotation
Creation of an annotation for the object CoreferentAnnotation
Creation of a new vertex (a new annotation anchor) in the annotation graph.
If anaphora, the two concerned vertices are binded
Definition at line 1245 of file coreferentAnnotation.cpp.
|
protected |
Definition at line 421 of file coreferentAnnotation.h.
|
protected |
Definition at line 419 of file coreferentAnnotation.h.
|
protected |
Definition at line 418 of file coreferentAnnotation.h.
|
protected |
Definition at line 422 of file coreferentAnnotation.h.
|
protected |
Definition at line 425 of file coreferentAnnotation.h.
|
protected |
Definition at line 420 of file coreferentAnnotation.h.