Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

analysis Class Reference

Class analysis stores a possible reading (lemma, PoS, probability) for a word. More...

#include <language.h>

List of all members.

Public Member Functions

 analysis ()
 constructor
 analysis (const string &, const string &)
 constructor
void set_lemma (const string &)
 Set lemma for analysis.
void set_parole (const string &)
 Set parole PoS tag for analysis.
void set_prob (double)
 Set probability for analysis.
void set_retokenizable (const list< word > &)
 Set retokenization info for analysis.
bool has_prob (void) const
 Check whether probability has been set.
string get_lemma (void) const
 Get lemma value for analysis.
string get_parole (void) const
 Get parole PoS tag value for analysis.
string get_short_parole (const string &) const
 Get short version of parole PoS tag value for analysis.
double get_prob (void) const
 Get probability value for analysis (-1 if not set).
bool is_retokenizable (void) const
 Find out if the analysis may imply retokenization.
list< wordget_retokenizable (void) const
 Get retokenization info for analysis.
list< string > get_senses (void) const
 get analysis sense list
void set_senses (const list< string > &)
 set analiysis sense list

Private Attributes

string lemma
 lemma
string parole
 PoS tag.
double prob
 probability of that lemma-tag given the word
list< string > senses
 list of possible senses for that analysis
list< wordretok
 information to retokenize the word after tagging if this analysis is selected


Detailed Description

Class analysis stores a possible reading (lemma, PoS, probability) for a word.


Constructor & Destructor Documentation

analysis::analysis  ) 
 

constructor

analysis::analysis const string &  ,
const string & 
 

constructor


Member Function Documentation

string analysis::get_lemma void   )  const
 

Get lemma value for analysis.

string analysis::get_parole void   )  const
 

Get parole PoS tag value for analysis.

double analysis::get_prob void   )  const
 

Get probability value for analysis (-1 if not set).

list< word > analysis::get_retokenizable void   )  const
 

Get retokenization info for analysis.

list< string > analysis::get_senses void   )  const
 

get analysis sense list

string analysis::get_short_parole const string &   )  const
 

Get short version of parole PoS tag value for analysis.

bool analysis::has_prob void   )  const
 

Check whether probability has been set.

bool analysis::is_retokenizable void   )  const
 

Find out if the analysis may imply retokenization.

void analysis::set_lemma const string &   ) 
 

Set lemma for analysis.

void analysis::set_parole const string &   ) 
 

Set parole PoS tag for analysis.

void analysis::set_prob double   ) 
 

Set probability for analysis.

void analysis::set_retokenizable const list< word > &   ) 
 

Set retokenization info for analysis.

void analysis::set_senses const list< string > &   ) 
 

set analiysis sense list


Member Data Documentation

string analysis::lemma [private]
 

lemma

string analysis::parole [private]
 

PoS tag.

double analysis::prob [private]
 

probability of that lemma-tag given the word

list<word> analysis::retok [private]
 

information to retokenize the word after tagging if this analysis is selected

list<string> analysis::senses [private]
 

list of possible senses for that analysis


The documentation for this class was generated from the following files:
Generated on Wed Apr 26 12:57:32 2006 for FreeLing by  doxygen 1.4.4