summaryrefslogtreecommitdiff
path: root/python/pkg/cdec/sa/extract.py
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-08-07 15:34:48 +0200
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-08-07 15:34:48 +0200
commitb510da2e562c695c90d565eb295c749569c59be8 (patch)
treee5405d03df995831870414227c04f2553c621c92 /python/pkg/cdec/sa/extract.py
parentbb9309432fd35e95cf88b630853a928a3e3228c3 (diff)
parent9b96ffa040f6c05c4e597a34c316743425839fe0 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'python/pkg/cdec/sa/extract.py')
-rw-r--r--python/pkg/cdec/sa/extract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pkg/cdec/sa/extract.py b/python/pkg/cdec/sa/extract.py
index 918aa3bb..875bf42e 100644
--- a/python/pkg/cdec/sa/extract.py
+++ b/python/pkg/cdec/sa/extract.py
@@ -25,7 +25,7 @@ def main():
for rule in extractor.grammar(sentence):
output.write(str(rule)+'\n')
grammar_file = os.path.abspath(grammar_file)
- print('<seg grammar="{0}">{1}</seg>'.format(grammar_file, sentence))
+ print('<seg grammar="{0}" id="{1}">{2}</seg>'.format(grammar_file, i, sentence))
if __name__ == '__main__':
main()