Frog
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
mwuAna Class Reference

#include <mwu_chunker_mod.h>

Collaboration diagram for mwuAna:
Collaboration graph
[legend]

Public Member Functions

 mwuAna (const std::string &, bool, size_t)
 
virtual ~mwuAna ()
 
void merge (const mwuAna *)
 
std::string getWord () const
 
bool isSpec ()
 

Public Attributes

size_t mwu_start
 
size_t mwu_end
 

Protected Member Functions

 mwuAna ()
 

Protected Attributes

std::string word
 
bool spec
 

Friends

std::ostream & operator<< (std::ostream &, const mwuAna &)
 

Constructor & Destructor Documentation

◆ mwuAna() [1/2]

mwuAna::mwuAna ( const std::string &  wrd,
bool  glue_tag,
size_t  index 
)

create a mwu Analysis record

Parameters
wrdThe text of the word
glue_tagwas a 'glue' tag detected?
indexThe (initial) position in the sentence

◆ ~mwuAna()

virtual mwuAna::~mwuAna ( )
inlinevirtual

◆ mwuAna() [2/2]

mwuAna::mwuAna ( )
inlineprotected

Member Function Documentation

◆ getWord()

std::string mwuAna::getWord ( ) const
inline

◆ isSpec()

bool mwuAna::isSpec ( )
inline

◆ merge()

void mwuAna::merge ( const mwuAna add)

merge two mwuAna records

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const mwuAna  
)
friend

Member Data Documentation

◆ mwu_end

size_t mwuAna::mwu_end

◆ mwu_start

size_t mwuAna::mwu_start

◆ spec

bool mwuAna::spec
protected

◆ word

std::string mwuAna::word
protected

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