#include <queue>
#include <iomanip>
#include <vector>
#include <iterator>
#include <sstream>
#include <algorithm>
#include <boost/program_options.hpp>
#include <boost/dynamic_bitset.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/foreach.hpp>
#include <boost/thread.hpp>
#include <boost/math/distributions/binomial.hpp>
#include <boost/unordered_map.hpp>
#include <boost/unordered_set.hpp>
#include "moses/TranslationModel/UG/generic/program_options/ug_get_options.h"
#include "ug_mm_2d_table.h"
#include "ug_mm_ttrack.h"
#include "ug_corpus_token.h"
Go to the source code of this file.
Typedefs | |
typedef mm2dTable< id_type, id_type, uint32_t, uint32_t > | LEX_t |
typedef SimpleWordId | Token |
Functions | |
void | interpret_args (int ac, char *av[]) |
void | lookup_source (ostream &out, id_type r) |
void | lookup_target (ostream &out, id_type c) |
void | dump (ostream &out) |
int | main (int argc, char *argv[]) |
Variables | |
string | swrd |
string | twrd |
string | L1 |
string | L2 |
string | bname |
TokenIndex | V1 |
TokenIndex | V2 |
LEX_t | LEX |
Definition at line 36 of file mmlex-lookup.cc.
typedef SimpleWordId Token |
Definition at line 37 of file mmlex-lookup.cc.
void dump | ( | ostream & | out | ) |
Definition at line 87 of file mmlex-lookup.cc.
References lookup_source(), and sapt::mm2dTable< OFFSET, ID, VAL, INIT >::numRows.
void interpret_args | ( | int | ac, | |
char * | av[] | |||
) |
Definition at line 26 of file mam2symal.cc.
void lookup_source | ( | ostream & | out, | |
id_type | r | |||
) |
Definition at line 48 of file mmlex-lookup.cc.
References sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m1(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m2(), sort(), and stop.
Referenced by dump(), and main().
void lookup_target | ( | ostream & | out, | |
id_type | c | |||
) |
Definition at line 62 of file mmlex-lookup.cc.
References sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m1(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m2(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::numRows, and sort().
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 96 of file mmlex-lookup.cc.
References bname, dump(), interpret_args(), L1, L2, lookup_source(), lookup_target(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m1(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m2(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open(), sapt::TokenIndex::open(), swrd, and twrd.
string bname |
Definition at line 42 of file mmlex-lookup.cc.
string L1 |
Definition at line 42 of file mmlex-lookup.cc.
string L2 |
Definition at line 42 of file mmlex-lookup.cc.
Definition at line 44 of file mmlex-lookup.cc.
string swrd |
string twrd |
Definition at line 43 of file mmlex-lookup.cc.
Definition at line 43 of file mmlex-lookup.cc.