summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorgraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-10 09:04:13 +0000
committergraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-10 09:04:13 +0000
commit43db0573b15719d48b89b3a1ad2828036d008560 (patch)
treeb5a6a7bdd661b3b6d6df98c24b35fa7930e71d5b /decoder
parent52c656a62d05135cf6ffd80249d5a44a07a40816 (diff)
backed out from using lexer on Trule(string) - expected features at target-rhs portion
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@498 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-rw-r--r--decoder/trule.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/trule.cc b/decoder/trule.cc
index 330db67f..b76a29c3 100644
--- a/decoder/trule.cc
+++ b/decoder/trule.cc
@@ -106,7 +106,8 @@ void assign_trule(const TRulePtr& new_rule, const unsigned int ctf_level, const
bool TRule::ReadFromString(const string& line, bool strict, bool mono) {
if (!is_single_line_stripped(line))
std::cerr<<"\nWARNING: building rule from multi-line string "<<line<<".\n";
- if (!(mono||strict)) {
+ // backed off of this: it's failing to parse TRulePtr glue(new TRule("[" + goal_nt + "] ||| [" + goal_nt + ",1] ["+ default_nt + ",2] ||| [1] [2] ||| Glue=1")); thinks [1] is the features!
+ if (false && !(mono||strict)) {
// use lexer
istringstream il(line);
n_assigned=0;