LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::SemanticAnalysis Namespace Reference

Classes

class  ClearSemanticRelation
 
struct  ConllHandler
 
class  CreateSemanticRelation
 
class  DumpSemanticAnnotation
 
class  DumpSemanticRelation
 
class  KnowledgeBasedSemanticRoleLabeler
 This is a MediaProcessUnit which do semantic role labeling using the knowledge-based SRL in python made by Quentin Pradet during his PhD thesis. More...
 
class  KnowledgeBasedSemanticRoleLabelerPrivate
 
class  LimaConllTokenIdMapping
 
class  SaveSemanticRelation
 
class  SemanticAnnotation
 
class  SemanticRelation
 
class  SemanticRelationAnnotation
 An annotation between two annotation graph vertices denoting the semantic relation(s) holding between the two tokens. More...
 
class  SemanticRelationData
 
class  SemanticRelationsXmlLogger
 
class  SemanticRoleLabelingLoader
 A Semantic Role Labeling Loader class. More...
 
class  SemanticRoleLabelingLoaderPrivate
 

Functions

std::ostream & operator<< (std::ostream &os, const SemanticAnnotation &annot)
 

Variables

Automaton::ConstraintFunctionFactory< CreateSemanticRelation > CreateSemanticRelationFactory (CreateSemanticRelationId)
 
Automaton::ConstraintFunctionFactory< ClearSemanticRelation > ClearSemanticRelationFactory (ClearSemanticRelationId)
 
Automaton::ConstraintFunctionFactory< SaveSemanticRelation > SaveSemanticRelationFactory (SaveSemanticRelationId)
 
static SimpleFactory< MediaProcessUnit, KnowledgeBasedSemanticRoleLabeler > knowledgeBasedSemanticRoleLabelerFactory (KNOWLEDGEBASEDSEMANTICROLELABELER_CLASSID)
 
auto failed_to_import_the_sys_module
 
auto cannot_instantiate_the_semanticrolelabeler_python_class
 
auto metadata_equal_zero
 
auto temporary_file_not_open
 
auto temporary_file_srl_not_open
 
auto failed_to_load_data_from_temporary_file
 
auto failure_during_call_of_the_annotate_method_on
 
SimpleFactory< MediaProcessUnit, SemanticRelationsXmlLogger > semanticRelationsXmlLoggerFactory (SEMANTICRELATIONSXMLLOGGER_CLASSID)
 
SimpleFactory< MediaProcessUnit, SemanticRoleLabelingLoader > SemanticRoleLabelingFactory (SEMANTICROLELABELINGLOADER_CLASSID)
 

Function Documentation

◆ operator<<()

std::ostream & Lima::LinguisticProcessing::SemanticAnalysis::operator<< ( std::ostream &  os,
const SemanticAnnotation &  annot 
)

Definition at line 21 of file SemanticAnnotation.cpp.

Variable Documentation

◆ cannot_instantiate_the_semanticrolelabeler_python_class

auto Lima::LinguisticProcessing::SemanticAnalysis::cannot_instantiate_the_semanticrolelabeler_python_class
Initial value:
= []()
{
LERROR << "Cannot instantiate the SemanticRoleLabeler python class";
PyErr_Print();
Py_Exit(1);
}
#define LERROR
Definition LimaCommon.h:161
#define SEMANTICANALYSISLOGINIT

Definition at line 88 of file KnowledgeBasedSemanticRoleLabeler.cpp.

◆ ClearSemanticRelationFactory

Automaton::ConstraintFunctionFactory< ClearSemanticRelation > Lima::LinguisticProcessing::SemanticAnalysis::ClearSemanticRelationFactory(ClearSemanticRelationId) ( ClearSemanticRelationId  )

◆ CreateSemanticRelationFactory

Automaton::ConstraintFunctionFactory< CreateSemanticRelation > Lima::LinguisticProcessing::SemanticAnalysis::CreateSemanticRelationFactory(CreateSemanticRelationId) ( CreateSemanticRelationId  )

◆ failed_to_import_the_sys_module

