#include <ug_bitext_jstats.h>
Public Member Functions | |
jstats () | |
jstats (jstats const &other) | |
uint32_t | rcnt () const |
uint32_t | cnt2 () const |
float | wcnt () const |
float | bcnt () const |
std::vector< std::pair< size_t, std::vector< unsigned char > > > const & | aln () const |
size_t | add (float w, float b, std::vector< unsigned char > const &a, uint32_t const cnt2, uint32_t fwd_orient, uint32_t bwd_orient, int const docid, uint32_t const sid, bool const track_sid) |
void | invalidate () |
void | validate () |
bool | valid () |
uint32_t | dcnt_fwd (PhraseOrientation const idx) const |
uint32_t | dcnt_bwd (PhraseOrientation const idx) const |
void | fill_lr_vec (LRModel::Direction const &dir, LRModel::ModelType const &mdl, std::vector< float > &v) |
Public Attributes | |
SPTR< std::vector< uint32_t > > | sids |
std::map< uint32_t, uint32_t > | indoc |
Definition at line 13 of file ug_bitext_jstats.h.
sapt::jstats::jstats | ( | ) |
sapt::jstats::jstats | ( | jstats const & | other | ) |
Definition at line 26 of file ug_bitext_jstats.cc.
References aln(), bcnt(), indoc, Moses::LRModel::NONE, rcnt(), sids, and wcnt().
size_t sapt::jstats::add | ( | float | w, | |
float | b, | |||
std::vector< unsigned char > const & | a, | |||
uint32_t const | cnt2, | |||
uint32_t | fwd_orient, | |||
uint32_t | bwd_orient, | |||
int const | docid, | |||
uint32_t const | sid, | |||
bool const | track_sid | |||
) |
Definition at line 59 of file ug_bitext_jstats.cc.
Referenced by sapt::pstats::add().
std::vector< std::pair< size_t, std::vector< unsigned char > > > const & sapt::jstats::aln | ( | ) | const |
Definition at line 98 of file ug_bitext_jstats.cc.
Referenced by jstats(), and sapt::PhrasePair< Token >::update().
float sapt::jstats::bcnt | ( | ) | const |
Definition at line 8 of file ug_bitext_jstats.cc.
Referenced by jstats(), and sapt::PhrasePair< Token >::update().
uint32_t sapt::jstats::cnt2 | ( | ) | const |
Definition at line 9 of file ug_bitext_jstats.cc.
Referenced by main(), and sapt::PhrasePair< Token >::update().
uint32_t sapt::jstats::dcnt_bwd | ( | PhraseOrientation const | idx | ) | const |
Definition at line 51 of file ug_bitext_jstats.cc.
References Moses::LRModel::NONE.
Referenced by sapt::PhrasePair< Token >::update().
uint32_t sapt::jstats::dcnt_fwd | ( | PhraseOrientation const | idx | ) | const |
Definition at line 43 of file ug_bitext_jstats.cc.
References Moses::LRModel::NONE.
Referenced by sapt::PhrasePair< Token >::update().
void sapt::jstats::fill_lr_vec | ( | LRModel::Direction const & | dir, | |
LRModel::ModelType const & | mdl, | |||
std::vector< float > & | v | |||
) |
void sapt::jstats::invalidate | ( | ) |
Definition at line 14 of file ug_bitext_jstats.cc.
uint32_t sapt::jstats::rcnt | ( | ) | const |
Definition at line 6 of file ug_bitext_jstats.cc.
Referenced by sapt::pstats::add(), jstats(), main(), and sapt::PhrasePair< Token >::update().
bool sapt::jstats::valid | ( | ) |
Definition at line 12 of file ug_bitext_jstats.cc.
void sapt::jstats::validate | ( | ) |
Definition at line 13 of file ug_bitext_jstats.cc.
float sapt::jstats::wcnt | ( | ) | const |
Definition at line 7 of file ug_bitext_jstats.cc.
Referenced by jstats().
std::map<uint32_t,uint32_t> sapt::jstats::indoc |
Definition at line 32 of file ug_bitext_jstats.h.
Referenced by add(), jstats(), and sapt::PhrasePair< Token >::update().
SPTR<std::vector<uint32_t> > sapt::jstats::sids |
Definition at line 31 of file ug_bitext_jstats.h.
Referenced by add(), jstats(), and sapt::PhrasePair< Token >::update().