summaryrefslogtreecommitdiff
path: root/training/ttables.h
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-15 17:07:04 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-15 17:07:04 +0000
commit19840a3f47d64c38753c1fac46cb4f39212fc99f (patch)
treeabc060aa8008b43cc15d331f80fa9ecfa48d778c /training/ttables.h
parent49fb41843a2ad81e3ef2b65e5b9264809aac1847 (diff)
model 1 options
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@723 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'training/ttables.h')
-rw-r--r--training/ttables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/ttables.h b/training/ttables.h
index 04e54f9d..53f5f2ab 100644
--- a/training/ttables.h
+++ b/training/ttables.h
@@ -12,7 +12,7 @@ class TTable {
TTable() {}
typedef std::tr1::unordered_map<WordID, double> Word2Double;
typedef std::tr1::unordered_map<WordID, Word2Double> Word2Word2Double;
- inline const double prob(const int& e, const int& f) const {
+ inline double prob(const int& e, const int& f) const {
const Word2Word2Double::const_iterator cit = ttable.find(e);
if (cit != ttable.end()) {
const Word2Double& cpd = cit->second;