Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/moses
diff options
context:
space:
mode:
authorPhilipp Koehn <pkoehn@odin.inf.ed.ac.uk>2012-02-16 09:14:56 +0400
committerPhilipp Koehn <pkoehn@odin.inf.ed.ac.uk>2012-02-16 09:14:56 +0400
commit517fda5adaadd04873b2a0bcec040917d5dc0903 (patch)
treee2220e153630c589777b239c6d9a43cc77cd9691 /moses
parent30729621ce0aee2aaf58822470d72d4b7fdd7df9 (diff)
bug fixes
Diffstat (limited to 'moses')
-rw-r--r--moses/src/Sentence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/src/Sentence.cpp b/moses/src/Sentence.cpp
index 87ede7c7a..2a765fe59 100644
--- a/moses/src/Sentence.cpp
+++ b/moses/src/Sentence.cpp
@@ -141,7 +141,7 @@ int Sentence::Read(std::istream& in,const std::vector<FactorType>& factorOrder)
m_reorderingConstraint.InitializeWalls( GetSize() );
// set reordering walls, if "-monotone-at-punction" is set
- if (staticData.UseReorderingConstraint()) {
+ if (staticData.UseReorderingConstraint() && GetSize()>0) {
m_reorderingConstraint.SetMonotoneAtPunctuation( GetSubString( WordsRange(0,GetSize()-1 ) ) );
}