Natural Language Processing
0.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
Grammatica
Syntax-Tree
syntaxword.h
1
#ifndef SYNTAXWORD_H
2
#define SYNTAXWORD_H
3
//#include "../../../CONFIG/config.h"
4
#include "../../Parser/Tagger/word.h"
5
6
using namespace
NLP;
10
class
SyntaxWord
{
11
private
:
15
SyntaxObject
_so;
19
Word
_word;
20
public
:
21
SyntaxWord
();
22
23
SyntaxWord
(
const
SyntaxObject
& so,
const
Word
& word);
24
bool
isHeadWord(
const
GrammarPhrase
& gp)
const
;
25
void
setWord(
const
Word
& W);
26
Word
getWord()
const
;
27
void
setSyntax(
SyntaxObject
S);
28
SyntaxObject
getSyntax()
const
;
29
string
getSyntaxEncoding()
const
;
30
friend
std::ostream& operator <<(std::ostream& out,
const
SyntaxWord
& S){
31
out << S._word <<
" = "
<< syntaxLookUp[S._so];
32
return
out;
33
}
34
35
SyntaxWord
& operator = (
const
SyntaxWord
& other);
36
};
37
#endif // SYNTAXWORD_H
NLP::SyntaxObject
SyntaxObject
Definition:
config.h:167
NLP::Word
Definition:
word.h:21
SyntaxWord
The SyntaxWord class Container for a Word and a Syntax Identifier.
Definition:
syntaxword.h:10
NLP::GrammarPhrase
GrammarPhrase
The GrammarPhrase enum Denotes the Grammar Phrase.
Definition:
config.h:99
Generated on Mon May 4 2015 00:35:20 for Natural Language Processing by
1.8.6