/disk4/html/www/moses/doxygen/mosesdecoder/phrase-extract/lexical-reordering/score.cpp File Reference

#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include "util/exception.hh"
#include "util/file_piece.hh"
#include "util/string_piece.hh"
#include "util/tokenize_piece.hh"
#include "InputFileStream.h"
#include "reordering_classes.h"

Go to the source code of this file.

Classes

class  FileFormatException

Functions

void split_line (const StringPiece &line, StringPiece &foreign, StringPiece &english, StringPiece &wbe, StringPiece &phrase, StringPiece &hier, float &weight)
void get_orientations (const StringPiece &pair, StringPiece &previous, StringPiece &next)
int main (int argc, char *argv[])
template<class It >
StringPiece GrabOrDie (It &it, const StringPiece &line)


Function Documentation

void get_orientations ( const StringPiece pair,
StringPiece previous,
StringPiece next 
)

Definition at line 264 of file score.cpp.

References GrabOrDie().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class It >
StringPiece GrabOrDie ( It &  it,
const StringPiece line 
) [inline]

Definition at line 216 of file score.cpp.

References StringPiece::as_string(), and UTIL_THROW_IF.

Referenced by get_orientations(), and split_line().

Here is the call graph for this function:

Here is the caller graph for this function:

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

void split_line ( const StringPiece line,
StringPiece foreign,
StringPiece english,
StringPiece wbe,
StringPiece phrase,
StringPiece hier,
float &  weight 
)

Definition at line 223 of file score.cpp.

References StringPiece::as_string(), StringPiece::clear(), StringPiece::data(), GrabOrDie(), sapt::next(), and UTIL_THROW_IF.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


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