My Project
 All Classes Namespaces Functions Pages
Public Member Functions | List of all members
NLP::Converter Class Reference

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< WordgetWords ()
 Function to finalize the list of words to be returned, along with its corresponding roles. More...
 
 ~Converter ()
 no dynamic thing to destroy for now
 

Detailed Description

Class to process a sentence and generate the list of words and it's corresponding datas.

Constructor & Destructor Documentation

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.

Parameters
sentence

Member Function Documentation

list< Word > NLP::Converter::getWords ( )

Function to finalize the list of words to be returned, along with its corresponding roles.

Returns
list<Word>

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


The documentation for this class was generated from the following file: