|
Natural Language Processing
0.1.0
|
The Parser class The Parser class. It takes a Grammar Structure and a vector of Words to create a vector of all possible Syntax Trees that follow the Grammar Structure and matches the vector of Words. More...
#include <parser.h>
Public Member Functions | |
| Parser () | |
| Parser::Parser Default Constructor. | |
| Parser (const Grammar &G, const Wvector &words) | |
| Parser::Parser Constructor. More... | |
| void | setGrammar (const Grammar &G) |
| Parser::setGrammar Set the Grammar. More... | |
| void | setSentence (const Wvector &W) |
| Parser::setSentence Set the sentence. More... | |
| Grammar | getGrammar () |
| Parser::getGrammar Returns the grammar. More... | |
| Wvector | getSentence () |
| Parser::getSentence Returns the sentence. More... | |
| STvector | getTrees () |
| Parser::getTrees Returns the valid syntax trees. More... | |
| STvector | parse () |
| Parser::parse Parses the sentence and creates the trees. More... | |
| std::vector< SyntaxWord > | getAll (const SyntaxTree &S) |
| Parser::getAll returns a vector of all syntax words. More... | |
| std::vector< SyntaxWord > | getObj (const SyntaxTree &S, SyntaxObject O) |
| Parser::getObj returns a vector of the syntax. More... | |
The Parser class The Parser class. It takes a Grammar Structure and a vector of Words to create a vector of all possible Syntax Trees that follow the Grammar Structure and matches the vector of Words.
| Parser::Parser | ( | const Grammar & | G, |
| const Wvector & | words | ||
| ) |
Parser::Parser Constructor.
| G | Grammar |
| words | Words |
| std::vector< SyntaxWord > Parser::getAll | ( | const SyntaxTree & | S | ) |
| Grammar Parser::getGrammar | ( | ) |
Parser::getGrammar Returns the grammar.
| std::vector< SyntaxWord > Parser::getObj | ( | const SyntaxTree & | S, |
| SyntaxObject | O | ||
| ) |
Parser::getObj returns a vector of the syntax.
| S | the syntax tree |
| O | the syntax object |
| Wvector Parser::getSentence | ( | ) |
Parser::getSentence Returns the sentence.
| STvector Parser::getTrees | ( | ) |
Parser::getTrees Returns the valid syntax trees.
| STvector Parser::parse | ( | ) |
Parser::parse Parses the sentence and creates the trees.
| void Parser::setGrammar | ( | const Grammar & | G | ) |
Parser::setGrammar Set the Grammar.
| G | Grammar |
| void Parser::setSentence | ( | const Wvector & | W | ) |
Parser::setSentence Set the sentence.
| W | the sentence |
1.8.6