diff options
author | philblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-29 04:28:03 +0000 |
---|---|---|
committer | philblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-29 04:28:03 +0000 |
commit | c2d0652b798b2b23744b8c81f0f1abf8d7eeed2f (patch) | |
tree | 2c2d137dda292221c7c0e4a5f1d7204d5c6bc68f /gi/pyp-topics/src/pyp-topics.hh | |
parent | ebd00f59aab18446051f9838d3d08427b242b435 (diff) |
Debugged hierarchical backoff model.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@48 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pyp-topics/src/pyp-topics.hh')
-rw-r--r-- | gi/pyp-topics/src/pyp-topics.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gi/pyp-topics/src/pyp-topics.hh b/gi/pyp-topics/src/pyp-topics.hh index 92d6f292..6b0b15f9 100644 --- a/gi/pyp-topics/src/pyp-topics.hh +++ b/gi/pyp-topics/src/pyp-topics.hh @@ -29,6 +29,8 @@ public: } void set_backoff(TermBackoffPtr backoff) { m_backoff = backoff; + m_word_pyps.clear(); + m_word_pyps.resize(m_backoff->order(), PYPs()); } F prob(const Term& term, int topic, int level=0) const; |