From 611501431a53e507cdc15bb091d3bcc94ca7f39d Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Fri, 3 Aug 2012 14:55:18 -0400 Subject: [python] Fix some details in cdec.sa tools --- python/pkg/cdec/sa/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/pkg/cdec/sa/extract.py') 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('{1}'.format(grammar_file, sentence)) + print('{2}'.format(grammar_file, i, sentence)) if __name__ == '__main__': main() -- cgit v1.2.3