summaryrefslogtreecommitdiff
path: root/python/src/sa/rulefactory.pxi
diff options
context:
space:
mode:
authorMichael Denkowski <michael.j.denkowski@gmail.com>2012-12-27 19:38:56 -0500
committerMichael Denkowski <michael.j.denkowski@gmail.com>2012-12-27 19:38:56 -0500
commit0a4ee9a74cb84595880d815b4d7610664cbd7655 (patch)
tree408649b5395146de686cae5e4fb00081cec03565 /python/src/sa/rulefactory.pxi
parentd01276872ca6307ce7f6ee0c6db2f9244e6ab378 (diff)
Hooks for online grammar extraction
Diffstat (limited to 'python/src/sa/rulefactory.pxi')
-rw-r--r--python/src/sa/rulefactory.pxi6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/src/sa/rulefactory.pxi b/python/src/sa/rulefactory.pxi
index 5006a838..a0bda793 100644
--- a/python/src/sa/rulefactory.pxi
+++ b/python/src/sa/rulefactory.pxi
@@ -1798,3 +1798,9 @@ cdef class HieroCachingRuleFactory:
free(e_gap_high)
return extracts
+
+ def add_instance(self, f_words, e_words, alignment):
+ logger.info("I would add:")
+ logger.info(decode_words(f_words))
+ logger.info(decode_words(e_words))
+ logger.info(alignment) \ No newline at end of file