|
FreeLing
3.0
|
#include <corrector.h>


Public Member Functions | |
| corrector (const std::wstring &, dictionary &) | |
| Constructor. | |
| ~corrector () | |
| Destructor. | |
| void | analyze (sentence &) |
| spell check each word in sentence | |
| void | analyze (std::list< sentence > &) |
| spell check each word in sentences | |
| sentence | analyze (const sentence &) |
| spell check each word in sentence, return copy | |
| std::list< sentence > | analyze (const std::list< sentence > &) |
| spell check each word in sentences, return copy | |
Private Member Functions | |
| std::wstring | getKey (std::wstring) |
| returns the consonant key of a word | |
| void | putWords (std::wstring, word &) |
| adds the new words that are posible correct spellings from original word to the word analysys data | |
| int | getPhoneticDistance (aligner< int > *, const std::wstring &, const std::wstring &) |
| compute distance between words | |
Private Attributes | |
| database * | similar_words |
| file with similar words | |
| dictionary * | dict |
| The dictionary that FreeLing is currently using. | |
| phonetics * | ph |
| The class that translates a word into phonetic sounds. | |
| aligner< int > * | phd |
| The class that calculate the phonetic distante between two phonetic transcriptions. | |
| similarity * | sm |
| 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. | |
| boost::u32regex | 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 | |
| corrector::corrector | ( | const std::wstring & | , |
| dictionary & | |||
| ) |
Constructor.
Destructor.
| void corrector::analyze | ( | sentence & | ) | [virtual] |
| void corrector::analyze | ( | std::list< sentence > & | ) |
spell check each word in sentences
Reimplemented from processor.
| sentence corrector::analyze | ( | const sentence & | ) |
spell check each word in sentence, return copy
Reimplemented from processor.
| std::list<sentence> corrector::analyze | ( | const std::list< sentence > & | ) |
spell check each word in sentences, return copy
Reimplemented from processor.
| std::wstring corrector::getKey | ( | std::wstring | ) | [private] |
returns the consonant key of a word
| int corrector::getPhoneticDistance | ( | aligner< int > * | , |
| const std::wstring & | , | ||
| const std::wstring & | |||
| ) | [private] |
compute distance between words
| void corrector::putWords | ( | std::wstring | , |
| word & | |||
| ) | [private] |
adds the new words that are posible correct spellings from original word to the word analysys data
dictionary* corrector::dict [private] |
The dictionary that FreeLing is currently using.
boost::u32regex corrector::dictionaryCheck [private] |
contains the tags for which the words that are present in the dictionary will be checked
int corrector::distanceMethod [private] |
The method to calculate the distance between words.
int corrector::MaxSizeDiff [private] |
Maximum lentgh difference to consider a word as a possible correction.
bool corrector::noDictionaryCheck [private] |
whether words not present in the dictionary are to be spell checked
phonetics* corrector::ph [private] |
The class that translates a word into phonetic sounds.
aligner<int>* corrector::phd [private] |
The class that calculate the phonetic distante between two phonetic transcriptions.
database* corrector::similar_words [private] |
file with similar words
double corrector::SimThresholdKnown [private] |
Minimum similariy to consider a word as a possible correction for a known word.
double corrector::SimThresholdUnknownHigh [private] |
Minimum similariy to consider a word as a possible correction for an unknown word, when some exact phonetic match is found.
double corrector::SimThresholdUnknownLow [private] |
Minimum similariy to consider a word as a possible correction for an unknown word, when no exact phonetic match is found.
similarity* corrector::sm [private] |
the class that computes edit distance between two words
1.7.6.1