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
commit24d2bfb3ace1ae15ffee661602a7d03ef2599e48 (patch)
treec7699014c0e59538a902d393babd4ce72a52b1dd /training/ttables.h
parent0e2ad6ff4cdf419f0e2d4468693f457547028950 (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;