From 07efbe1156be5a4d92f4f76a1a0e44e9ef409a45 Mon Sep 17 00:00:00 2001 From: Michael Denkowski Date: Thu, 27 Dec 2012 23:45:06 -0500 Subject: Online phrase extraction speaks rulefactory's language. --- python/pkg/cdec/sa/extractor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python/pkg/cdec/sa/extractor.py') diff --git a/python/pkg/cdec/sa/extractor.py b/python/pkg/cdec/sa/extractor.py index f3a86d9d..62a251a7 100644 --- a/python/pkg/cdec/sa/extractor.py +++ b/python/pkg/cdec/sa/extractor.py @@ -88,4 +88,8 @@ class GrammarExtractor: f_words = cdec.sa.encode_words(sentence.split()) e_words = cdec.sa.encode_words(reference.split()) al = sorted(tuple(int(i) for i in pair.split('-')) for pair in alignment.split()) - self.factory.add_instance(f_words, e_words, al) \ No newline at end of file + self.factory.add_instance(f_words, e_words, al) + + # Debugging + def dump_online_stats(self): + self.factory.dump_online_stats() \ No newline at end of file -- cgit v1.2.3