diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2012-10-25 21:06:07 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2012-10-25 21:06:07 +0400 |
commit | 9aeb368af20301a80e50f67b5ba2e3a442245205 (patch) | |
tree | c7f26ee6806da495558ba1e61dce95d0ed8338cf /scripts/fuzzy-match/create_xml.cpp | |
parent | 1770b19c1142da1234d3a464e67b81264b790684 (diff) |
perl to cpp
Diffstat (limited to 'scripts/fuzzy-match/create_xml.cpp')
-rw-r--r-- | scripts/fuzzy-match/create_xml.cpp | 10 |
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; |