#include <boost/program_options.hpp>#include <boost/algorithm/string/predicate.hpp>#include <boost/format.hpp>#include "mm/ug_bitext.h"#include "mm/tpt_typedefs.h"#include "mm/ug_prime_sampling1.h"#include "mm/ug_bitext_sampler.h"#include "mm/ug_phrasepair.h"#include "mm/ug_lru_cache.h"#include "generic/sorting/VectorIndexSorter.h"#include "generic/sorting/NBestList.h"#include <string>#include <boost/unordered_map.hpp>#include "moses/thread_safe_container.h"#include "mm/ug_prep_phrases.h"Go to the source code of this file.
Typedefs | |
| typedef L2R_Token< SimpleWordId > | Token |
| typedef mmBitext< Token > | mmbitext |
| typedef Bitext< Token >::tsa | tsa |
| typedef Bitext< Token >::iter | iter |
| typedef imTtrack< Token > | imttrack |
| typedef imTSA< Token > | imtsa |
| typedef ThreadSafeContainer < uint64_t, sptr< pstats > > | permacache_t |
Functions | |
| void | interpret_args (int ac, char *av[]) |
| sptr< imttrack > | read_input (TokenIndex &V) |
| void | dump (iter &m, TokenIndex &V) |
| int | main (int argc, char *argv[]) |
Variables | |
| string | bname |
| string | bname1 |
| string | bname2 |
| string | ifile |
| string | L1 |
| string | L2 |
| string | Q1 |
| string | Q2 |
| size_t | maxhits |
| size_t | cache_size |
Definition at line 30 of file test-ranked-phrase-lookup.cc.
Definition at line 29 of file test-ranked-phrase-lookup.cc.
Definition at line 28 of file test-ranked-phrase-lookup.cc.
Definition at line 25 of file test-ranked-phrase-lookup.cc.
| typedef ThreadSafeContainer<uint64_t, sptr<pstats> > permacache_t |
Definition at line 59 of file test-ranked-phrase-lookup.cc.
| typedef L2R_Token<SimpleWordId> Token |
Definition at line 24 of file test-ranked-phrase-lookup.cc.
Definition at line 26 of file test-ranked-phrase-lookup.cc.
| void dump | ( | iter & | m, | |
| TokenIndex & | V | |||
| ) |
Definition at line 61 of file test-ranked-phrase-lookup.cc.
References sapt::TSA_tree_iterator< TKN >::down(), dump(), sapt::TSA_tree_iterator< TKN >::over(), and sapt::TSA_tree_iterator< TKN >::up().

| void interpret_args | ( | int | ac, | |
| char * | av[] | |||
| ) |
Definition at line 26 of file mam2symal.cc.
References A3filename, bname, cfgFile, conll, dataFormat, debug, ugdiss::get_options(), inv, L1, L2, mamfile, mamname, mct, mtt, mtt1name, mtt2name, o1name, o2name, range, sform, skip, store(), with_positions, and with_sids.

| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 75 of file test-ranked-phrase-lookup.cc.
References bname, sapt::expand(), Moses::VectorIndexSorter< VAL, COMP, IDX_T >::GetOrder(), sapt::Bitext< TKN >::I1, interpret_args(), k, L1, L2, m, NULL, sapt::mmBitext< TKN >::open(), read_input(), sapt::Bitext< TKN >::sid2did(), sorter, Moses::stats, stop, T, sapt::toString(), sapt::Bitext< TKN >::V1, and sapt::Bitext< TKN >::V2.

| sptr<imttrack> read_input | ( | TokenIndex & | V | ) |
Definition at line 38 of file test-ranked-phrase-lookup.cc.
References sapt::fill_token_seq(), and ifile.

| string bname |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
| string bname1 |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
| string bname2 |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
| size_t cache_size |
Definition at line 34 of file test-ranked-phrase-lookup.cc.
| string ifile |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
| string L1 |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
| string L2 |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
| size_t maxhits |
Definition at line 33 of file test-ranked-phrase-lookup.cc.
| string Q1 |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
| string Q2 |
Definition at line 32 of file test-ranked-phrase-lookup.cc.
1.5.9