summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 23:42:11 +0000
committerphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 23:42:11 +0000
commit0b09bcf26266c4af528c39a27e6ddb885c197c57 (patch)
tree124c2be42a252f702225d8cdf2d320ff6ec66e5f
parent1023d2f94d65bd23f034306f4baeea6a6eafa06d (diff)
Fixed major bug with spaces in regex.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@348 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r--decoder/dict.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/dict.cc b/decoder/dict.cc
index 5b0882e6..4a842f82 100644
--- a/decoder/dict.cc
+++ b/decoder/dict.cc
@@ -6,6 +6,6 @@
#include <boost/algorithm/string/regex.hpp>
void Dict::AsVector(const WordID& id, std::vector<std::string>* results) const {
- boost::algorithm::split_regex(*results, Convert(id), boost::regex(" \\|\\|\\| "));
+ boost::algorithm::split_regex(*results, Convert(id), boost::regex("\\s\\|\\|\\|\\s"));
}