Logo Search packages:      
Sourcecode: apertium version File versions  Download package

Public Member Functions | Private Member Functions | Private Attributes

LexTorData Class Reference

#include <lextor_data.h>

List of all members.

Public Member Functions

double cosine (const wstring &reduced_lexch1, const wstring &reduced_lexch2)
void ensure_stopwords_ok ()
COUNT_DATA_TYPE get_lexchoice_sum (const wstring &lexical_choice)
set< wstring > get_lexical_choices (const wstring &word)
double get_module_lexchoice_vector (const wstring &lexical_choice)
COUNT_DATA_TYPE get_wordcount (const wstring &word)
set< wstring > get_words ()
bool is_stopword (const wstring &word)
 LexTorData (const LexTorData &ltd)
void read (FILE *is)
void read_lexical_choices (FSTProcessor &fstp)
void read_stopwords (wistream &is)
void read_words (wistream &is)
wstring reduce (const wstring &s)
wstring reduce_lexical_choice (const wstring &s)
void set_cooccurrence_context (const wstring &lexical_choice, const vector< pair< wstring, COUNT_DATA_TYPE > > &context)
void set_lexchoice_sum (const wstring &lexical_choice, COUNT_DATA_TYPE sum)
void set_nwords_per_set (int i)
void set_wordcount (const wstring &word, COUNT_DATA_TYPE c)
COUNT_DATA_TYPE vote_from_word (const wstring &lexical_choice, const wstring &word)
void write (FILE *os)

Private Member Functions

void new_word_register (const wstring &w)

Private Attributes

vector< wstring > index2word
map< WORD_DATA_TYPE, map
< WORD_DATA_TYPE,
COUNT_DATA_TYPE > > 
lexchoice_set
map< WORD_DATA_TYPE,
COUNT_DATA_TYPE > 
lexchoice_sum
map< wstring, set< wstring > > lexical_choices
WORD_DATA_TYPE n_set
WORD_DATA_TYPE n_stopwords
WORD_DATA_TYPE n_words
WORD_DATA_TYPE n_words_per_set
set< wstring > reduced_lexical_choices
set< wstring > stopwords
map< wstring, WORD_DATA_TYPE > word2index
map< WORD_DATA_TYPE,
COUNT_DATA_TYPE > 
wordcount
set< wstring > words

Detailed Description

Class LexTorData. (Lexical Selector Data class)

Definition at line 45 of file lextor_data.h.


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

Generated by  Doxygen 1.6.0   Back to index