#include <ug_mm_ttrack.h>


Public Types | |
| typedef TKN | Token |
Public Member Functions | |
| mmTtrack (std::string fname) | |
| mmTtrack () | |
| Token const * | sntStart (size_t sid) const |
| Token const * | sntEnd (size_t sid) const |
| size_t | size () const |
| size_t | numTokens () const |
| void | open (std::string fname) |
| void | write_blank_file_header (std::ostream &out) const |
| void | write_index_and_finalize (std::ostream &out, std::vector< id_type > const &idx, count_type tokenCount) const |
| id_type | copySentences (std::ostream &trg, id_type start, id_type stop) const |
| id_type | findSid (TKN const *t) const |
| id_type | findSid (id_type tokenOffset) const |
| void | remap (std::string const fname, std::vector< id_type const * > const &f) const |
| re-assign ids based on the id maps in /f/ | |
Definition at line 32 of file ug_mm_ttrack.h.
| typedef TKN sapt::mmTtrack< TKN >::Token |
| sapt::mmTtrack< TKN >::mmTtrack | ( | std::string | fname | ) | [inline] |
Definition at line 160 of file ug_mm_ttrack.h.
References sapt::mmTtrack< TKN >::open().

| sapt::mmTtrack< TKN >::mmTtrack | ( | ) | [inline] |
| id_type sapt::mmTtrack< TKN >::copySentences | ( | std::ostream & | trg, | |
| id_type | start, | |||
| id_type | stop | |||
| ) | const [inline] |
Definition at line 242 of file ug_mm_ttrack.h.
References sapt::mmTtrack< TKN >::sntEnd(), and sapt::mmTtrack< TKN >::sntStart().

| id_type sapt::mmTtrack< TKN >::findSid | ( | id_type | tokenOffset | ) | const [inline] |
Definition at line 205 of file ug_mm_ttrack.h.
| id_type sapt::mmTtrack< TKN >::findSid | ( | TKN const * | t | ) | const [inline, virtual] |
find the sentence id of a given token
Implements sapt::Ttrack< TKN >.
Definition at line 194 of file ug_mm_ttrack.h.
| size_t sapt::mmTtrack< TKN >::numTokens | ( | ) | const [inline, virtual] |
Implements sapt::Ttrack< TKN >.
Definition at line 120 of file ug_mm_ttrack.h.
| void sapt::mmTtrack< TKN >::open | ( | std::string | fname | ) | [inline] |
Definition at line 168 of file ug_mm_ttrack.h.
References tpt::numread().
Referenced by main(), sapt::mmTtrack< TKN >::mmTtrack(), sapt::mmBitext< TKN >::open(), and sapt::imBitext< TKN >::open().


| void sapt::mmTtrack< TKN >::remap | ( | std::string const | fname, | |
| std::vector< id_type const * > const & | f | |||
| ) | const [inline] |
re-assign ids based on the id maps in /f/
Definition at line 91 of file ug_mm_ttrack.h.
References tpt::numread(), and Moses::prime().

| size_t sapt::mmTtrack< TKN >::size | ( | ) | const [inline, virtual] |
Implements sapt::Ttrack< TKN >.
Definition at line 112 of file ug_mm_ttrack.h.
Referenced by main(), and Counter::operator()().

| TKN const * sapt::mmTtrack< TKN >::sntEnd | ( | size_t | sid | ) | const [inline, virtual] |
Implements sapt::Ttrack< TKN >.
Definition at line 143 of file ug_mm_ttrack.h.
Referenced by check_range(), sapt::mmTtrack< TKN >::copySentences(), main(), printRangeMAM(), printRangeMCT(), printRangeMTT(), and Counter::processSentence().

| TKN const * sapt::mmTtrack< TKN >::sntStart | ( | size_t | sid | ) | const [inline, virtual] |
Implements sapt::Ttrack< TKN >.
Definition at line 128 of file ug_mm_ttrack.h.
Referenced by check_range(), sapt::mmTtrack< TKN >::copySentences(), main(), printRangeMAM(), printRangeMCT(), printRangeMTT(), and Counter::processSentence().

| void sapt::mmTtrack< TKN >::write_blank_file_header | ( | std::ostream & | out | ) | const [inline] |
Definition at line 215 of file ug_mm_ttrack.h.
References tpt::numwrite().

| void sapt::mmTtrack< TKN >::write_index_and_finalize | ( | std::ostream & | out, | |
| std::vector< id_type > const & | idx, | |||
| count_type | tokenCount | |||
| ) | const [inline] |
Definition at line 225 of file ug_mm_ttrack.h.
References tpt::numwrite().

1.5.9