LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::Common::BagOfWords::BoWXmlReaderPrivate Class Reference

Classes

class  CurrentComplexToken

Public Member Functions

 BoWXmlReaderPrivate (const std::string &filename, std::ostream &output)
 ~BoWXmlReaderPrivate ()=default
bool parse (QIODevice *device)
QString errorString () const
void readBowDocument ()
void readBowText ()
void readHierarchy ()
void readProperty ()
void readProperties ()
void readTokens ()
void readBowToken ()
void readBowTerm ()
void readBowNamedEntity ()
void readParts ()
void readBowTokenRef ()
void readFeature ()
uint64_t getIntAttribute (const QXmlStreamReader &attributes, const char *name) const
float getFloatAttribute (const QXmlStreamReader &attributes, const char *name) const
std::string getStringAttribute (const QXmlStreamReader &attributes, const char *name) const
QString getQStringAttribute (const QXmlStreamReader &attributes, const char *name) const
QDate getDateAttribute (const QXmlStreamReader &attributes, const char *name) const
bool addProperty (const QXmlStreamReader &attributes)
uint64_t getTokenAttributes (const QXmlStreamReader &attributes, LimaString &lemma, LinguisticCode &category, uint64_t &position, uint64_t &length, uint64_t &id) const

Public Attributes

LimaString lemma
LinguisticCode category
uint64_t position
uint64_t length
uint64_t id
QXmlStreamReader m_reader
std::ostream & m_outputStream
BoWDocument m_currentBoWDocument
boost::shared_ptr< BoWText > m_currentBoWText
Common::Misc::GenericDocumentProperties m_currentProperties
std::vector< CurrentComplexToken > m_currentComplexToken
std::map< uint64_t, boost::shared_ptr< BoWToken > > m_refMap

Friends

class BoWXmlReader

Detailed Description

Definition at line 39 of file bowXMLReader.cpp.

Constructor & Destructor Documentation

◆ BoWXmlReaderPrivate()

Lima::Common::BagOfWords::BoWXmlReaderPrivate::BoWXmlReaderPrivate ( const std::string & filename,
std::ostream & output )

Definition at line 122 of file bowXMLReader.cpp.

◆ ~BoWXmlReaderPrivate()

Lima::Common::BagOfWords::BoWXmlReaderPrivate::~BoWXmlReaderPrivate ( )
default

Member Function Documentation

◆ addProperty()

bool Lima::Common::BagOfWords::BoWXmlReaderPrivate::addProperty ( const QXmlStreamReader & attributes)

Definition at line 493 of file bowXMLReader.cpp.

◆ errorString()

QString Lima::Common::BagOfWords::BoWXmlReaderPrivate::errorString ( ) const

Definition at line 620 of file bowXMLReader.cpp.

◆ getDateAttribute()

QDate Lima::Common::BagOfWords::BoWXmlReaderPrivate::getDateAttribute ( const QXmlStreamReader & attributes,
const char * name ) const

Definition at line 593 of file bowXMLReader.cpp.

◆ getFloatAttribute()

float Lima::Common::BagOfWords::BoWXmlReaderPrivate::getFloatAttribute ( const QXmlStreamReader & attributes,
const char * name ) const

Definition at line 570 of file bowXMLReader.cpp.

◆ getIntAttribute()

uint64_t Lima::Common::BagOfWords::BoWXmlReaderPrivate::getIntAttribute ( const QXmlStreamReader & attributes,
const char * name ) const

Definition at line 552 of file bowXMLReader.cpp.

◆ getQStringAttribute()

QString Lima::Common::BagOfWords::BoWXmlReaderPrivate::getQStringAttribute ( const QXmlStreamReader & attributes,
const char * name ) const

Definition at line 615 of file bowXMLReader.cpp.

◆ getStringAttribute()

std::string Lima::Common::BagOfWords::BoWXmlReaderPrivate::getStringAttribute ( const QXmlStreamReader & attributes,
const char * name ) const

Definition at line 588 of file bowXMLReader.cpp.

◆ getTokenAttributes()

uint64_t Lima::Common::BagOfWords::BoWXmlReaderPrivate::getTokenAttributes ( const QXmlStreamReader & attributes,
LimaString & lemma,
LinguisticCode & category,
uint64_t & position,
uint64_t & length,
uint64_t & id ) const

