From 8c24c54cb08669e18e8b4b62859c847168ada025 Mon Sep 17 00:00:00 2001 From: philblunsom Date: Tue, 20 Jul 2010 23:42:11 +0000 Subject: Fixed major bug with spaces in regex. git-svn-id: https://ws10smt.googlecode.com/svn/trunk@348 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/dict.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 void Dict::AsVector(const WordID& id, std::vector* results) const { - boost::algorithm::split_regex(*results, Convert(id), boost::regex(" \\|\\|\\| ")); + boost::algorithm::split_regex(*results, Convert(id), boost::regex("\\s\\|\\|\\|\\s")); } -- cgit v1.2.3