Natural Language Processing  0.1.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Friends | List of all members
SyntaxWord Class Reference

The SyntaxWord class Container for a Word and a Syntax Identifier. More...

#include <syntaxword.h>

Public Member Functions

 SyntaxWord ()
 SyntaxWord::SyntaxWord Default Constructor.
 
 SyntaxWord (const SyntaxObject &so, const Word &word)
 SyntaxWord::SyntaxWord Constructor. More...
 
bool isHeadWord (const GrammarPhrase &gp) const
 SyntaxWord::isHeadWord Checks if the word is a head word of the given grammar phrase. More...
 
void setWord (const Word &W)
 SyntaxWord::setWord Sets the word. More...
 
Word getWord () const
 SyntaxWord::getWord Returns the word. More...
 
void setSyntax (SyntaxObject S)
 SyntaxWord::setSyntax Sets the Syntax. More...
 
SyntaxObject getSyntax () const
 SyntaxWord::getSyntax Returns the Syntax. More...
 
string getSyntaxEncoding () const
 similar to getSyntax, but return the mapped string to SyntaxObject
 
SyntaxWordoperator= (const SyntaxWord &other)
 SyntaxWord::operator =. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const SyntaxWord &S)
 

Detailed Description

The SyntaxWord class Container for a Word and a Syntax Identifier.

Constructor & Destructor Documentation

SyntaxWord::SyntaxWord ( const SyntaxObject so,
const Word word 
)

SyntaxWord::SyntaxWord Constructor.

Parameters
soSyntax Indentifier
wordthe Word

Member Function Documentation

SyntaxObject SyntaxWord::getSyntax ( ) const

SyntaxWord::getSyntax Returns the Syntax.

Returns
the Syntax
Word SyntaxWord::getWord ( ) const

SyntaxWord::getWord Returns the word.

Returns
the word
bool SyntaxWord::isHeadWord ( const GrammarPhrase gp) const

SyntaxWord::isHeadWord Checks if the word is a head word of the given grammar phrase.

Parameters
gpgrammar phrase
Returns
True if it is, False otherwise NOTE: Possibly not used anymore
SyntaxWord & SyntaxWord::operator= ( const SyntaxWord other)

SyntaxWord::operator =.

Parameters
other
Returns
self
void SyntaxWord::setSyntax ( SyntaxObject  S)

SyntaxWord::setSyntax Sets the Syntax.

Parameters
Sthe Syntax
void SyntaxWord::setWord ( const Word W)

SyntaxWord::setWord Sets the word.

Parameters
Wthe word

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