diff options
Diffstat (limited to 'moses/TranslationModel/UG/mm')
-rw-r--r-- | moses/TranslationModel/UG/mm/ug_mm_2d_table.h | 2 | ||||
-rw-r--r-- | moses/TranslationModel/UG/mm/ug_mm_ttrack.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/moses/TranslationModel/UG/mm/ug_mm_2d_table.h b/moses/TranslationModel/UG/mm/ug_mm_2d_table.h index e2284382e..0ae16895b 100644 --- a/moses/TranslationModel/UG/mm/ug_mm_2d_table.h +++ b/moses/TranslationModel/UG/mm/ug_mm_2d_table.h @@ -103,7 +103,7 @@ namespace ugdiss operator[](ID key) const { if (start==stop) return INIT(0); - Cell const* c = lower_bound(start,stop,key); + Cell const* c = std::lower_bound(start,stop,key); return (c != stop && c->id == key ? c->val : INIT(0)); } diff --git a/moses/TranslationModel/UG/mm/ug_mm_ttrack.h b/moses/TranslationModel/UG/mm/ug_mm_ttrack.h index 91167822d..b87d638b2 100644 --- a/moses/TranslationModel/UG/mm/ug_mm_ttrack.h +++ b/moses/TranslationModel/UG/mm/ug_mm_ttrack.h @@ -21,6 +21,7 @@ #include "ug_ttrack_base.h" #include "num_read_write.h" #include "ug_load_primer.h" +#include "ug_tsa_base.h" namespace ugdiss { @@ -193,7 +194,7 @@ namespace ugdiss findSid(TKN const* t) const { id_type tokenPos = t-data; - id_type const* p = upper_bound(index,index+this->numSent,tokenPos); + id_type const* p = std::upper_bound(index,index+this->numSent,tokenPos); assert(p>index); return p-index-1; } @@ -203,7 +204,7 @@ namespace ugdiss mmTtrack<TKN>:: findSid(id_type tokenPos) const { - id_type const* p = upper_bound(index,index+this->numSent,tokenPos); + id_type const* p = std::upper_bound(index,index+this->numSent,tokenPos); assert(p>index); return p-index-1; } |