summaryrefslogtreecommitdiff
path: root/training/ttables.h
diff options
context:
space:
mode:
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;