Description
Multi-connectors are behaving in a fashion I do not fully understand. Consider this dict
LEFT-WALL: @ANY+;
<many>: {[@ANY-]-0.1 or [@ANY+]-0.11};
<UNKNOWN-WORD>: <many>;
% <UNKNOWN-WORD>: <many> and <many>;
% <UNKNOWN-WORD>: <many> and <many> and <many>;
% <UNKNOWN-WORD>: <many> and <many> and <many> and <many>;
and then parse the sentence `asdf asdf asdf asdf. I get this:
linkparser> asdf asdf asdf asdf
Found 14 linkages (14 had no P.P. violations)
Linkage 1, cost vector = (UNUSED=0 DIS=-0.43 LEN=6)
+---------------ANY--------------+
| +----------ANY----------+
| | +------ANY------+
| | | +--ANY--+
| | | | |
LEFT-WALL asdf[?] asdf[?] asdf[?] asdf[?]
and the others are all trees. Not surprising.
When I set <UNKNOWN-WORD>: <many> and <many>;
then I get
Found 435 linkages (435 had no P.P. violations)
Linkage 1, cost vector = (UNUSED=0 DIS=-0.84 LEN=3)
+----------ANY----------+
| +------ANY------+
+---ANY--+ +--ANY--+--ANY--+
| | | | |
LEFT-WALL asdf[?] asdf[?] asdf[?] asdf[?]
Loops now appear. Not surprising. This is what I wanted. Making the costs negative means that the loopy parses are shown first. But oddly, this is not showing the maximum-possible number of loops!
With <UNKNOWN-WORD>: <many> and <many> and <many>;
I get
Found 939 linkages (939 had no P.P. violations)
Linkage 1, cost vector = (UNUSED=0 DIS=-1.15 LEN=3)
+----------ANY----------+
| +------ANY------+
+---ANY--+--ANY--+--ANY--+--ANY--+
| | | | |
LEFT-WALL asdf[?] asdf[?] asdf[?] asdf[?]
Much better! But wait, there's more: with four<many>
's I get
Found 1020 linkages (1020 had no P.P. violations)
Linkage 1, cost vector = (UNUSED=0 DIS=-1.25 LEN=6)
+---------------ANY--------------+
| +----------ANY----------+
| +------ANY------+ |
+---ANY--+--ANY--+--ANY--+--ANY--+
| | | | |
LEFT-WALL asdf[?] asdf[?] asdf[?] asdf[?]
I understand the difference between one and two <many>
's, But the change for three and four is surprising. I do not understand that or why it's happening.
Seem that five-word sentences need five <many>
's and so on, to explore al possibilities.