/disk4/html/www/moses/doxygen/mosesdecoder/phrase-extract/consolidate-reverse-main.cpp File Reference

#include <cstdio>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include "tables-core.h"
#include "InputFileStream.h"
#include "util/tokenize.hh"

Go to the source code of this file.

Functions

void processFiles (char *, char *, char *)
bool getLine (istream &fileP, vector< string > &item)
string reverseAlignment (const string &alignments)
vector< string > splitLine (const char *lin)
void Tokenize (std::vector< std::string > &output, const std::string &str, const std::string &delimiters=" \t")
int main (int argc, char *argv[])

Variables

bool hierarchicalFlag = false
bool onlyDirectFlag = false
bool phraseCountFlag = true
bool logProbFlag = false


Function Documentation

bool getLine ( istream &  fileP,
vector< string > &  item 
)

Definition at line 54 of file consolidate-direct-main.cpp.

References splitLine().

Referenced by main(), and processFiles().

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 64 of file consolidate-reverse-main.cpp.

References hierarchicalFlag, logProbFlag, onlyDirectFlag, phraseCountFlag, and processFiles().

Here is the call graph for this function:

void processFiles ( char *  fileNameDirect,
char *  fileNameIndirect,
char *  fileNameConsolidated 
)

Definition at line 99 of file consolidate-reverse-main.cpp.

References Moses::InputFileStream::Close(), getLine(), logProbFlag, onlyDirectFlag, phraseCountFlag, reverseAlignment(), and util::tokenize().

Here is the call graph for this function:

string reverseAlignment ( const string &  alignments  ) 

Definition at line 222 of file consolidate-reverse-main.cpp.

References Moses::Tokenize(), and util::tokenize().

Referenced by processFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

vector< string > splitLine ( const char *  lin  ) 

Definition at line 32 of file consolidate-direct-main.cpp.

Referenced by getLine().

Here is the caller graph for this function:

void Tokenize ( std::vector< std::string > &  output,
const std::string &  str,
const std::string &  delimiters = " \t" 
) [inline]

Definition at line 45 of file consolidate-reverse-main.cpp.


Variable Documentation

bool hierarchicalFlag = false

bool logProbFlag = false

Definition at line 38 of file consolidate-reverse-main.cpp.

bool onlyDirectFlag = false

Definition at line 36 of file consolidate-reverse-main.cpp.

bool phraseCountFlag = true

Definition at line 37 of file consolidate-reverse-main.cpp.


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