LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LimaAnalyzerPrivate Class Reference

Public Member Functions

 LimaAnalyzerPrivate (const QStringList &qlangs, const QStringList &qpipelines, const QString &modulePath, const QString &user_config_path, const QString &user_resources_path, const QString &meta)
 ~LimaAnalyzerPrivate ()
 LimaAnalyzerPrivate (const LimaAnalyzerPrivate &a)=delete
LimaAnalyzerPrivate & operator= (const LimaAnalyzerPrivate &a)=delete
void initMetaData ()
bool addPipelineUnit (const std::string &pipeline, const std::string &media, const std::string &jsonGroupString)
const std::string analyzeText (const std::string &text, const std::string &lang, const std::string &pipeline, const std::string &meta)
void collectDependencyInformations (std::shared_ptr< Lima::AnalysisContent > analysis)
void collectVertexDependencyInformations (LinguisticGraphVertex v, std::shared_ptr< Lima::AnalysisContent > analysis)
QString getNeType (LinguisticGraphVertex posGraphVertex)
 Gets the named entity type for the PosGraph vertex posGraphVertex if it is a specific entity.
std::pair< QString, int > getConllRelName (LinguisticGraphVertex v)
const SpecificEntityAnnotation * getSpecificEntityAnnotation (LinguisticGraphVertex v) const
bool hasSpaceAfter (LinguisticGraphVertex v, LinguisticGraph *graph)
QString getMicro (LinguisticAnalysisStructure::MorphoSyntacticData &morphoData)
QString getFeats (const LinguisticAnalysisStructure::MorphoSyntacticData &morphoData)
void reset ()
 Reset all members used to store analysis states.
QJsonObject objectFromString (const QString &in)

Public Attributes

QString previousNeType
const FsaStringsPool * sp = nullptr
MediaId medId
const LanguageData * languageData = nullptr
const Common::PropertyCode::PropertyAccessor * propertyAccessor = nullptr
LinguisticGraph * posGraph = nullptr
LinguisticGraph * anaGraph = nullptr
AnnotationData * annotationData = nullptr
std::shared_ptr< SyntacticData > syntacticData = nullptr
std::map< LinguisticGraphVertex, std::pair< LinguisticGraphVertex, std::string > > vertexDependencyInformations
QMap< QString, QString > conllLimaDepMapping
std::map< LinguisticGraphVertex, int > vertexToToken
const PropertyCodeManager * propertyCodeManager = nullptr
std::map< std::string, AbstractAnalysisHandler * > handlers
std::unique_ptr< BowTextWriter > bowTextWriter = nullptr
std::unique_ptr< BowTextHandler > bowTextHandler = nullptr
std::unique_ptr< SimpleStreamHandler > simpleStreamHandler = nullptr
std::unique_ptr< SimpleStreamHandler > fullXmlSimpleStreamHandler = nullptr
std::unique_ptr< LTRTextHandler > ltrTextHandler = nullptr
std::set< std::string > dumpers = {"text"}
std::shared_ptr< AbstractLinguisticProcessingClient > m_client
std::map< std::string, std::string > metaData
QStringList qlangs
QStringList qpipelines
QString modulePath
QString user_config_path
QString user_resources_path
QString meta

Friends

class LimaAnalyzer

Detailed Description

Definition at line 167 of file lima.cpp.

Constructor & Destructor Documentation

◆ LimaAnalyzerPrivate() [1/2]

LimaAnalyzerPrivate::LimaAnalyzerPrivate ( const QStringList & qlangs,
const QStringList & qpipelines,
const QString & modulePath,
const QString & user_config_path,
const QString & user_resources_path,
const QString & meta )

Definition at line 294 of file lima.cpp.

◆ ~LimaAnalyzerPrivate()

LimaAnalyzerPrivate::~LimaAnalyzerPrivate ( )

Definition at line 439 of file lima.cpp.

