This commit is contained in:
sneeker committed 2026-09-18 16:27:30 +00:00
commit 100e5a8239
96 files changed
+39927

No files matched your search

+218
View File
@@ -0,0 +1,218 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 16.0.0 (0)
-->
<!-- Title: grammar Pages: 1 -->
<svg width="660pt" height="282pt"
viewBox="0.00 0.00 660.00 282.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 278.46)">
<title>grammar</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-278.46 655.5,-278.46 655.5,4 -4,4"/>
<text xml:space="preserve" text-anchor="middle" x="325.75" y="-257.16" font-family="Times,serif" font-size="14.00">anbn step 1 after: chunk (T_a T_b)</text>
<!-- nt_S -->
<g id="node1" class="node">
<title>nt_S</title>
<ellipse fill="none" stroke="black" stroke-width="2" cx="22" cy="-141.15" rx="18" ry="18"/>
<ellipse fill="none" stroke="black" stroke-width="2" cx="22" cy="-141.15" rx="22" ry="22"/>
<text xml:space="preserve" text-anchor="middle" x="22" y="-137.65" font-family="Helvetica,sans-Serif" font-size="10.00">S</text>
</g>
<!-- pr_2 -->
<g id="node9" class="node">
<title>pr_2</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="160.75,-216.15 99.75,-216.15 99.75,-180.15 160.75,-180.15 160.75,-216.15"/>
<text xml:space="preserve" text-anchor="middle" x="130.25" y="-200.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">T_a X T_b</text>
<text xml:space="preserve" text-anchor="middle" x="130.25" y="-188.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.220</text>
</g>
<!-- nt_S&#45;&gt;pr_2 -->
<g id="edge6" class="edge">
<title>nt_S&#45;&gt;pr_2</title>
<path fill="none" stroke="black" d="M42,-151.34C55.05,-158.34 72.86,-167.89 88.99,-176.55"/>
<polygon fill="black" stroke="black" points="86.96,-179.43 97.42,-181.07 90.27,-173.26 86.96,-179.43"/>
</g>
<!-- pr_3 -->
<g id="node10" class="node">
<title>pr_3</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="157.25,-159.15 103.25,-159.15 103.25,-123.15 157.25,-123.15 157.25,-159.15"/>
<text xml:space="preserve" text-anchor="middle" x="130.25" y="-143.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">X</text>
<text xml:space="preserve" text-anchor="middle" x="130.25" y="-131.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.580</text>
</g>
<!-- nt_S&#45;&gt;pr_3 -->
<g id="edge10" class="edge">
<title>nt_S&#45;&gt;pr_3</title>
<path fill="none" stroke="black" d="M44.25,-141.15C57.7,-141.15 75.47,-141.15 91.29,-141.15"/>
<polygon fill="black" stroke="black" points="90.86,-144.65 100.86,-141.15 90.86,-137.65 90.86,-144.65"/>
</g>
<!-- pr_4 -->
<g id="node11" class="node">
<title>pr_4</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="179.5,-80.15 81,-80.15 81,-44.15 179.5,-44.15 179.5,-80.15"/>
<text xml:space="preserve" text-anchor="middle" x="130.25" y="-64.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">T_a T_a X T_b T_b</text>
<text xml:space="preserve" text-anchor="middle" x="130.25" y="-52.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.200</text>
</g>
<!-- nt_S&#45;&gt;pr_4 -->
<g id="edge12" class="edge">
<title>nt_S&#45;&gt;pr_4</title>
<path fill="none" stroke="black" d="M40.07,-128.45C54.66,-117.61 76.11,-101.66 94.32,-88.12"/>
<polygon fill="black" stroke="black" points="96.34,-90.98 102.28,-82.2 92.16,-85.36 96.34,-90.98"/>
</g>
<!-- nt_T_a -->
<g id="node2" class="node">
<title>nt_T_a</title>
<ellipse fill="none" stroke="black" cx="438.25" cy="-120.15" rx="27" ry="18"/>
<text xml:space="preserve" text-anchor="middle" x="438.25" y="-116.65" font-family="Helvetica,sans-Serif" font-size="10.00">T_a</text>
</g>
<!-- pr_5 -->
<g id="node12" class="node">
<title>pr_5</title>
<polygon fill="none" stroke="black" points="556.25,-138.15 502.25,-138.15 502.25,-102.15 556.25,-102.15 556.25,-138.15"/>
<text xml:space="preserve" text-anchor="middle" x="529.25" y="-122.65" font-family="Helvetica,sans-Serif" font-size="10.00">a</text>
<text xml:space="preserve" text-anchor="middle" x="529.25" y="-110.65" font-family="Helvetica,sans-Serif" font-size="10.00">p=1.000</text>
</g>
<!-- nt_T_a&#45;&gt;pr_5 -->
<g id="edge18" class="edge">
<title>nt_T_a&#45;&gt;pr_5</title>
<path fill="none" stroke="black" d="M465.47,-120.15C473.37,-120.15 482.19,-120.15 490.68,-120.15"/>
<polygon fill="black" stroke="black" points="490.39,-123.65 500.39,-120.15 490.39,-116.65 490.39,-123.65"/>
</g>
<!-- nt_T_b -->
<g id="node3" class="node">
<title>nt_T_b</title>
<ellipse fill="none" stroke="black" cx="438.25" cy="-55.15" rx="27" ry="18"/>
<text xml:space="preserve" text-anchor="middle" x="438.25" y="-51.65" font-family="Helvetica,sans-Serif" font-size="10.00">T_b</text>
</g>
<!-- pr_1 -->
<g id="node8" class="node">
<title>pr_1</title>
<polygon fill="none" stroke="black" points="556.25,-73.15 502.25,-73.15 502.25,-37.15 556.25,-37.15 556.25,-73.15"/>
<text xml:space="preserve" text-anchor="middle" x="529.25" y="-57.65" font-family="Helvetica,sans-Serif" font-size="10.00">b</text>
<text xml:space="preserve" text-anchor="middle" x="529.25" y="-45.65" font-family="Helvetica,sans-Serif" font-size="10.00">p=1.000</text>
</g>
<!-- nt_T_b&#45;&gt;pr_1 -->
<g id="edge4" class="edge">
<title>nt_T_b&#45;&gt;pr_1</title>
<path fill="none" stroke="black" d="M465.47,-55.15C473.37,-55.15 482.19,-55.15 490.68,-55.15"/>
<polygon fill="black" stroke="black" points="490.39,-58.65 500.39,-55.15 490.39,-51.65 490.39,-58.65"/>
</g>
<!-- nt_X -->
<g id="node4" class="node">
<title>nt_X</title>
<ellipse fill="none" stroke="red" stroke-width="2.5" cx="247.75" cy="-141.15" rx="27" ry="18"/>
<text xml:space="preserve" text-anchor="middle" x="247.75" y="-137.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">X</text>
</g>
<!-- pr_0 -->
<g id="node7" class="node">
<title>pr_0</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="370,-159.15 316,-159.15 316,-123.15 370,-123.15 370,-159.15"/>
<text xml:space="preserve" text-anchor="middle" x="343" y="-143.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">T_a T_b</text>
<text xml:space="preserve" text-anchor="middle" x="343" y="-131.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=1.000</text>
</g>
<!-- nt_X&#45;&gt;pr_0 -->
<g id="edge1" class="edge">
<title>nt_X&#45;&gt;pr_0</title>
<path fill="none" stroke="black" d="M275.72,-141.15C284.34,-141.15 294.07,-141.15 303.35,-141.15"/>
<polygon fill="black" stroke="black" points="303.25,-144.65 313.25,-141.15 303.25,-137.65 303.25,-144.65"/>
</g>
<!-- tm_a -->
<g id="node5" class="node">
<title>tm_a</title>
<text xml:space="preserve" text-anchor="middle" x="624.5" y="-116.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">a</text>
</g>
<!-- tm_b -->
<g id="node6" class="node">
<title>tm_b</title>
<text xml:space="preserve" text-anchor="middle" x="624.5" y="-51.65" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">b</text>
</g>
<!-- pr_0&#45;&gt;nt_T_a -->
<g id="edge2" class="edge">
<title>pr_0&#45;&gt;nt_T_a</title>
<path fill="none" stroke="black" d="M371.18,-136.61C378.38,-135.29 386.13,-133.76 393.25,-132.15 396.19,-131.48 399.23,-130.74 402.27,-129.98"/>
<polygon fill="black" stroke="black" points="402.89,-133.43 411.67,-127.51 401.11,-126.66 402.89,-133.43"/>
<text xml:space="preserve" text-anchor="middle" x="390.62" y="-134.97" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_0&#45;&gt;nt_T_b -->
<g id="edge3" class="edge">
<title>pr_0&#45;&gt;nt_T_b</title>
<path fill="none" stroke="black" d="M364.7,-122.06C379.05,-108.82 398.21,-91.15 413.23,-77.29"/>
<polygon fill="black" stroke="black" points="415.45,-80.02 420.42,-70.66 410.7,-74.87 415.45,-80.02"/>
<text xml:space="preserve" text-anchor="middle" x="390.62" y="-100.1" font-family="Helvetica,sans-Serif" font-size="9.00">2</text>
</g>
<!-- pr_1&#45;&gt;tm_b -->
<g id="edge5" class="edge">
<title>pr_1&#45;&gt;tm_b</title>
<path fill="none" stroke="black" d="M556.72,-55.15C565.93,-55.15 576.44,-55.15 586.36,-55.15"/>
<polygon fill="black" stroke="black" points="586.09,-58.65 596.09,-55.15 586.09,-51.65 586.09,-58.65"/>
<text xml:space="preserve" text-anchor="middle" x="576.88" y="-57.1" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_2&#45;&gt;nt_T_a -->
<g id="edge7" class="edge">
<title>pr_2&#45;&gt;nt_T_a</title>
<path fill="none" stroke="black" d="M161.65,-210.95C213.72,-230.69 321.28,-261.66 393.25,-215.15 415.64,-200.68 426.81,-171.61 432.28,-149.42"/>
<polygon fill="black" stroke="black" points="435.68,-150.24 434.38,-139.73 428.84,-148.76 435.68,-150.24"/>
<text xml:space="preserve" text-anchor="middle" x="295.38" y="-241.41" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_2&#45;&gt;nt_T_b -->
<g id="edge9" class="edge">
<title>pr_2&#45;&gt;nt_T_b</title>
<path fill="none" stroke="black" d="M161.85,-200C208.87,-201.63 300.69,-199.91 370,-168.15 404.58,-152.29 394.33,-127.22 411.25,-93.15 413.37,-88.88 415.91,-84.54 418.57,-80.39"/>
<polygon fill="black" stroke="black" points="421.24,-82.67 423.96,-72.43 415.45,-78.74 421.24,-82.67"/>
<text xml:space="preserve" text-anchor="middle" x="295.38" y="-193.36" font-family="Helvetica,sans-Serif" font-size="9.00">3</text>
</g>
<!-- pr_2&#45;&gt;nt_X -->
<g id="edge8" class="edge">
<title>pr_2&#45;&gt;nt_X</title>
<path fill="none" stroke="black" d="M161.9,-183.02C178.13,-175.01 198.05,-165.18 214.51,-157.06"/>
<polygon fill="black" stroke="black" points="215.97,-160.24 223.39,-152.67 212.88,-153.96 215.97,-160.24"/>
<text xml:space="preserve" text-anchor="middle" x="200.12" y="-166.49" font-family="Helvetica,sans-Serif" font-size="9.00">2</text>
</g>
<!-- pr_3&#45;&gt;nt_X -->
<g id="edge11" class="edge">
<title>pr_3&#45;&gt;nt_X</title>
<path fill="none" stroke="black" d="M158.33,-141.15C173.25,-141.15 192.01,-141.15 208.41,-141.15"/>
<polygon fill="black" stroke="black" points="208.33,-144.65 218.33,-141.15 208.33,-137.65 208.33,-144.65"/>
<text xml:space="preserve" text-anchor="middle" x="200.12" y="-143.1" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_4&#45;&gt;nt_T_a -->
<g id="edge13" class="edge">
<title>pr_4&#45;&gt;nt_T_a</title>
<path fill="none" stroke="black" d="M180.34,-65.63C233.59,-70.28 320.72,-80.47 393.25,-101.15 397.33,-102.31 401.53,-103.76 405.64,-105.35"/>
<polygon fill="black" stroke="black" points="404.2,-108.54 414.78,-109.14 406.89,-102.07 404.2,-108.54"/>
<text xml:space="preserve" text-anchor="middle" x="295.38" y="-82.22" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_4&#45;&gt;nt_T_a -->
<g id="edge14" class="edge">
<title>pr_4&#45;&gt;nt_T_a</title>
<path fill="none" stroke="black" d="M180.61,-57.76C230.19,-55.19 307.94,-56.24 370,-80.15 383.63,-85.39 397.67,-93.29 409.38,-100.68"/>
<polygon fill="black" stroke="black" points="407.44,-103.6 417.72,-106.14 411.27,-97.74 407.44,-103.6"/>
<text xml:space="preserve" text-anchor="middle" x="295.38" y="-63.99" font-family="Helvetica,sans-Serif" font-size="9.00">2</text>
</g>
<!-- pr_4&#45;&gt;nt_T_b -->
<g id="edge16" class="edge">
<title>pr_4&#45;&gt;nt_T_b</title>
<path fill="none" stroke="black" d="M170.3,-42.99C203.65,-28.7 253.19,-12.33 298,-16.65 340.93,-20.78 352.17,-22.02 393.25,-35.15 397.33,-36.45 401.52,-38.03 405.64,-39.72"/>
<polygon fill="black" stroke="black" points="404.22,-42.92 414.78,-43.74 407.03,-36.51 404.22,-42.92"/>
<text xml:space="preserve" text-anchor="middle" x="295.38" y="-18.6" font-family="Helvetica,sans-Serif" font-size="9.00">4</text>
</g>
<!-- pr_4&#45;&gt;nt_T_b -->
<g id="edge17" class="edge">
<title>pr_4&#45;&gt;nt_T_b</title>
<path fill="none" stroke="black" d="M159.03,-43.13C176.1,-32.36 198.84,-19.58 220.75,-12.15 253.56,-1.01 263.48,1.33 298,-1.65 330.36,-4.43 339.6,-2.71 370,-14.15 384.1,-19.45 398.52,-27.78 410.37,-35.55"/>
<polygon fill="black" stroke="black" points="408.17,-38.29 418.4,-41.02 412.1,-32.5 408.17,-38.29"/>
<text xml:space="preserve" text-anchor="middle" x="295.38" y="-3.6" font-family="Helvetica,sans-Serif" font-size="9.00">5</text>
</g>
<!-- pr_4&#45;&gt;nt_X -->
<g id="edge15" class="edge">
<title>pr_4&#45;&gt;nt_X</title>
<path fill="none" stroke="black" d="M159.21,-81.27C177.01,-93.44 200.01,-109.18 217.97,-121.46"/>
<polygon fill="black" stroke="black" points="215.88,-124.27 226.11,-127.03 219.83,-118.49 215.88,-124.27"/>
<text xml:space="preserve" text-anchor="middle" x="200.12" y="-112.99" font-family="Helvetica,sans-Serif" font-size="9.00">3</text>
</g>
<!-- pr_5&#45;&gt;tm_a -->
<g id="edge19" class="edge">
<title>pr_5&#45;&gt;tm_a</title>
<path fill="none" stroke="black" d="M556.72,-120.15C565.93,-120.15 576.44,-120.15 586.36,-120.15"/>
<polygon fill="black" stroke="black" points="586.09,-123.65 596.09,-120.15 586.09,-116.65 586.09,-123.65"/>
<text xml:space="preserve" text-anchor="middle" x="576.88" y="-122.1" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB