#include "ug_mm_ttrack.h"
#include "ug_mm_tsa.h"
#include "tpt_tokenindex.h"
#include "ug_corpus_token.h"
#include <string>
#include <vector>
#include <cassert>
#include <boost/unordered_map.hpp>
#include <boost/foreach.hpp>
#include <iomanip>
#include "ug_typedefs.h"
#include "tpt_pickler.h"
#include "moses/TranslationModel/UG/generic/sorting/VectorIndexSorter.h"
#include "moses/TranslationModel/UG/generic/sampling/Sampling.h"
#include "moses/TranslationModel/UG/generic/file_io/ug_stream.h"
#include <algorithm>
#include "moses/TranslationModel/UG/generic/program_options/ug_get_options.h"
Go to the source code of this file.
Defines | |
#define | CACHING_THRESHOLD 1000 |
Typedefs | |
typedef sapt::L2R_Token < sapt::SimpleWordId > | Token |
typedef sapt::mmTSA< Token > ::tree_iterator | iter |
typedef boost::unordered_map < pair< size_t, size_t > , size_t > | phrase_counter_t |
Functions | |
void | interpret_args (int ac, char *av[]) |
int | main (int argc, char *argv[]) |
Variables | |
sapt::mmTtrack< Token > | T |
sapt::TokenIndex | V |
sapt::mmTSA< Token > | I |
string | bname |
bool | echo |
#define CACHING_THRESHOLD 1000 |
Definition at line 27 of file mtt.count.cc.
typedef sapt::mmTSA<Token>::tree_iterator iter |
Definition at line 24 of file mtt.count.cc.
typedef boost::unordered_map<pair<size_t,size_t>,size_t> phrase_counter_t |
Definition at line 25 of file mtt.count.cc.
typedef sapt::L2R_Token<sapt::SimpleWordId> Token |
Definition at line 23 of file mtt.count.cc.
void interpret_args | ( | int | ac, | |
char * | av[] | |||
) |
Definition at line 26 of file mam2symal.cc.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 36 of file mtt.count.cc.
References bname, echo, sapt::TokenIndex::fillIdSeq(), sapt::TokenIndex::iniReverseIndex(), interpret_args(), m, sapt::mmTSA< TOKEN >::open(), sapt::TokenIndex::open(), and sapt::mmTtrack< TKN >::open().
string bname |
Definition at line 34 of file mtt.count.cc.
bool echo |
Definition at line 35 of file mtt.count.cc.
Definition at line 31 of file mtt.count.cc.
Referenced by stringdist::StringDiff::align(), sapt::TSA_tree_iterator< TKN >::extend(), sapt::TSA< TKN >::find_end(), sapt::TSA< TKN >::find_longer(), sapt::TSA< TKN >::find_start(), getoccs(), sapt::TSA_tree_iterator< TKN >::getSequenceId(), sapt::TSA< TKN >::getSequenceId(), insertion_sort(), stringdist::levenshtein(), lookup_phrase(), main(), min_element(), nbest(), partition(), sapt::TSA_tree_iterator< TKN >::randomSample(), sapt::TSA< TKN >::setTokenBits(), sort(), sapt::TSA_tree_iterator< TKN >::tfAndRoot(), unique(), and writeUnknownWordLabel().
Definition at line 29 of file mtt.count.cc.
Definition at line 30 of file mtt.count.cc.