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 ()=default
 
 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 147 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 237 of file lima.cpp.

◆ ~LimaAnalyzerPrivate()

LimaAnalyzerPrivate::~LimaAnalyzerPrivate ( )
default

◆ 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 530 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 581 of file lima.cpp.

◆ collectDependencyInformations()

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

Definition at line 694 of file lima.cpp.

◆ collectVertexDependencyInformations()

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

Definition at line 821 of file lima.cpp.

◆ getConllRelName()

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

Definition at line 892 of file lima.cpp.

◆ getFeats()

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

Definition at line 645 of file lima.cpp.

◆ getMicro()

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

Definition at line 992 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 840 of file lima.cpp.

◆ getSpecificEntityAnnotation()

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

Definition at line 950 of file lima.cpp.

◆ hasSpaceAfter()

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

Definition at line 973 of file lima.cpp.

◆ initMetaData()

void LimaAnalyzerPrivate::initMetaData ( )

Definition at line 469 of file lima.cpp.

◆ objectFromString()

QJsonObject LimaAnalyzerPrivate::objectFromString ( const QString &  in)

Definition at line 504 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 452 of file lima.cpp.

Friends And Related Symbol Documentation

◆ LimaAnalyzer

friend class LimaAnalyzer
friend

Definition at line 149 of file lima.cpp.

Member Data Documentation

◆ anaGraph

LinguisticGraph* LimaAnalyzerPrivate::anaGraph = nullptr

Definition at line 205 of file lima.cpp.

◆ annotationData

AnnotationData* LimaAnalyzerPrivate::annotationData = nullptr

Definition at line 206 of file lima.cpp.

◆ bowTextHandler

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

Definition at line 220 of file lima.cpp.

◆ bowTextWriter

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

Definition at line 219 of file lima.cpp.

◆ conllLimaDepMapping

QMap<QString, QString> LimaAnalyzerPrivate::conllLimaDepMapping

Definition at line 211 of file lima.cpp.

◆ dumpers

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

Definition at line 224 of file lima.cpp.

◆ fullXmlSimpleStreamHandler

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

Definition at line 222 of file lima.cpp.

◆ handlers

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

Definition at line 218 of file lima.cpp.

◆ languageData

const LanguageData* LimaAnalyzerPrivate::languageData = nullptr

Definition at line 202 of file lima.cpp.

◆ ltrTextHandler

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

Definition at line 223 of file lima.cpp.

◆ m_client

std::shared_ptr< AbstractLinguisticProcessingClient > LimaAnalyzerPrivate::m_client

Definition at line 225 of file lima.cpp.

◆ medId

MediaId LimaAnalyzerPrivate::medId

Definition at line 199 of file lima.cpp.

◆ meta

QString LimaAnalyzerPrivate::meta

Definition at line 233 of file lima.cpp.

◆ metaData

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

Definition at line 226 of file lima.cpp.

◆ modulePath

QString LimaAnalyzerPrivate::modulePath

Definition at line 230 of file lima.cpp.

◆ posGraph

LinguisticGraph* LimaAnalyzerPrivate::posGraph = nullptr

Definition at line 204 of file lima.cpp.

◆ previousNeType

QString LimaAnalyzerPrivate::previousNeType

Definition at line 196 of file lima.cpp.

◆ propertyAccessor

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

Definition at line 203 of file lima.cpp.

◆ propertyCodeManager

const PropertyCodeManager* LimaAnalyzerPrivate::propertyCodeManager = nullptr

Definition at line 216 of file lima.cpp.

◆ qlangs

QStringList LimaAnalyzerPrivate::qlangs

Definition at line 228 of file lima.cpp.

◆ qpipelines

QStringList LimaAnalyzerPrivate::qpipelines

Definition at line 229 of file lima.cpp.

◆ simpleStreamHandler

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

Definition at line 221 of file lima.cpp.

◆ sp

const FsaStringsPool* LimaAnalyzerPrivate::sp = nullptr

Definition at line 198 of file lima.cpp.

◆ syntacticData

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

Definition at line 207 of file lima.cpp.

◆ user_config_path

QString LimaAnalyzerPrivate::user_config_path

Definition at line 231 of file lima.cpp.

◆ user_resources_path

QString LimaAnalyzerPrivate::user_resources_path

Definition at line 232 of file lima.cpp.

◆ vertexDependencyInformations

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

Definition at line 210 of file lima.cpp.

◆ vertexToToken

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

Definition at line 214 of file lima.cpp.


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