Definition at line 537 of file bowXMLReader.cpp.

◆ parse()

bool Lima::Common::BagOfWords::BoWXmlReaderPrivate::parse ( QIODevice * device)

Definition at line 146 of file bowXMLReader.cpp.

◆ readBowDocument()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readBowDocument ( )

Definition at line 168 of file bowXMLReader.cpp.

◆ readBowNamedEntity()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readBowNamedEntity ( )

Definition at line 384 of file bowXMLReader.cpp.

◆ readBowTerm()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readBowTerm ( )

Definition at line 345 of file bowXMLReader.cpp.

◆ readBowText()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readBowText ( )

Definition at line 187 of file bowXMLReader.cpp.

◆ readBowToken()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readBowToken ( )

Definition at line 315 of file bowXMLReader.cpp.

◆ readBowTokenRef()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readBowTokenRef ( )

Definition at line 466 of file bowXMLReader.cpp.

◆ readFeature()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readFeature ( )

Definition at line 477 of file bowXMLReader.cpp.

◆ readHierarchy()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readHierarchy ( )

Definition at line 202 of file bowXMLReader.cpp.

◆ readParts()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readParts ( )

Definition at line 444 of file bowXMLReader.cpp.

◆ readProperties()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readProperties ( )

Definition at line 268 of file bowXMLReader.cpp.

◆ readProperty()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readProperty ( )

Definition at line 259 of file bowXMLReader.cpp.

◆ readTokens()

void Lima::Common::BagOfWords::BoWXmlReaderPrivate::readTokens ( )

Definition at line 285 of file bowXMLReader.cpp.

◆ BoWXmlReader

friend class BoWXmlReader
friend

Definition at line 41 of file bowXMLReader.cpp.

Member Data Documentation

◆ category

LinguisticCode Lima::Common::BagOfWords::BoWXmlReaderPrivate::category

Definition at line 76 of file bowXMLReader.cpp.

◆ id

uint64_t Lima::Common::BagOfWords::BoWXmlReaderPrivate::id

Definition at line 79 of file bowXMLReader.cpp.

◆ lemma

LimaString Lima::Common::BagOfWords::BoWXmlReaderPrivate::lemma

Definition at line 75 of file bowXMLReader.cpp.

◆ length

uint64_t Lima::Common::BagOfWords::BoWXmlReaderPrivate::length

Definition at line 78 of file bowXMLReader.cpp.

◆ m_currentBoWDocument

BoWDocument Lima::Common::BagOfWords::BoWXmlReaderPrivate::m_currentBoWDocument

Definition at line 83 of file bowXMLReader.cpp.

◆ m_currentBoWText

boost::shared_ptr< BoWText > Lima::Common::BagOfWords::BoWXmlReaderPrivate::m_currentBoWText

Definition at line 84 of file bowXMLReader.cpp.

◆ m_currentComplexToken

std::vector<CurrentComplexToken> Lima::Common::BagOfWords::BoWXmlReaderPrivate::m_currentComplexToken

Definition at line 86 of file bowXMLReader.cpp.

◆ m_currentProperties

Common::Misc::GenericDocumentProperties Lima::Common::BagOfWords::BoWXmlReaderPrivate::m_currentProperties

Definition at line 85 of file bowXMLReader.cpp.

◆ m_outputStream

std::ostream& Lima::Common::BagOfWords::BoWXmlReaderPrivate::m_outputStream

Definition at line 82 of file bowXMLReader.cpp.

◆ m_reader

QXmlStreamReader Lima::Common::BagOfWords::BoWXmlReaderPrivate::m_reader

Definition at line 81 of file bowXMLReader.cpp.

◆ m_refMap

std::map<uint64_t, boost::shared_ptr< BoWToken > > Lima::Common::BagOfWords::BoWXmlReaderPrivate::m_refMap

Definition at line 87 of file bowXMLReader.cpp.

◆ position

uint64_t Lima::Common::BagOfWords::BoWXmlReaderPrivate::position

Definition at line 77 of file bowXMLReader.cpp.


The documentation for this class was generated from the following file:
  • lima_linguisticprocessing/src/linguisticProcessing/common/BagOfWords/bowXMLReader.cpp