◆ LimaAnalyzerPrivate() [2/2]

LimaAnalyzerPrivate::LimaAnalyzerPrivate ( const LimaAnalyzerPrivate & a)
delete

Member Function Documentation

◆ addPipelineUnit()

bool LimaAnalyzerPrivate::addPipelineUnit ( const std::string & pipeline,
const std::string & media,
const std::string & jsonGroupString )

Definition at line 616 of file lima.cpp.

◆ analyzeText()

const std::string LimaAnalyzerPrivate::analyzeText ( const std::string & text,
const std::string & lang,
const std::string & pipeline,
const std::string & meta )

Definition at line 667 of file lima.cpp.

◆ collectDependencyInformations()

void LimaAnalyzerPrivate::collectDependencyInformations ( std::shared_ptr< Lima::AnalysisContent > analysis)

Definition at line 780 of file lima.cpp.

◆ collectVertexDependencyInformations()

void LimaAnalyzerPrivate::collectVertexDependencyInformations ( LinguisticGraphVertex v,
std::shared_ptr< Lima::AnalysisContent > analysis )

Definition at line 907 of file lima.cpp.

◆ getConllRelName()

std::pair< QString, int > LimaAnalyzerPrivate::getConllRelName ( LinguisticGraphVertex v)

Definition at line 978 of file lima.cpp.

◆ getFeats()

QString LimaAnalyzerPrivate::getFeats ( const LinguisticAnalysisStructure::MorphoSyntacticData & morphoData)

Definition at line 731 of file lima.cpp.

◆ getMicro()

QString LimaAnalyzerPrivate::getMicro ( LinguisticAnalysisStructure::MorphoSyntacticData & morphoData)

Definition at line 1080 of file lima.cpp.

◆ getNeType()

QString LimaAnalyzerPrivate::getNeType ( LinguisticGraphVertex posGraphVertex)

Gets the named entity type for the PosGraph vertex posGraphVertex if it is a specific entity.

Return "_" otherwise

Definition at line 926 of file lima.cpp.

◆ getSpecificEntityAnnotation()

const SpecificEntityAnnotation * LimaAnalyzerPrivate::getSpecificEntityAnnotation ( LinguisticGraphVertex v) const

Definition at line 1038 of file lima.cpp.

◆ hasSpaceAfter()

bool LimaAnalyzerPrivate::hasSpaceAfter ( LinguisticGraphVertex v,
LinguisticGraph * graph )

Definition at line 1061 of file lima.cpp.

◆ initMetaData()

void LimaAnalyzerPrivate::initMetaData ( )

Definition at line 555 of file lima.cpp.

◆ objectFromString()

QJsonObject LimaAnalyzerPrivate::objectFromString ( const QString & in)

Definition at line 590 of file lima.cpp.

◆ operator=()

LimaAnalyzerPrivate & LimaAnalyzerPrivate::operator= ( const LimaAnalyzerPrivate & a)
delete

◆ reset()

void LimaAnalyzerPrivate::reset ( )

Reset all members used to store analysis states.

To be called before handling a new analysis.

Definition at line 538 of file lima.cpp.

◆ LimaAnalyzer

friend class LimaAnalyzer
friend

Definition at line 169 of file lima.cpp.

Member Data Documentation

◆ anaGraph

LinguisticGraph* LimaAnalyzerPrivate::anaGraph = nullptr

Definition at line 225 of file lima.cpp.

◆ annotationData

AnnotationData* LimaAnalyzerPrivate::annotationData = nullptr

Definition at line 226 of file lima.cpp.

◆ bowTextHandler

std::unique_ptr<BowTextHandler> LimaAnalyzerPrivate::bowTextHandler = nullptr

Definition at line 240 of file lima.cpp.

◆ bowTextWriter

std::unique_ptr<BowTextWriter> LimaAnalyzerPrivate::bowTextWriter = nullptr

Definition at line 239 of file lima.cpp.

