diff options
author | Philipp Koehn <pkoehn@odin.inf.ed.ac.uk> | 2012-02-16 09:14:56 +0400 |
---|---|---|
committer | Philipp Koehn <pkoehn@odin.inf.ed.ac.uk> | 2012-02-16 09:14:56 +0400 |
commit | 517fda5adaadd04873b2a0bcec040917d5dc0903 (patch) | |
tree | e2220e153630c589777b239c6d9a43cc77cd9691 /moses | |
parent | 30729621ce0aee2aaf58822470d72d4b7fdd7df9 (diff) |
bug fixes
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/Sentence.cpp | 2 |
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 ) ) ); } |