/disk4/html/www/moses/doxygen/mosesdecoder/moses/TranslationModel/UG/mm/symal2mam.cc File Reference

#include "ug_mm_ttrack.h"
#include "ug_deptree.h"
#include "tpt_tokenindex.h"
#include "tpt_pickler.h"
#include "moses/TranslationModel/UG/generic/program_options/ug_get_options.h"
#include "moses/TranslationModel/UG/generic/file_io/ug_stream.h"
#include <iostream>
#include <string>
#include <sstream>
#include <boost/program_options.hpp>
#include <boost/scoped_ptr.hpp>
#include "util/exception.hh"

Go to the source code of this file.

Functions

void interpret_args (int ac, char *av[])
template<typename track_t >
void copySentence (track_t const &T, size_t sid, ostream &dest)
size_t procSymalLine (string const &line, ostream &out)
void finiMAM (ofstream &out, vector< id_type > &idx, id_type numTok)
void finalize (ofstream &out, vector< id_type > const &idx, id_type tokenCount)
bool getCheckValues (istream &in, int &check1, int &check2)
void go ()
template<typename TKN >
void go (string t1name, string t2name, string A3filename)
void initialize (ofstream &out, string const &fname)
int main (int argc, char *argv[])

Variables

ofstream t1out
ofstream t2out
ofstream mam
int len1 = 0
int len2 = 0
size_t lineCtr = 0
size_t sid = 0
bool conll = false
bool skip = false
bool debug = false
TokenIndex V1
string mtt1name
string mtt2name
string o1name
string o2name
string mamname
string cfgFile
string dataFormat
string A3filename


Function Documentation

template<typename track_t >
void copySentence ( track_t const &  T,
size_t  sid,
ostream &  dest 
) [inline]

Definition at line 103 of file symal2mam.cc.

Referenced by go().

Here is the caller graph for this function:

void finalize ( ofstream &  out,
vector< id_type > const &  idx,
id_type  tokenCount 
)

Definition at line 143 of file symal2mam.cc.

References tpt::numwrite().

Referenced by go().

Here is the call graph for this function:

Here is the caller graph for this function:

void finiMAM ( ofstream &  out,
vector< id_type > &  idx,
id_type  numTok 
)

Definition at line 129 of file symal2mam.cc.

References tpt::numwrite().

Referenced by go().

Here is the call graph for this function:

Here is the caller graph for this function:

bool getCheckValues ( istream &  in,
int &  check1,
int &  check2 
)

Definition at line 156 of file symal2mam.cc.

References A3filename.

Referenced by go().

Here is the caller graph for this function:

template<typename TKN >
void go ( string  t1name,
string  t2name,
string  A3filename 
) [inline]

Definition at line 197 of file symal2mam.cc.

References copySentence(), debug, finalize(), finiMAM(), getCheckValues(), len1, len2, lineCtr, mam, ugdiss::open_input_stream(), procSymalLine(), sid, skip, T1, t1out, T2, t2out, and UTIL_THROW.

Here is the call graph for this function:

void go (  ) 

Definition at line 178 of file symal2mam.cc.

References debug, finiMAM(), mam, and procSymalLine().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void initialize ( ofstream &  out,
string const &  fname 
)

Definition at line 270 of file symal2mam.cc.

References tpt::numwrite().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void interpret_args ( int  ac,
char *  av[] 
)

Definition at line 47 of file symal2mam.cc.

References A3filename, bname, cfgFile, conll, dataFormat, debug, ugdiss::get_options(), L1, L2, mamfile, mamname, maxhits, mtt1name, mtt2name, o1name, o2name, Q1, Q2, range, skip, store(), and with_sids.

Referenced by init(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 278 of file symal2mam.cc.

References A3filename, conll, go(), initialize(), interpret_args(), mam, mamname, mtt1name, mtt2name, o1name, o2name, skip, t1out, and t2out.

Here is the call graph for this function:

size_t procSymalLine ( string const &  line,
ostream &  out 
)

Definition at line 111 of file symal2mam.cc.

References tpt::binwrite(), debug, len1, and len2.

Referenced by go().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

string A3filename

Definition at line 45 of file symal2mam.cc.

Referenced by getCheckValues(), interpret_args(), and main().

string cfgFile

Definition at line 44 of file symal2mam.cc.

bool conll = false

Definition at line 39 of file symal2mam.cc.

Referenced by interpret_args(), and main().

string dataFormat

Definition at line 45 of file symal2mam.cc.

Referenced by interpret_args().

bool debug = false

int len1 = 0

int len2 = 0

size_t lineCtr = 0

Definition at line 38 of file symal2mam.cc.

Referenced by go().

ofstream mam

Definition at line 36 of file symal2mam.cc.

Referenced by go(), and main().

string mamname

Definition at line 44 of file symal2mam.cc.

Referenced by interpret_args(), and main().

string mtt1name

Definition at line 44 of file symal2mam.cc.

Referenced by interpret_args(), and main().

string mtt2name

Definition at line 44 of file symal2mam.cc.

Referenced by interpret_args(), and main().

string o1name

Definition at line 44 of file symal2mam.cc.

Referenced by interpret_args(), and main().

string o2name

Definition at line 44 of file symal2mam.cc.

Referenced by interpret_args(), and main().

size_t sid = 0

bool skip = false

ofstream t1out

Definition at line 36 of file symal2mam.cc.

Referenced by go(), and main().

ofstream t2out

Definition at line 36 of file symal2mam.cc.

Referenced by go(), and main().

Definition at line 42 of file symal2mam.cc.


Generated on Thu Jul 6 00:31:34 2017 for Moses by  doxygen 1.5.9