|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Corrects tokens using an aspell dictionary.
More...
#include <TokenCorrect.hpp>
Construction and Destruction | |
| TokenCorrect (const std::string &language) | |
| Constructor setting options for the token correction. More... | |
| virtual | ~TokenCorrect ()=default |
| Default destructor. More... | |
Token correction | |
| void | correct (std::string &token) |
Corrects a token, if aspell offers at least one correction proposal. More... | |
Copy and Move | |
| TokenCorrect (TokenCorrect &)=delete | |
| Deleted copy constructor. More... | |
| TokenCorrect (TokenCorrect &&)=default | |
| Default move constructor. More... | |
| TokenCorrect & | operator= (TokenCorrect &)=delete |
| Deleted copy assignment operator. More... | |
| TokenCorrect & | operator= (TokenCorrect &&)=default |
| Default move assignment operator. More... | |
Corrects tokens using an aspell dictionary.
|
inlineexplicit |
Constructor setting options for the token correction.
| language | The language (i.e. aspell dictionary) to be used for token correction. |
References crawlservpp::Wrapper::AspellChecker::create(), and crawlservpp::Wrapper::AspellConfig::setOption().
|
virtualdefault |
Default destructor.
|
delete |
Deleted copy constructor.
|
default |
Default move constructor.
|
inline |
Corrects a token, if aspell offers at least one correction proposal.
| token | Reference to a string containing the token to be corrected, if necessary. |
References crawlservpp::Wrapper::AspellChecker::check().
|
delete |
Deleted copy assignment operator.
|
default |
Default move assignment operator.