/disk4/html/www/moses/doxygen/mosesdecoder/moses/TranslationModel/UG/try-align.cc File Reference

#include "mm/ug_bitext.h"
#include <boost/format.hpp>

Go to the source code of this file.

Classes

struct  SinglePhrase
struct  PPair
struct  PPair::stats_t
struct  SortByPositionInCorpus
struct  RowIndexSorter
struct  ColIndexSorter

Namespaces

namespace  stats

Defines

#define smooth   1

Typedefs

typedef L2R_Token< SimpleWordIdToken
typedef mmTtrack< Tokenttrack_t
typedef mmTSA< Tokentsa_t

Functions

float stats::pmi (size_t j, size_t m1, size_t m2, size_t N)
float stats::npmi (size_t j, size_t m1, size_t m2, size_t N)
float stats::mi (size_t j, size_t m1, size_t m2, size_t N)
void getoccs (tsa_t::tree_iterator const &m, vector< ttrack::Position > &occs)
void lookup_phrases (vector< id_type > const &snt, TokenIndex &V, ttrack_t const &T, tsa_t const &I, SinglePhrase::cache_t &cache, vector< vector< SPTR< SinglePhrase > > > &dest)
int main (int argc, char *argv[])

Variables

TokenIndex V1
TokenIndex V2
boost::shared_ptr< ttrack_tT1
boost::shared_ptr< ttrack_tT2
tsa_t I1
tsa_t I2
float lbop_level = .05
SinglePhrase::cache_t cache1
SinglePhrase::cache_t cache2
PPair::stats_t::cache_t ppcache


Define Documentation

#define smooth   1

Definition at line 17 of file try-align.cc.

Referenced by Moses::BleuScoreFeature::CalculateBleu().


Typedef Documentation

Definition at line 8 of file try-align.cc.

typedef mmTSA<Token> tsa_t

Definition at line 10 of file try-align.cc.

Definition at line 9 of file try-align.cc.


Function Documentation

void getoccs ( tsa_t::tree_iterator const &  m,
vector< ttrack::Position > &  occs 
)

Definition at line 157 of file try-align.cc.

References I, sort(), and stop.

Referenced by lookup_phrases().

Here is the call graph for this function:

Here is the caller graph for this function:

void lookup_phrases ( vector< id_type > const &  snt,
TokenIndex V,
ttrack_t const &  T,
tsa_t const &  I,
SinglePhrase::cache_t cache,
vector< vector< SPTR< SinglePhrase > > > &  dest 
)

Definition at line 172 of file try-align.cc.

References getoccs(), k, and m.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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


Variable Documentation

Definition at line 141 of file try-align.cc.

Referenced by main().

Definition at line 141 of file try-align.cc.

Referenced by main().

Definition at line 14 of file try-align.cc.

Definition at line 14 of file try-align.cc.

float lbop_level = .05

Definition at line 16 of file try-align.cc.

Referenced by stats::npmi(), and stats::pmi().

Definition at line 142 of file try-align.cc.

Referenced by main().

boost::shared_ptr<ttrack_t> T1

Definition at line 13 of file try-align.cc.

boost::shared_ptr<ttrack_t> T2

Definition at line 13 of file try-align.cc.

Definition at line 12 of file try-align.cc.

Definition at line 12 of file try-align.cc.


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