#include <SentenceTuple.H>
Public Member Functions | |
| SentenceTuple () | |
| SentenceTuple (const DIMTYPE &dim) | |
| Constructor. | |
| SentenceTuple (const Vector< ObservationSequence< Terminal > > in) | |
| virtual | ~SentenceTuple () |
| Destructor. | |
| void | setSentenceTuple (const Vector< ObservationSequence< Terminal > > in) |
| sets the sentence tuple | |
| vector< short > & | lengths () const |
| vector of lengths | |
| DIMTYPE | dimity () const |
| Returns dimity. | |
| void | setDimity (const DIMTYPE &d) |
| void | clear () |
| Clears the sentence tuple while preserving the dimensionality. | |
| bool | empty () const |
| Checks whether the sentence tuple is empty. | |
| SentenceTuple & | operator= (const SentenceTuple &snt) |
| assignment. | |
| SentenceTuple & | operator+= (const SentenceTuple &snt) |
| concat. | |
| istream & | get (istream &in) |
| input operator | |
| void | dump (ostream &out, vector< StringVocabulary * > vcb=vector< StringVocabulary * >()) const |
| ostream & | put (ostream &out, vector< StringVocabulary * > vcb=vector< StringVocabulary * >()) const |
| SentenceTuple & | rotate () |
| Sentence 1D -> 2D -> ... -> 1D. | |
| virtual void | moveToFront (DIMTYPE d) |
| vector< hash_map< Terminal, size_t > > | countTerminals () const |
| Counts of the terminals. | |
| void | generateTLinks (vector< TLink > &lexLinks, vector< DSV > &spans) const |
Private Types | |
| typedef Vector< ObservationSequence< Terminal > > | _base |
Friends | |
| istream & | operator>> (istream &in, SentenceTuple &sntT) |
| Input a sentence tuple from the in stream. | |
| ostream & | operator<< (ostream &out, const SentenceTuple &sntT) |
| Output. | |
|
|
|
|
|
Empty constructor. Constructors an empty sentence tuple consisting of no components. |
|
|
Constructor.
|
|
|
|
|
|
Destructor.
|
|
|
Clears the sentence tuple while preserving the dimensionality.
|
Here is the call graph for this function:

|
|
Counts of the terminals.
|
Here is the call graph for this function:

|
|
Returns dimity.
|
|
||||||||||||
|
|
Here is the call graph for this function:

|
|
Checks whether the sentence tuple is empty. Returns true if (i) the count field is 0, or (ii) dimensionality is 0, or (iii) all sentence lengths are 0 (EOSH is counted into the sentence length). |
Here is the call graph for this function:

|
||||||||||||
|
Generates all the lex links (with their DSV) based on a SentenceTuple. The results are used for the generation of Scans. Please note that a D-dim NULLT is also generated. |
Here is the call graph for this function:

|
|
input operator
|
Here is the call graph for this function:

|
|
vector of lengths
|
Here is the call graph for this function:

|
|
Move the d^th (0-indexed) component to be the 0^th. the indexes to other components are changed accordingly. For instance, [(a), (b), (c)] --> moveToFront(1)->[(b), (a), (c)] |
Here is the call graph for this function:

|
|
concat.
|
|
|
assignment.
|
|
||||||||||||
|
|
Here is the call graph for this function:

|
|
Sentence 1D -> 2D -> ... -> 1D.
|
Here is the call graph for this function:

|
|
Sets the dimity (number of sentences will be contained in this tuple). |
|
|
sets the sentence tuple
|
|
||||||||||||
|
Output.
|
|
||||||||||||
|
Input a sentence tuple from the in stream.
|
1.4.1