Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2012-10-25 21:06:07 +0400
committerHieu Hoang <hieuhoang@gmail.com>2012-10-25 21:06:07 +0400
commit9aeb368af20301a80e50f67b5ba2e3a442245205 (patch)
treec7f26ee6806da495558ba1e61dce95d0ed8338cf /scripts/fuzzy-match
parent1770b19c1142da1234d3a464e67b81264b790684 (diff)
perl to cpp
Diffstat (limited to 'scripts/fuzzy-match')
-rw-r--r--scripts/fuzzy-match/create_xml.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/fuzzy-match/create_xml.cpp b/scripts/fuzzy-match/create_xml.cpp
index e1f542ace..cb56bc372 100644
--- a/scripts/fuzzy-match/create_xml.cpp
+++ b/scripts/fuzzy-match/create_xml.cpp
@@ -78,7 +78,15 @@ int main(int argc, char **argv)
break;
case 7:
count = Scan<int>(inLine);
- createXML(source, *input, target, align, path);
+ CreateXMLRetValues ret = createXML(source, *input, target, align, path);
+
+ //print STDOUT $frame."\n";
+ rule << ret.ruleS << " [X] ||| " << ret.ruleT << " [X] ||| " << ret.ruleAlignment
+ << " ||| " << count << endl;
+ ruleInv << ret.ruleT << " [X] ||| " << ret.ruleS << " [X] ||| " << ret.ruleAlignmentInv
+ << " ||| " << count << endl;
+
+ //print STDOUT "$sentenceInd ||| $score ||| $count\n";
step = 0;
break;