summaryrefslogtreecommitdiff
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
commit874df2f403aaa343eb256508808957cc70ea47ad (patch)
treeef3d9a36c361aa08bc5757e0125b37a248c7ec3d
parentac58a78e4c2c129c838927b1479c31788fd9bd5f (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
-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;