corrector Class Reference

#include <corrector.h>

Collaboration diagram for corrector:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 corrector (const std::string &, dictionary &)
 Constructor.
 ~corrector ()
 Destructor.
void annotate (sentence &)
 Navigates the sentence adding alternative words (possible correct spelling data).

Private Member Functions

std::string getKey (std::string)
 returns the consonant key of a word
void putWords (std::string, word &)
 adds the new words that are posible correct spellings from original word to the word analysys data

Private Attributes

database similar_words
 indexed file with similar words
dictionarydict
 The dictionary that FreeLing is currently using.
phoneticsph
 The class that translates a word into phonetic sounds.
bool useSoundDict
 Whether phonetic conversions should use a sound dictionary.
phoneticDistancephd
 The class that calculate the phonetic distante between two phonetic transcriptions.
similaritysm
 the class that computes edit distance between two words
int distanceMethod
 The method to calculate the distance between words.
double SimThresholdKnown
 Minimum similariy to consider a word as a possible correction for a known word.
double SimThresholdUnknownLow
 Minimum similariy to consider a word as a possible correction for an unknown word, when no exact phonetic match is found.
double SimThresholdUnknownHigh
 Minimum similariy to consider a word as a possible correction for an unknown word, when some exact phonetic match is found.
int MaxSizeDiff
 Maximum lentgh difference to consider a word as a possible correction.
RegEx dictionaryCheck
 contains the tags for which the words that are present in the dictionary will be checked
bool noDictionaryCheck
 whether words not present in the dictionary are to be spell checked

Constructor & Destructor Documentation

corrector::corrector ( const std::string &  ,
dictionary  
)

Constructor.

corrector::~corrector (  ) 

Destructor.


Member Function Documentation

void corrector::annotate ( sentence &   ) 

Navigates the sentence adding alternative words (possible correct spelling data).

Referenced by maco::analyze().

std::string corrector::getKey ( std::string   )  [private]

returns the consonant key of a word

void corrector::putWords ( std::string  ,
word &   
) [private]

adds the new words that are posible correct spellings from original word to the word analysys data


Member Data Documentation

The dictionary that FreeLing is currently using.

RegEx corrector::dictionaryCheck [private]

contains the tags for which the words that are present in the dictionary will be checked

The method to calculate the distance between words.

int corrector::MaxSizeDiff [private]

Maximum lentgh difference to consider a word as a possible correction.

whether words not present in the dictionary are to be spell checked

The class that translates a word into phonetic sounds.

The class that calculate the phonetic distante between two phonetic transcriptions.

indexed file with similar words

double corrector::SimThresholdKnown [private]

Minimum similariy to consider a word as a possible correction for a known word.

Minimum similariy to consider a word as a possible correction for an unknown word, when some exact phonetic match is found.

Minimum similariy to consider a word as a possible correction for an unknown word, when no exact phonetic match is found.

the class that computes edit distance between two words

bool corrector::useSoundDict [private]

Whether phonetic conversions should use a sound dictionary.


The documentation for this class was generated from the following file:
Generated on Tue Jul 27 16:29:31 2010 for FreeLing by  doxygen 1.6.3