diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-06-08 15:47:02 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-06-08 15:48:40 +0300 |
commit | 3c767fc333f5fe9101a6a4cf67afdc48ddcf8174 (patch) | |
tree | ba9dda2a2a7d7cff28288ac3af6e024f5d1ef235 /moses/TranslationModel/UG/mm/ug_bitext_jstats.h | |
parent | e8a4a9b10a5bd07097122f3e9e6529ac7a441b0b (diff) |
New field to store cumulative bias scores.
Diffstat (limited to 'moses/TranslationModel/UG/mm/ug_bitext_jstats.h')
-rw-r--r-- | moses/TranslationModel/UG/mm/ug_bitext_jstats.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/TranslationModel/UG/mm/ug_bitext_jstats.h b/moses/TranslationModel/UG/mm/ug_bitext_jstats.h index dade27649..49ba0d810 100644 --- a/moses/TranslationModel/UG/mm/ug_bitext_jstats.h +++ b/moses/TranslationModel/UG/mm/ug_bitext_jstats.h @@ -18,6 +18,7 @@ namespace Moses uint32_t my_rcnt; // unweighted joint count uint32_t my_cnt2; // raw counts L2 float my_wcnt; // weighted joint count + float my_bcnt; // cumulative bias // to do: use a static alignment pattern store that stores each pattern only // once, so that we don't have to store so many alignment vectors @@ -33,9 +34,10 @@ namespace Moses uint32_t rcnt() const; // raw joint counts uint32_t cnt2() const; // raw target phrase occurrence count float wcnt() const; // weighted joint counts + float bcnt() const; // cumulative bias scores vector<pair<size_t, vector<uchar> > > const & aln() const; - void add(float w, vector<uchar> const& a, uint32_t const cnt2, + void add(float w, float b, vector<uchar> const& a, uint32_t const cnt2, uint32_t fwd_orient, uint32_t bwd_orient, int const docid); void invalidate(); |