#include "mmsapt.h"
#include "moses/TranslationModel/PhraseDictionaryTreeAdaptor.h"
#include "moses/TranslationModel/UG/generic/program_options/ug_splice_arglist.h"
#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <boost/tokenizer.hpp>
#include <boost/shared_ptr.hpp>
#include <algorithm>
#include <iostream>
#include <sstream>
Go to the source code of this file.
Typedefs | |
typedef L2R_Token< SimpleWordId > | Token |
typedef mmBitext< Token > | mmbitext |
typedef imBitext< Token > | imbitext |
typedef Bitext< Token >::iter | iter |
Functions | |
void | show (ostream &out, iter &f) |
void | dump (ostream &out, iter &f) |
void | read_data (string fname, vector< string > &dest) |
void | show_snt (ostream &out, TokenIndex const &V, vector< Token > const &snt, vector< vector< int > > const &a) |
void | show_pair (size_t const sid) |
int | main (int argc, char *argv[]) |
Variables | |
mmbitext | bg |
vector< string > | src |
vector< string > | trg |
vector< string > | aln |
Definition at line 19 of file spe-check-coverage3.cc.
Definition at line 18 of file spe-check-coverage3.cc.
typedef L2R_Token<SimpleWordId> Token |
Definition at line 17 of file spe-check-coverage3.cc.
void dump | ( | ostream & | out, | |
iter & | f | |||
) |
Definition at line 39 of file spe-check-coverage3.cc.
References sapt::TSA_tree_iterator< TKN >::approxOccurrenceCount(), sapt::TSA_tree_iterator< TKN >::down(), dump(), sapt::TSA_tree_iterator< TKN >::over(), show(), sapt::TSA_tree_iterator< TKN >::size(), and sapt::TSA_tree_iterator< TKN >::up().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 98 of file spe-check-coverage3.cc.
References aln, sapt::jstats::cnt2(), sapt::fill_token_seq(), sapt::PhrasePair< Token >::good1, sapt::PhrasePair< Token >::good2, sapt::Bitext< TKN >::I1, sapt::Bitext< TKN >::I2, sapt::PhrasePair< Token >::joint, k, sapt::PhrasePair< Token >::len1, sapt::PhrasePair< Token >::len2, sapt::Bitext< TKN >::lookup(), NULL, sapt::mmBitext< TKN >::open(), sapt::jstats::rcnt(), read_data(), seen, sid, src, sapt::PhrasePair< Token >::start1, sapt::PhrasePair< Token >::start2, sapt::toString(), trg, sapt::Bitext< TKN >::V1, and sapt::Bitext< TKN >::V2.
void read_data | ( | string | fname, | |
vector< string > & | dest | |||
) |
Definition at line 55 of file spe-check-coverage3.cc.
void show | ( | ostream & | out, | |
iter & | f | |||
) |
Definition at line 26 of file spe-check-coverage3.cc.
References sapt::TSA_tree_iterator< TKN >::approxOccurrenceCount(), sapt::TSA_tree_iterator< TKN >::getToken(), sapt::Bitext< TKN >::I2, sapt::TSA_tree_iterator< TKN >::size(), sapt::TSA_tree_iterator< TKN >::str(), and sapt::Bitext< TKN >::V1.
void show_pair | ( | size_t const | sid | ) |
Definition at line 78 of file spe-check-coverage3.cc.
References aln, sapt::fill_token_seq(), k, show_snt(), src, trg, sapt::Bitext< TKN >::V1, and sapt::Bitext< TKN >::V2.
void show_snt | ( | ostream & | out, | |
TokenIndex const & | V, | |||
vector< Token > const & | snt, | |||
vector< vector< int > > const & | a | |||
) |
Definition at line 64 of file spe-check-coverage3.cc.
References k.
Referenced by show_pair().
vector<string> aln |
Definition at line 23 of file spe-check-coverage3.cc.
Referenced by sapt::imBitext< TKN >::add(), batch_run(), IBM1::fill_amatrix(), main(), show_pair(), sapt::PhrasePair< Token >::update(), and writeTable().
Definition at line 22 of file spe-check-coverage3.cc.
vector<string> src |
Definition at line 23 of file spe-check-coverage3.cc.
Referenced by MosesTraining::Syntax::GHKM::AlignmentGraph::AlignmentGraph(), batch_run(), constructCepts(), main(), ngram::pushc(), MosesTraining::ReadAlignment(), Moses::VWTargetSentence::SetConstraints(), and show_pair().
vector<string> trg |
Definition at line 23 of file spe-check-coverage3.cc.
Referenced by batch_run(), main(), and show_pair().