|
Natural Language Processing
0.1.0
|
Class to process a sentence and generate the list of words and it's corresponding datas. More...
#include <converter.h>
Public Member Functions | |
| Converter () | |
| Converter::Converter Default constructor that takes no string,. More... | |
| Converter (const string &sentence) | |
| Constructor first setup the list of tokens from a sentence Then, connect Dictionary database to a private QSqlDatabase variable This database will be used by any query created in this class. More... | |
| void | setString (const string &newstr) |
| Converter::setString set string to reconvert. More... | |
| vector< Word > | getWords () |
| Function to finalize the list of words to be returned, along with its corresponding roles. More... | |
| ~Converter () | |
| no dynamic thing to destroy for now | |
Static Public Attributes | |
| static QSqlDatabase | mDb = QSqlDatabase::addDatabase("QSQLITE", "ENG_DICT") |
Class to process a sentence and generate the list of words and it's corresponding datas.
| NLP::Converter::Converter | ( | ) |
Converter::Converter Default constructor that takes no string,.
| NLP::Converter::Converter | ( | const string & | sentence | ) |
Constructor first setup the list of tokens from a sentence Then, connect Dictionary database to a private QSqlDatabase variable This database will be used by any query created in this class.
| sentence |
| vector< Word > NLP::Converter::getWords | ( | ) |
Function to finalize the list of words to be returned, along with its corresponding roles.
Check if its an alphabet
Get the string
Capitalize needed for dictionary lookup
Extract the possible types into sets
Add to the list of words
| void NLP::Converter::setString | ( | const string & | newstr | ) |
Converter::setString set string to reconvert.
| newstr |
1.8.6