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
commit8c24c54cb08669e18e8b4b62859c847168ada025 (patch)
tree160ce9ab3225f49094f30a2d42408cd02ed549eb
parent4b827a22788f40aaed382f40220effe8696e5aef (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"));
}