Cambridge SMT System
samplehyps.main.cpp File Reference
Include dependency graph for samplehyps.main.cpp:

Go to the source code of this file.

Classes

struct  HypW< Arc >
 Same as Hyp but the printing will convert integer ids to words. More...
 
class  Sample
 
struct  LabeledFeature< Value, Weight >
 

Functions

template<class Arc >
std::ostream & operator<< (std::ostream &os, const Hyp< Arc > &obj)
 
bool SampleSortPredicate (const Sample &s1, const Sample &s2)
 
template<class HypT >
ucam::fsttools::Bleu LBleuScorer (ucam::fsttools::BleuScorer &bleuScorer, unsigned const &sid, HypT const &hyp)
 
template<class Weight , class HypT >
vector< LabeledFeature< float, Weight > > ProSBLEUSample (ucam::fsttools::BleuScorer &bleuScorer, std::vector< HypT > const &hyps, unsigned const &sid, unsigned const &n, unsigned const &ns, double const &alpha, bool negatives=false, bool negate=true)
 
template<class Arc , class HypT >
int SampleWFSAs (ucam::util::RegistryPO const &rg)
 
int main (int argc, const char *argv[])
 

Function Documentation

template<class HypT >
ucam::fsttools::Bleu LBleuScorer ( ucam::fsttools::BleuScorer bleuScorer,
unsigned const &  sid,
HypT const &  hyp 
)

Definition at line 48 of file samplehyps.main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 185 of file samplehyps.main.cpp.

Here is the call graph for this function:

template<class Arc >
std::ostream& operator<< ( std::ostream &  os,
const Hyp< Arc > &  obj 
)

Definition at line 19 of file samplehyps.main.cpp.

template<class Weight , class HypT >
vector< LabeledFeature<float, Weight> > ProSBLEUSample ( ucam::fsttools::BleuScorer bleuScorer,
std::vector< HypT > const &  hyps,
unsigned const &  sid,
unsigned const &  n,
unsigned const &  ns,
double const &  alpha,
bool  negatives = false,
bool  negate = true 
)

Definition at line 64 of file samplehyps.main.cpp.

Here is the call graph for this function:

bool SampleSortPredicate ( const Sample s1,
const Sample s2 
)

Definition at line 43 of file samplehyps.main.cpp.

Here is the caller graph for this function:

template<class Arc , class HypT >
int SampleWFSAs ( ucam::util::RegistryPO const &  rg)

Definition at line 119 of file samplehyps.main.cpp.

Here is the call graph for this function: