Tanl Linguistic Pipeline |
Public Member Functions | |
Sentence (Language const *language=0) | |
Sentence (Sentence const &other) | |
bool | operator== (const Sentence &other) |
bool | operator!= (const Sentence &other) |
void | reverse () |
Reverse the sequence of tokens and update links accordingly. | |
std::ostream & | print (std::ostream &os, Corpus const &corpus) |
TreeToken * | parent (TreeToken *tok) |
TreeToken * | root (TreeToken *tok) |
TreeToken * | child (TreeToken *tok, char dir, char POS) |
TreeToken * | child (TreeToken *tok, int nth) |
Child relative position: -1 closest left -i i-th closest left INT_MIN farthest left +1 closest right +i i-th closest right INT_MAX farthest right. | |
TreeToken * | leftChild (TreeToken *tok) |
TreeToken * | rightChild (TreeToken *tok) |
Public Attributes | |
Language const * | language |
void Tanl::Sentence::reverse | ( | ) | [inline] |
Reverse the sequence of tokens and update links accordingly.
Referenced by Parser::State::State().