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

#include <linguisticProcessing/common/BagOfWords/bowTokenPrivate.h>

Inheritance diagram for Lima::Common::BagOfWords::BoWTokenPrivate:
Lima::Common::BagOfWords::BoWComplexTokenPrivate Lima::Common::BagOfWords::BoWNamedEntityPrivate Lima::Common::BagOfWords::BoWTermPrivate

Public Member Functions

 BoWTokenPrivate (const Lima::LimaString &lemma, const LinguisticCode category, const uint64_t position, const uint64_t length)
 BoWTokenPrivate (const Lima::LimaString &str, const uint64_t position=0, const uint64_t length=0)
 BoWTokenPrivate (const BoWToken &tok)
 BoWTokenPrivate ()
 BoWTokenPrivate (const BoWTokenPrivate &tok)
BoWTokenPrivate & operator= (const BoWTokenPrivate &tok)
bool operator== (const BoWTokenPrivate &tok) const
virtual ~BoWTokenPrivate ()
void convertSpaces (void)
 convert the spaces in the lemma string into a non-space character (defined by the m_compoundSeparator member)

Public Attributes

Lima::LimaString m_lemma
Lima::LimaString m_inflectedForm
LinguisticCode m_category
uint64_t m_position
uint64_t m_length
uint64_t m_vertex

Static Public Attributes

static LimaChar m_separator =DEFAULT_SEPARATOR
static LimaChar m_compoundSeparator =DEFAULT_COMPOUND_SEPARATOR
static bool m_useOnlyLemma =true

Friends

class BoWToken
std::ostream & operator<< (std::ostream &os, const BoWToken &tok)
std::ostream & operator<< (std::ostream &os, const std::map< BoWToken *, uint64_t > &refMap)
 only for debug
QDebug & operator<< (QDebug &os, const BoWToken &tok)
QDebug & operator<< (QDebug &os, const std::map< BoWToken *, uint64_t > &refMap)
 only for debug

Detailed Description

Definition at line 35 of file bowTokenPrivate.h.

Constructor & Destructor Documentation

◆ BoWTokenPrivate() [1/5]

Lima::Common::BagOfWords::BoWTokenPrivate::BoWTokenPrivate ( const Lima::LimaString & lemma,
const LinguisticCode category,
const uint64_t position,
const uint64_t length )

◆ BoWTokenPrivate() [2/5]

Lima::Common::BagOfWords::BoWTokenPrivate::BoWTokenPrivate ( const Lima::LimaString & str,
const uint64_t position = 0,
const uint64_t length = 0 )

◆ BoWTokenPrivate() [3/5]

Lima::Common::BagOfWords::BoWTokenPrivate::BoWTokenPrivate ( const BoWToken & tok)

Definition at line 90 of file bowToken.cpp.

◆ BoWTokenPrivate() [4/5]

Lima::Common::BagOfWords::BoWTokenPrivate::BoWTokenPrivate ( )

Definition at line 63 of file bowToken.cpp.

◆ BoWTokenPrivate() [5/5]

Lima::Common::BagOfWords::BoWTokenPrivate::BoWTokenPrivate ( const BoWTokenPrivate & tok)

Definition at line 128 of file bowToken.cpp.

◆ ~BoWTokenPrivate()

Lima::Common::BagOfWords::BoWTokenPrivate::~BoWTokenPrivate ( )
virtual

Definition at line 167 of file bowToken.cpp.

Member Function Documentation

◆ convertSpaces()

void Lima::Common::BagOfWords::BoWTokenPrivate::convertSpaces ( void )

convert the spaces in the lemma string into a non-space character (defined by the m_compoundSeparator member)

Definition at line 366 of file bowToken.cpp.

◆ operator=()

BoWTokenPrivate & Lima::Common::BagOfWords::BoWTokenPrivate::operator= ( const BoWTokenPrivate & tok)

Definition at line 138 of file bowToken.cpp.

◆ operator==()

bool Lima::Common::BagOfWords::BoWTokenPrivate::operator== ( const BoWTokenPrivate & tok) const

Definition at line 152 of file bowToken.cpp.

◆ BoWToken

friend class BoWToken
friend

Definition at line 38 of file bowTokenPrivate.h.

◆ operator<< [1/4]

QDebug & operator<< ( QDebug & os,
const BoWToken & tok )
friend

Definition at line 423 of file bowToken.cpp.

◆ operator<< [2/4]

QDebug & operator<< ( QDebug & os,
const std::map< BoWToken *, uint64_t > & refMap )
friend

only for debug

◆ operator<< [3/4]

std::ostream & operator<< ( std::ostream & os,
const BoWToken & tok )
friend

Definition at line 416 of file bowToken.cpp.

◆ operator<< [4/4]

std::ostream & operator<< ( std::ostream & os,
const std::map< BoWToken *, uint64_t > & refMap )
friend

only for debug

Member Data Documentation

◆ m_category

LinguisticCode Lima::Common::BagOfWords::BoWTokenPrivate::m_category

Definition at line 67 of file bowTokenPrivate.h.

◆ m_compoundSeparator

LimaChar Lima::Common::BagOfWords::BoWTokenPrivate::m_compoundSeparator =DEFAULT_COMPOUND_SEPARATOR
static

Definition at line 73 of file bowTokenPrivate.h.

◆ m_inflectedForm

Lima::LimaString Lima::Common::BagOfWords::BoWTokenPrivate::m_inflectedForm

Definition at line 66 of file bowTokenPrivate.h.

◆ m_lemma

Lima::LimaString Lima::Common::BagOfWords::BoWTokenPrivate::m_lemma

Definition at line 65 of file bowTokenPrivate.h.

◆ m_length

uint64_t Lima::Common::BagOfWords::BoWTokenPrivate::m_length

Definition at line 69 of file bowTokenPrivate.h.

◆ m_position

uint64_t Lima::Common::BagOfWords::BoWTokenPrivate::m_position

Definition at line 68 of file bowTokenPrivate.h.

◆ m_separator

LimaChar Lima::Common::BagOfWords::BoWTokenPrivate::m_separator =DEFAULT_SEPARATOR
static

Definition at line 72 of file bowTokenPrivate.h.

◆ m_useOnlyLemma

bool Lima::Common::BagOfWords::BoWTokenPrivate::m_useOnlyLemma =true
static

Definition at line 75 of file bowTokenPrivate.h.

◆ m_vertex

uint64_t Lima::Common::BagOfWords::BoWTokenPrivate::m_vertex

Definition at line 70 of file bowTokenPrivate.h.


The documentation for this class was generated from the following files:
  • lima_linguisticprocessing/src/linguisticProcessing/common/BagOfWords/bowTokenPrivate.h
  • lima_linguisticprocessing/src/linguisticProcessing/common/BagOfWords/bowToken.cpp