Class to process a sentence and generate the list of words and it's corresponding datas. More...
#include <converter.h>
Public Member Functions | |
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... | |
list< 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 | |
Class to process a sentence and generate the list of words and it's corresponding datas.
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 |
list< 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