◆ conllLimaDepMapping

QMap<QString, QString> LimaAnalyzerPrivate::conllLimaDepMapping

Definition at line 231 of file lima.cpp.

◆ dumpers

std::set<std::string> LimaAnalyzerPrivate::dumpers = {"text"}

Definition at line 244 of file lima.cpp.

◆ fullXmlSimpleStreamHandler

std::unique_ptr<SimpleStreamHandler> LimaAnalyzerPrivate::fullXmlSimpleStreamHandler = nullptr

Definition at line 242 of file lima.cpp.

◆ handlers

std::map<std::string, AbstractAnalysisHandler*> LimaAnalyzerPrivate::handlers

Definition at line 238 of file lima.cpp.

◆ languageData

const LanguageData* LimaAnalyzerPrivate::languageData = nullptr

Definition at line 222 of file lima.cpp.

◆ ltrTextHandler

std::unique_ptr<LTRTextHandler> LimaAnalyzerPrivate::ltrTextHandler = nullptr

Definition at line 243 of file lima.cpp.

◆ m_client

std::shared_ptr< AbstractLinguisticProcessingClient > LimaAnalyzerPrivate::m_client

Definition at line 245 of file lima.cpp.

◆ medId

MediaId LimaAnalyzerPrivate::medId

Definition at line 219 of file lima.cpp.

◆ meta

QString LimaAnalyzerPrivate::meta

Definition at line 253 of file lima.cpp.

◆ metaData

std::map<std::string,std::string> LimaAnalyzerPrivate::metaData

Definition at line 246 of file lima.cpp.

◆ modulePath

QString LimaAnalyzerPrivate::modulePath

Definition at line 250 of file lima.cpp.

◆ posGraph

LinguisticGraph* LimaAnalyzerPrivate::posGraph = nullptr

Definition at line 224 of file lima.cpp.

◆ previousNeType

QString LimaAnalyzerPrivate::previousNeType

Definition at line 216 of file lima.cpp.

◆ propertyAccessor

const Common::PropertyCode::PropertyAccessor* LimaAnalyzerPrivate::propertyAccessor = nullptr

Definition at line 223 of file lima.cpp.

◆ propertyCodeManager

const PropertyCodeManager* LimaAnalyzerPrivate::propertyCodeManager = nullptr

Definition at line 236 of file lima.cpp.

◆ qlangs

QStringList LimaAnalyzerPrivate::qlangs

Definition at line 248 of file lima.cpp.

◆ qpipelines

QStringList LimaAnalyzerPrivate::qpipelines

Definition at line 249 of file lima.cpp.

◆ simpleStreamHandler

std::unique_ptr<SimpleStreamHandler> LimaAnalyzerPrivate::simpleStreamHandler = nullptr

Definition at line 241 of file lima.cpp.

◆ sp

const FsaStringsPool* LimaAnalyzerPrivate::sp = nullptr

Definition at line 218 of file lima.cpp.

◆ syntacticData

std::shared_ptr<SyntacticData> LimaAnalyzerPrivate::syntacticData = nullptr

Definition at line 227 of file lima.cpp.

◆ user_config_path

QString LimaAnalyzerPrivate::user_config_path

Definition at line 251 of file lima.cpp.

◆ user_resources_path

QString LimaAnalyzerPrivate::user_resources_path

Definition at line 252 of file lima.cpp.

◆ vertexDependencyInformations

std::map< LinguisticGraphVertex, std::pair<LinguisticGraphVertex, std::string> > LimaAnalyzerPrivate::vertexDependencyInformations

Definition at line 230 of file lima.cpp.

◆ vertexToToken

std::map<LinguisticGraphVertex, int> LimaAnalyzerPrivate::vertexToToken

Definition at line 234 of file lima.cpp.


The documentation for this class was generated from the following file:
  • lima_linguisticprocessing/src/linguisticProcessing/client/lima.cpp