]> hydra-www.ietfng.org Git - dyna2/commit
improvements to `examples/ptb.dyna`
authorTim Vieira <tim.f.vieira@gmail.com>
Wed, 3 Jul 2013 16:03:27 +0000 (12:03 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Wed, 3 Jul 2013 16:11:18 +0000 (12:11 -0400)
commit60e558f31ab812dbab9a6ac5d017d73da67b3306
tree7cc1c292f3e03152fd03febf72646a5b4544b0ba
parent18c4de7b5a62b7c056b1ae15690d1c9ec29216c8
improvements to `examples/ptb.dyna`

 - (no longer a complete mess thanks to the new `load` commands)

 - does binarization

 - extracts and counts rules in a s-expression tree.

 - parses a sentence given as a string AND extracts the optimal parse by
   following backpointers.

sexpr loader uses nested lists as it's representation

'in'(+,+)+ asserts second arg is a list.

retract_rule: no longer crashes when retracting a backchained rule. There are
possible bugs because we haven't deleted the memo tables affected by that rule.

REPL: show changes after 'load' commands

String display format should no longer render special characters like '\n'
examples/ptb.dyna
src/Dyna/Backend/Python/Backend.hs
src/Dyna/Backend/Python/interpreter.py
src/Dyna/Backend/Python/load/__init__.py
src/Dyna/Backend/Python/load/sexpr.py
src/Dyna/Backend/Python/repl.py
src/Dyna/Backend/Python/stdlib.py
src/Dyna/Backend/Python/term.py
src/Dyna/Backend/Python/utils.py
test/repl/english.par