/disk4/html/www/moses/doxygen/mosesdecoder/misc/1-1-Extraction.cpp File Reference

#include <fstream>
#include <iostream>
#include <vector>
#include <sstream>
#include <map>
#include <set>
#include <cstdlib>

Go to the source code of this file.

Functions

int stringToInteger (string s)
void loadInput (const char *fileName, vector< string > &input)
void getWords (string s, vector< string > &currInput)
void getMeCepts (set< int > &eSide, set< int > &fSide, map< int, vector< int > > &tS, map< int, vector< int > > &sT)
void constructCepts (vector< pair< set< int >, set< int > > > &ceptsInPhrase, set< int > &sourceNullWords, set< int > &targetNullWords, vector< string > &alignment, int eSize, int fSize)
void getOneToOne (vector< pair< set< int >, set< int > > > &ceptsInPhrase, vector< string > &currF, vector< string > &currE, set< string > &one)
void printOneToOne (set< string > &one)
int main (int argc, char *argv[])


Function Documentation

void constructCepts ( vector< pair< set< int >, set< int > > > &  ceptsInPhrase,
set< int > &  sourceNullWords,
set< int > &  targetNullWords,
vector< string > &  alignment,
int  eSize,
int  fSize 
)

Definition at line 87 of file 1-1-Extraction.cpp.

References getMeCepts(), src, and stringToInteger().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void getMeCepts ( set< int > &  eSide,
set< int > &  fSide,
map< int, vector< int > > &  tS,
map< int, vector< int > > &  sT 
)

Definition at line 55 of file 1-1-Extraction.cpp.

Referenced by constructCepts(), and getMeCepts().

Here is the caller graph for this function:

void getOneToOne ( vector< pair< set< int >, set< int > > > &  ceptsInPhrase,
vector< string > &  currF,
vector< string > &  currE,
set< string > &  one 
)

Definition at line 166 of file 1-1-Extraction.cpp.

Referenced by main().

Here is the caller graph for this function:

void getWords ( string  s,
vector< string > &  currInput 
)

Definition at line 41 of file 1-1-Extraction.cpp.

Referenced by main().

Here is the caller graph for this function:

void loadInput ( const char *  fileName,
vector< string > &  input 
)

Definition at line 22 of file 1-1-Extraction.cpp.

Referenced by main().

Here is the caller graph for this function:

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

Definition at line 190 of file 1-1-Extraction.cpp.

References constructCepts(), getOneToOne(), getWords(), loadInput(), and printOneToOne().

Here is the call graph for this function:

void printOneToOne ( set< string > &  one  ) 

Definition at line 181 of file 1-1-Extraction.cpp.

Referenced by main().

Here is the caller graph for this function:

int stringToInteger ( string  s  ) 

Definition at line 13 of file 1-1-Extraction.cpp.

Referenced by constructCepts().

Here is the caller graph for this function:


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