#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) |
void get_orientations | ( | const StringPiece & | pair, | |
StringPiece & | previous, | |||
StringPiece & | next | |||
) |
Definition at line 264 of file score.cpp.
References GrabOrDie().
Referenced by main().
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().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 39 of file score.cpp.
References StringPiece::as_string(), StringPiece::compare(), Model::createModel(), ModelScore::createModelScore(), get_orientations(), m, sapt::next(), util::FilePiece::ReadLine(), and split_line().
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().