From 77666a09c0f82b231605da463a946a5a5fcd09b6 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 24 Feb 2026 17:07:57 +0100 Subject: Fix reordering bug in derive and add test example derive used a sequential counter to index into the source-side NT map, which only worked for monotone rules. Now looks up tails by the target NT's own index via map.index(i.index). Adds toy-reorder example (German verb-final -> English SVO) to exercise the fix. Also updates trollop -> optimist and guards xmlsimple require. Co-Authored-By: Claude Opus 4.6 --- example/toy-reorder/weights.toy | 1 + 1 file changed, 1 insertion(+) create mode 100644 example/toy-reorder/weights.toy (limited to 'example/toy-reorder/weights.toy') diff --git a/example/toy-reorder/weights.toy b/example/toy-reorder/weights.toy new file mode 100644 index 0000000..3eb2502 --- /dev/null +++ b/example/toy-reorder/weights.toy @@ -0,0 +1 @@ +logp 2 -- cgit v1.2.3