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

This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple tokens or complex tokens such as terms or named entities. More...

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

Inheritance diagram for Lima::Common::BagOfWords::BoWText:
Lima::Common::BagOfWords::BoWDocument Lima::Common::BagOfWords::BoWDocumentST

Public Member Functions

 BoWText ()
 
 BoWText (const BoWText &)
 
BoWText & operator= (const BoWText &)
 
virtual ~BoWText ()
 
virtual void clear ()
 
void writeBoWText (std::ostream &stream)
 

Public Attributes

std::string lang
 

Friends

LIMA_BOW_EXPORT std::ostream & operator<< (std::ostream &, const BoWText &)
 
LIMA_BOW_EXPORT QDebug & operator<< (QDebug &, const BoWText &)
 

Detailed Description

This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple tokens or complex tokens such as terms or named entities.

Complex tokens have a list of components that can be references to other tokens in the list or to tokens specific to themselves.

Attention
: the references in the component list of the complex tokens cannot be forward references: they can only be references to token present in the list before the complex token (forward references will cause problems in read/write functions)

Definition at line 47 of file bowText.h.

Constructor & Destructor Documentation

◆ BoWText() [1/2]

Lima::Common::BagOfWords::BoWText::BoWText ( )

Definition at line 32 of file bowText.cpp.

◆ BoWText() [2/2]

Lima::Common::BagOfWords::BoWText::BoWText ( const BoWText &  t)

Definition at line 42 of file bowText.cpp.

◆ ~BoWText()

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

Definition at line 74 of file bowText.cpp.

Member Function Documentation

◆ clear()

void Lima::Common::BagOfWords::BoWText::clear ( )
virtual

Reimplemented in Lima::Common::BagOfWords::BoWDocument.

Definition at line 85 of file bowText.cpp.

◆ operator=()

BoWText & Lima::Common::BagOfWords::BoWText::operator= ( const BoWText &  t)

Definition at line 52 of file bowText.cpp.

◆ writeBoWText()

void Lima::Common::BagOfWords::BoWText::writeBoWText ( std::ostream &  stream)

Definition at line 78 of file bowText.cpp.

Friends And Related Symbol Documentation

◆ operator<< [1/2]

LIMA_BOW_EXPORT QDebug & operator<< ( QDebug &  os,
const BoWText &  text 
)
friend

Definition at line 110 of file bowText.cpp.

◆ operator<< [2/2]

LIMA_BOW_EXPORT std::ostream & operator<< ( std::ostream &  os,
const BoWText &  text 
)
friend

Definition at line 103 of file bowText.cpp.

Member Data Documentation

◆ lang

std::string Lima::Common::BagOfWords::BoWText::lang

Definition at line 61 of file bowText.h.


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