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
commitd4cb5aac6e7e083572dfb4d3393ceceb0dbad99c (patch)
tree4e492573497741aac37b1607be2c37458525aa68 /python/src/sa/rulefactory.pxi
parentdd708f2931ff416eae781e29f27ddb61c1632c9e (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