auto Lima::LinguisticProcessing::SemanticAnalysis::failed_to_import_the_sys_module
Initial value:
= []()
{
LERROR << "Failed to import the sys module";
PyErr_Print();
}

Definition at line 81 of file KnowledgeBasedSemanticRoleLabeler.cpp.

◆ failed_to_load_data_from_temporary_file

auto Lima::LinguisticProcessing::SemanticAnalysis::failed_to_load_data_from_temporary_file
Initial value:
= [](QScopedPointer<QTemporaryFile>& temporaryFile)
{
LERROR << "KnowledgeBasedSemanticRoleLabeler: failed to load data from temporary file" << temporaryFile->fileName();
LERROR << "KnowledgeBasedSemanticRoleLabeler: keep (do not auto remove) it for debug purpose." << temporaryFile->fileName();
temporaryFile->setAutoRemove(false);
}

Definition at line 291 of file KnowledgeBasedSemanticRoleLabeler.cpp.

◆ failure_during_call_of_the_annotate_method_on

auto Lima::LinguisticProcessing::SemanticAnalysis::failure_during_call_of_the_annotate_method_on
Initial value:
= [](QString& conllInput)
{
LERROR << "Failure during call of the annotate method on" << conllInput;
PyErr_Print();
Py_Exit(1);
}

Definition at line 299 of file KnowledgeBasedSemanticRoleLabeler.cpp.

◆ knowledgeBasedSemanticRoleLabelerFactory

SimpleFactory< MediaProcessUnit, KnowledgeBasedSemanticRoleLabeler > Lima::LinguisticProcessing::SemanticAnalysis::knowledgeBasedSemanticRoleLabelerFactory(KNOWLEDGEBASEDSEMANTICROLELABELER_CLASSID) ( KNOWLEDGEBASEDSEMANTICROLELABELER_CLASSID  )
static

◆ metadata_equal_zero

auto Lima::LinguisticProcessing::SemanticAnalysis::metadata_equal_zero
Initial value:
= []()
{
LERROR << "no LinguisticMetaData ! abort";
}

Definition at line 271 of file KnowledgeBasedSemanticRoleLabeler.cpp.

◆ SaveSemanticRelationFactory

Automaton::ConstraintFunctionFactory< SaveSemanticRelation > Lima::LinguisticProcessing::SemanticAnalysis::SaveSemanticRelationFactory(SaveSemanticRelationId) ( SaveSemanticRelationId  )

◆ semanticRelationsXmlLoggerFactory

SimpleFactory< MediaProcessUnit, SemanticRelationsXmlLogger > Lima::LinguisticProcessing::SemanticAnalysis::semanticRelationsXmlLoggerFactory(SEMANTICRELATIONSXMLLOGGER_CLASSID) ( SEMANTICRELATIONSXMLLOGGER_CLASSID  )

◆ SemanticRoleLabelingFactory

SimpleFactory< MediaProcessUnit, SemanticRoleLabelingLoader > Lima::LinguisticProcessing::SemanticAnalysis::SemanticRoleLabelingFactory(SEMANTICROLELABELINGLOADER_CLASSID) ( SEMANTICROLELABELINGLOADER_CLASSID  )

◆ temporary_file_not_open

auto Lima::LinguisticProcessing::SemanticAnalysis::temporary_file_not_open
Initial value:
= []()
{
LERROR << "KnowledgeBasedSemanticRoleLabeler: unable to create temporary file";
}

Definition at line 277 of file KnowledgeBasedSemanticRoleLabeler.cpp.

◆ temporary_file_srl_not_open

auto Lima::LinguisticProcessing::SemanticAnalysis::temporary_file_srl_not_open
Initial value:
= [](QScopedPointer<QTemporaryFile>& temporaryFile)
{
LERROR << "KnowledgeBasedSemanticRoleLabeler: unable to open temporary file for dumping SRL CoNLL data to it"<< temporaryFile->fileName();
LERROR << "KnowledgeBasedSemanticRoleLabeler: keep (do not auto remove) it for debug purpose." ;
temporaryFile->setAutoRemove(false);
}

Definition at line 283 of file KnowledgeBasedSemanticRoleLabeler.cpp.