Bump to 0.2.0

- Add Unweighted mode to command line
- Download nltk data if needed.
This commit is contained in:
cassowary committed 2023-11-04 20:40:03 -07:00
1 parent 6556164879
commit d6e329ff39
7 files changed
+188 -9

No files matched your search

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB

+175
View File
@@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="32mm"
height="32mm"
viewBox="0 0 32 32"
version="1.1"
id="svg5"
sodipodi:docname="carkov-logo.svg"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
inkscape:export-filename="carkov-logo.png"
inkscape:export-xdpi="476.25"
inkscape:export-ydpi="476.25"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="2.9754489"
inkscape:cx="64.864162"
inkscape:cy="64.864162"
inkscape:window-width="1920"
inkscape:window-height="1030"
inkscape:window-x="0"
inkscape:window-y="481"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient4537">
<stop
style="stop-color:#260a20;stop-opacity:1;"
offset="0"
id="stop4533" />
<stop
style="stop-color:#6d0056;stop-opacity:1;"
offset="1"
id="stop4535" />
</linearGradient>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter3478"
x="-0.0069617889"
y="-0.0056557455"
width="1.0138275"
height="1.0118668">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.19164413"
id="feGaussianBlur3480" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter6450"
x="-0.051368332"
y="-0.23561631"
width="1.1027367"
height="1.4712326">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.5744311"
id="feGaussianBlur6452" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter7180"
x="-0.016480798"
y="-0.064519708"
width="1.0329616"
height="1.1290394">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.18547025"
id="feGaussianBlur7182" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter2330"
x="-0.00065686239"
y="-0.00041859327"
width="1.0012683"
height="1.0010995">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.0052512191"
id="feGaussianBlur2328" />
</filter>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient4537"
id="radialGradient4539"
cx="15.887923"
cy="16.671302"
fx="15.887923"
fy="16.671302"
r="18.288837"
gradientTransform="matrix(1,0,0,0.98429888,0,0.26175804)"
gradientUnits="userSpaceOnUse" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:url(#radialGradient4539);stroke:none;stroke-width:2;stroke-linecap:square;stroke-miterlimit:16.3;stroke-dashoffset:1.44;fill-opacity:1"
id="rect1659"
width="36.577675"
height="36.003365"
x="-2.4009144"
y="-1.3303806" />
<path
style="fill:none;fill-opacity:1;stroke:#e78eff;stroke-width:0.125;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.20053348;filter:url(#filter2330);stroke-dasharray:none"
d="m 22.808644,32.243735 3.505195,-5.609484 v -6.614584 l 5.945148,-2.899642 3.505195,-5.609485 V 4.8959574 M 26.313839,20.019667 22.808644,14.410183 V 7.7955994 l 3.505195,-5.6094846 m 0,17.8335522 -6.578348,0.691413 -5.945148,-2.899643 m 12.523496,2.20823 -6.578348,0.691413 -5.212363,4.072344 -5.9451479,-2.899643 -6.578348,0.691412 -5.2123625,4.072345 m 17.7358584,-1.864114 -2.26232,6.215675 -5.2123629,4.072344 -6.57834799,0.691412 M 14.523128,24.783424 l 4.594876,4.758133 1.375249,6.470039 m -5.970125,-11.228172 -5.2123619,4.072344 -2.262321,6.215675 -6.57834799,0.691412 -5.21236291,4.072344 -2.2623208,6.215675 m 14.0530317,-10.979431 1.375249,6.470039 -2.262321,6.215675 -5.21236299,4.072344 m 6.09943499,-16.758058 6.4181019,1.600212 4.594875,4.758134 m -11.0129769,-6.358346 6.4181019,1.600212 6.290842,-2.044018 4.594876,4.758133 6.418102,1.600212 6.290843,-2.044018 m -17.303821,-4.314327 4.251773,-5.067065 6.290842,-2.044019 6.418102,1.600213 m -16.960717,5.510871 -2.690393,-6.042723 0.920572,-6.55021 M 19.757389,34.627637 17.066996,28.584914 11.583258,24.886086 12.50383,18.335876 9.8134361,12.293153 4.3296981,8.5943254 M 11.583258,24.886086 4.9727041,24.655241 -0.51103409,20.956413 -3.2014275,14.91369 m 14.7846855,9.972396 -3.1053589,5.840331 -5.728397,3.307291 m 11.7736259,-9.250284 4.594876,4.758133 6.418102,1.600212 1.375249,6.470039 4.594876,4.758133 6.418102,1.600213 m -12.388227,-12.828385 6.290843,-2.044018 6.418102,1.600212 4.594875,4.758133 m -17.30382,-4.314327 0.920572,-6.55021 4.251772,-5.067065 m -5.172344,11.617275 6.290843,-2.044018 4.251772,-5.067065 6.418102,1.600212 6.290842,-2.044018 4.251773,-5.067065 m -16.960717,5.510871 0.920572,-6.550211 4.251772,-5.067065 6.290843,-2.044018 M 36.078721,24.030686 30.594983,20.331858 27.904589,14.289135 m 8.174132,9.741551 0.920572,-6.550211 -2.690394,-6.042722 4.251773,-5.0670646 0.920572,-6.55021087 L 36.79085,-6.222245 M 34.308899,11.437753 28.825161,7.7389254 26.134768,1.6962024 27.05534,-4.8540083 m 7.253559,16.2917613 -5.728397,3.307291 -6.610554,-0.230845 m -7.44682,10.269225 6.290843,-2.044019 4.251772,-5.067065 6.418102,1.600213 6.290843,-2.044019 4.251772,-5.067065 M 25.065743,17.67234 25.986315,11.12213 30.238087,6.0550654 36.52893,4.0110464 M 25.065743,17.67234 19.582005,13.973512 16.891612,7.9307904 M 25.065743,17.67234 25.986315,11.12213 23.295922,5.0794074 27.547694,0.01234263 28.468266,-6.537868 25.777873,-12.580591 M 23.295922,5.0794074 17.812184,1.3805793 15.12179,-4.6621432 16.042362,-11.212354 m 7.25356,16.2917614 -5.728397,3.307292 -6.610554,-0.230846 m 3.566157,16.6275706 6.290843,-2.044019 4.251772,-5.067065 6.418102,1.600213 6.290843,-2.044019 4.251772,-5.067065 M 25.065743,17.67234 25.986315,11.12213 30.238087,6.0550654 36.52893,4.0110464 M 25.065743,17.67234 19.582005,13.973512 16.891612,7.9307904 M 25.065743,17.67234 19.582005,13.973512 12.971451,13.742667 10.281058,7.6999444 4.7973201,4.0011164 -1.8132342,3.7702704 M 12.971451,13.742667 7.2430541,17.049958 0.63250011,16.819113 -4.851238,13.120285 m 17.822689,0.622382 0.46141,6.59847 -3.105359,5.84033 m 2.643949,-12.4388 -6.6105539,-0.230846 -5.72839699,3.307292 -5.48373811,-3.698828 -6.610554,-0.230846 -5.728397,3.307292 m 17.82268911,0.622382 -3.10535871,5.84033 -5.7283972,3.307292 -6.6105542,-0.230846 m 15.44431011,-8.916776 3.88795499,5.35131 0.46141,6.59847 m -4.34936499,-11.94978 3.88795499,5.35131 6.1329339,2.477866 0.46141,6.598471 3.887955,5.35131 6.132935,2.477867 m -10.4823,-14.427648 6.514093,-1.14861 6.132935,2.477867 3.887955,5.35131 m -16.534983,-6.680567 1.823227,-6.358345 4.915593,-4.42602 m -6.73882,10.784365 1.823227,-6.358345 -1.823227,-6.358346 4.915594,-4.4260196 1.823226,-6.3583455 -1.823226,-6.3583456 M 10.653389,11.931598 5.7377961,7.5055784 3.9145701,1.1472329 5.7377961,-5.2111127 M 10.653389,11.931598 4.5204551,14.409465 -1.9936383,13.260854 m 14.9650893,0.481813 0.46141,6.59847 3.887955,5.35131 -3.105359,5.840331 0.46141,6.59847 3.887954,5.351311 m -1.244005,-17.790112 6.132935,2.477867 3.887954,5.35131 0.46141,6.598471 m -10.482299,-14.427648 4.915593,-4.42602 6.514093,-1.14861 m -11.429686,5.57463 6.132935,2.477867 6.514093,-1.14861 3.887954,5.35131 6.132935,2.477866 6.514093,-1.14861 m -16.534982,-6.680566 4.915593,-4.426021 6.514093,-1.14861 6.132935,2.477867 m -17.562621,3.096764 -1.823227,-6.358346 1.823227,-6.358346 m 0,12.716692 4.915593,-4.426021 1.823226,-6.358345 6.514093,-1.148611 4.915593,-4.42602 1.823227,-6.3583446 M 36.706663,16.237338 34.883437,9.8789924 36.706663,3.5206474 41.622257,-0.90537307 M 36.706663,16.237338 30.19257,15.088727 25.276977,10.662707 m -12.305526,3.07996 6.132935,2.477866 6.514093,-1.14861 3.887954,5.35131 6.132935,2.477867 6.514093,-1.148611 M 25.618479,15.071923 30.534072,10.645903 37.048165,9.4972924 43.1811,11.975159 M 25.618479,15.071923 23.795253,8.7135774 25.618479,2.3552319 m 0,12.7166911 4.915593,-4.42602 1.823227,-6.3583456 6.514093,-1.14861 4.915593,-4.4260205 1.823226,-6.3583456 m -13Line truncated
id="path1963" />
<path
style="fill:none;fill-opacity:1;stroke:#660083;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:1;filter:url(#filter3478)"
d="m 22.808644,32.243735 3.505195,-5.609484 v -6.614584 l 5.945148,-2.899642 3.505195,-5.609485 V 4.8959574 M 26.313839,20.019667 22.808644,14.410183 V 7.7955994 l 3.505195,-5.6094846 m 0,17.8335522 -6.578348,0.691413 -5.945148,-2.899643 m 12.523496,2.20823 -6.578348,0.691413 -5.212363,4.072344 -5.9451479,-2.899643 -6.578348,0.691412 -5.2123625,4.072345 m 17.7358584,-1.864114 -2.26232,6.215675 -5.2123629,4.072344 -6.57834799,0.691412 M 14.523128,24.783424 l 4.594876,4.758133 1.375249,6.470039 m -5.970125,-11.228172 -5.2123619,4.072344 -2.262321,6.215675 -6.57834799,0.691412 -5.21236291,4.072344 -2.2623208,6.215675 m 14.0530317,-10.979431 1.375249,6.470039 -2.262321,6.215675 -5.21236299,4.072344 m 6.09943499,-16.758058 6.4181019,1.600212 4.594875,4.758134 m -11.0129769,-6.358346 6.4181019,1.600212 6.290842,-2.044018 4.594876,4.758133 6.418102,1.600212 6.290843,-2.044018 m -17.303821,-4.314327 4.251773,-5.067065 6.290842,-2.044019 6.418102,1.600213 m -16.960717,5.510871 -2.690393,-6.042723 0.920572,-6.55021 M 19.757389,34.627637 17.066996,28.584914 11.583258,24.886086 12.50383,18.335876 9.8134361,12.293153 4.3296981,8.5943254 M 11.583258,24.886086 4.9727041,24.655241 -0.51103409,20.956413 -3.2014275,14.91369 m 14.7846855,9.972396 -3.1053589,5.840331 -5.728397,3.307291 m 11.7736259,-9.250284 4.594876,4.758133 6.418102,1.600212 1.375249,6.470039 4.594876,4.758133 6.418102,1.600213 m -12.388227,-12.828385 6.290843,-2.044018 6.418102,1.600212 4.594875,4.758133 m -17.30382,-4.314327 0.920572,-6.55021 4.251772,-5.067065 m -5.172344,11.617275 6.290843,-2.044018 4.251772,-5.067065 6.418102,1.600212 6.290842,-2.044018 4.251773,-5.067065 m -16.960717,5.510871 0.920572,-6.550211 4.251772,-5.067065 6.290843,-2.044018 M 36.078721,24.030686 30.594983,20.331858 27.904589,14.289135 m 8.174132,9.741551 0.920572,-6.550211 -2.690394,-6.042722 4.251773,-5.0670646 0.920572,-6.55021087 L 36.79085,-6.222245 M 34.308899,11.437753 28.825161,7.7389254 26.134768,1.6962024 27.05534,-4.8540083 m 7.253559,16.2917613 -5.728397,3.307291 -6.610554,-0.230845 m -7.44682,10.269225 6.290843,-2.044019 4.251772,-5.067065 6.418102,1.600213 6.290843,-2.044019 4.251772,-5.067065 M 25.065743,17.67234 25.986315,11.12213 30.238087,6.0550654 36.52893,4.0110464 M 25.065743,17.67234 19.582005,13.973512 16.891612,7.9307904 M 25.065743,17.67234 25.986315,11.12213 23.295922,5.0794074 27.547694,0.01234263 28.468266,-6.537868 25.777873,-12.580591 M 23.295922,5.0794074 17.812184,1.3805793 15.12179,-4.6621432 16.042362,-11.212354 m 7.25356,16.2917614 -5.728397,3.307292 -6.610554,-0.230846 m 3.566157,16.6275706 6.290843,-2.044019 4.251772,-5.067065 6.418102,1.600213 6.290843,-2.044019 4.251772,-5.067065 M 25.065743,17.67234 25.986315,11.12213 30.238087,6.0550654 36.52893,4.0110464 M 25.065743,17.67234 19.582005,13.973512 16.891612,7.9307904 M 25.065743,17.67234 19.582005,13.973512 12.971451,13.742667 10.281058,7.6999444 4.7973201,4.0011164 -1.8132342,3.7702704 M 12.971451,13.742667 7.2430541,17.049958 0.63250011,16.819113 -4.851238,13.120285 m 17.822689,0.622382 0.46141,6.59847 -3.105359,5.84033 m 2.643949,-12.4388 -6.6105539,-0.230846 -5.72839699,3.307292 -5.48373811,-3.698828 -6.610554,-0.230846 -5.728397,3.307292 m 17.82268911,0.622382 -3.10535871,5.84033 -5.7283972,3.307292 -6.6105542,-0.230846 m 15.44431011,-8.916776 3.88795499,5.35131 0.46141,6.59847 m -4.34936499,-11.94978 3.88795499,5.35131 6.1329339,2.477866 0.46141,6.598471 3.887955,5.35131 6.132935,2.477867 m -10.4823,-14.427648 6.514093,-1.14861 6.132935,2.477867 3.887955,5.35131 m -16.534983,-6.680567 1.823227,-6.358345 4.915593,-4.42602 m -6.73882,10.784365 1.823227,-6.358345 -1.823227,-6.358346 4.915594,-4.4260196 1.823226,-6.3583455 -1.823226,-6.3583456 M 10.653389,11.931598 5.7377961,7.5055784 3.9145701,1.1472329 5.7377961,-5.2111127 M 10.653389,11.931598 4.5204551,14.409465 -1.9936383,13.260854 m 14.9650893,0.481813 0.46141,6.59847 3.887955,5.35131 -3.105359,5.840331 0.46141,6.59847 3.887954,5.351311 m -1.244005,-17.790112 6.132935,2.477867 3.887954,5.35131 0.46141,6.598471 m -10.482299,-14.427648 4.915593,-4.42602 6.514093,-1.14861 m -11.429686,5.57463 6.132935,2.477867 6.514093,-1.14861 3.887954,5.35131 6.132935,2.477866 6.514093,-1.14861 m -16.534982,-6.680566 4.915593,-4.426021 6.514093,-1.14861 6.132935,2.477867 m -17.562621,3.096764 -1.823227,-6.358346 1.823227,-6.358346 m 0,12.716692 4.915593,-4.426021 1.823226,-6.358345 6.514093,-1.148611 4.915593,-4.42602 1.823227,-6.3583446 M 36.706663,16.237338 34.883437,9.8789924 36.706663,3.5206474 41.622257,-0.90537307 M 36.706663,16.237338 30.19257,15.088727 25.276977,10.662707 m -12.305526,3.07996 6.132935,2.477866 6.514093,-1.14861 3.887954,5.35131 6.132935,2.477867 6.514093,-1.148611 M 25.618479,15.071923 30.534072,10.645903 37.048165,9.4972924 43.1811,11.975159 M 25.618479,15.071923 23.795253,8.7135774 25.618479,2.3552319 m 0,12.7166911 4.915593,-4.42602 1.823227,-6.3583456 6.514093,-1.14861 4.915593,-4.4260205 1.823226,-6.3583456 m -13Line truncated
id="path1457" />
<path
style="fill:#ffffff;stroke:none;stroke-width:0.999999;fill-opacity:1;opacity:0.34080547;filter:url(#filter7180)"
d="m 2.8196395,13.487358 v 1.814434 h 0.9072224 v -1.814434 z m 0,-0.438361 v 0.438361 h 0.9027049 c 0.056627,-0.373341 0.2999525,-0.641715 0.6849341,-0.68494 V 12.576412 C 4.171606,12.588092 3.9359651,12.609482 3.7268619,12.73009 V 12.580119 H 2.5928287 v 0.221591 c 0.1271733,0.03688 0.2264379,0.105395 0.2268108,0.247287 z m 2.2697943,0.803514 v 1.449281 H 5.994912 v -1.4277 c 0.00105,-0.453576 0.2811891,-1.071353 0.6804218,-1.07041 V 12.580119 C 6.2080809,12.58159 5.9864916,12.880382 5.770796,13.18388 5.4415374,12.741083 4.9515918,12.585177 4.4072785,12.580119 v 0.223391 c 0.472863,0.01423 0.691453,0.644136 0.6821553,1.049001 z m 2.2565252,0.08579 0.011504,1.363494 h 0.906576 l -0.00793,-1.568737 c 0,-0.836925 -0.7203861,-1.155232 -1.5807732,-1.156282 v 0.226734 c 0.4965643,0.0019 0.669832,0.702835 0.6706252,1.134788 z M 7.36093,11.665726 c 1.734e-4,-0.239443 0.2006985,-0.439503 0.4511107,-0.440118 0.2516834,-6.31e-4 0.4467192,0.200619 0.4470869,0.447035 4.255e-4,0.247674 -0.1895097,0.446775 -0.4497396,0.448026 -0.2614749,0.0013 -0.4486051,-0.215496 -0.448458,-0.454943 z M 7.1280887,15.758047 8.2630041,16.20843 V 15.301792 H 7.3557662 c 4.307e-4,0.116324 -0.104218,0.225663 -0.2276775,0.232263 z m -2.2680554,0 v -0.223992 c 0.1234438,-0.0066 0.2282134,-0.115939 0.2276776,-0.232263 h 0.9072168 v 0.906638 z m -2.2680608,0 1.1349052,0.450383 V 15.301792 H 2.8196553 c 4.255e-4,0.116324 -0.1042391,0.225663 -0.2276828,0.232263 z m 5.8285878,-2.779257 1.2174021,1.415784 h 0.9090396 l -0.104197,-0.11836 1.456589,-1.434322 c 0.05733,-0.05645 0.154021,-0.03347 0.233098,-0.03827 v -0.223501 h -0.907217 v 0.22682 c 0.08039,0 0.150744,0.05319 0.08034,0.133855 l -1.071628,1.091027 -0.9223293,-1.09017 c -0.068682,-0.09192 -0.00552,-0.142062 0.099159,-0.134712 v -0.22682 H 8.0499875 v 0.22682 c 0.1618006,0 0.2598202,0.04305 0.3705728,0.171851 z m 0,0 1.2174021,1.415784 h 0.9090396 l -0.104197,-0.11836 1.456589,-1.434322 c 0.05733,-0.05645 0.154021,-0.03347 0.233098,-0.03827 v -0.223501 h -0.907217 v 0.22682 c 0.08039,0 0.150744,0.05319 0.08034,0.133855 l -1.071628,1.091027 -0.9223293,-1.09017 c -0.068682,-0.09192 -0.00552,-0.142062 0.099159,-0.134712 v -0.22682 H 8.0499875 v 0.22682 c 0.1618006,0 0.2598202,0.04305 0.3705728,0.171851 z m 4.1655537,0.754268 c 0.0042,-0.916861 0.790723,-1.14876 1.587633,-1.152939 v 0.22682 c -0.424362,-0.0054 -0.680416,0.490866 -0.680416,0.83864 v 1.656213 h -0.907217 z m 0,-1.152939 v 0.907239 h 0.902715 c 0.0566,-0.373213 0.300052,-0.641801 0.684918,-0.68494 v -0.226006 c -0.235667,0.01168 -0.471297,0.03307 -0.680416,0.153678 v -0.149971 z m 0,-0.907217 v 0.907217 h 0.907217 v -0.907217 z m -0.227678,2.270689 v -0.22397 c 0.123439,-0.0066 0.228214,-0.11596 0.227678,-0.232263 h 0.907217 v 0.906617 z m 2.500834,0.43834 c -0.0099,-0.88658 0.650175,-1.801812 1.582553,-1.801812 v 0.220841 c -0.475521,0.0054 -0.675337,1.081597 -0.674118,1.593614 0.0011,0.512018 0.205778,1.597773 0.674118,1.593615 v 0.220841 c -0.964006,-0.0081 -1.57261,-0.940541 -1.582553,-1.827099 z m 2.26297,-0.894573 h 0.907217 v 1.814434 H 17.12224 Z m 0,-0.680419 h -0.226816 v -0.22682 h 1.587655 v 0.22682 h -0.453622 v 0.680419 H 17.12224 Z m 0,-1.134037 h 0.907217 v 0.907217 H 17.12224 Z m -0.227677,2.270689 1.134894,0.450384 V 13.487358 H 17.12224 c 4.31e-4,0.116303 -0.104234,0.225641 -0.227677,0.232263 z m 0.23282,-2.277868 c -1.47e-4,0.239447 0.186983,0.456201 0.448458,0.454943 0.26023,-0.0013 0.450102,-0.200352 0.449739,-0.448026 -4.3e-4,-0.246416 -0.195403,-0.447655 -0.447081,-0.447035 -0.250418,6.3e-4 -0.450943,0.200675 -0.451116,0.440118 z m -0.23282,4.092324 1.134894,0.450383 V 15.301792 H 17.12224 c 4.31e-4,0.116324 -0.104234,0.225663 -0.227677,0.232263 z m 1.727597,-2.270689 v 1.814434 h 0.907217 v -1.814434 z m 0,-0.438361 v 0.438361 h 0.9027 c 0.05664,-0.373341 0.299957,-0.641715 0.684939,-0.68494 v -0.226006 c -0.235673,0.01168 -0.471303,0.03307 -0.680422,0.153678 v -0.149971 h -1.134012 v 0.221591 c 0.127168,0.03688 0.226433,0.105395 0.226795,0.247287 z m 3.591772,3.145568 c -0.312775,-0.03266 -0.633719,-0.14112 -0.871639,-0.294541 -0.251016,-0.158307 -0.444918,-0.409044 -0.444918,-0.711621 -0.0091,-0.304849 0.203609,-0.555693 0.449162,-0.714536 0.09815,-0.0635 0.29066,-0.157128 0.372159,-0.181002 0.01886,-0.0055 0.03572,-0.01637 0.05355,-0.02458 -0.06879,-0.03939 -0.143284,-0.07299 -0.212439,-0.114289 -0.238845,-0.149478 -0.43521,-0.376556 -0.43521,-0.666638 -0.01408,-0.475864 0.507947,-0.736545 0.905951,-0.855056 0.119562,-0.02754 0.303819,-0.0519 0.393764,-0.05208 l 0.05355,-1.07e-4 v 0.22682 h -0.04145 c -0.356794,0.01792 -0.63895,0.328486 -0.63895,0.680418 -0.0047,0.353775 0.285775,0.659909 0.63895,0.680418 0.01382,0 0.02763,0 0.04145,0 v 0.221227 l -0.08945,0.01408 c -0.27352,0.03785 -0.466244,0.262823 -0.549629,0.514139 -0.05206,0.169751 -0.05625,0.372847 0,0.542341 0.04286,0.169944 0.147481,0.304056 0.278211,0.410116 0.101171,0.08212 0.231811,0.09916 0.360865,0.118125 v 0.221227 l -0.07876,-0Line truncated
id="path1602" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:6.38886px;line-height:1.25;font-family:Fyodor;-inkscape-font-specification:'Fyodor, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="7.1094408"
y="19.754057"
id="text3899"><tspan
sodipodi:role="line"
id="tspan3897"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:6.38886px;font-family:Fyodor;-inkscape-font-specification:'Fyodor, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="7.1094408"
y="19.754057">carkov</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:8.59629px;line-height:1.25;font-family:Fyodor;-inkscape-font-specification:'Fyodor, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;mix-blend-mode:normal;stroke-width:0.264583;filter:url(#filter6450)"
x="2.4766679"
y="21.932383"
id="text4629"><tspan
sodipodi:role="line"
id="tspan4627"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:8.59629px;font-family:Fyodor;-inkscape-font-specification:'Fyodor, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="2.4766679"
y="21.932383">carkov</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:8.59629px;line-height:1.25;font-family:Fyodor;-inkscape-font-specification:'Fyodor, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:0.264583"
x="2.6385608"
y="23.601313"
id="text4633"><tspan
sodipodi:role="line"
id="tspan4631"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:8.59629px;font-family:Fyodor;-inkscape-font-specification:'Fyodor, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:0.264583"
x="2.6385608"
y="23.601313">carkov</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 64 KiB

+1 -1
View File
@@ -4,4 +4,4 @@
# This is free software, see the included LICENSE for terms and conditions.
#
version = '0.1.2'
version = '0.2.0'
+5 -4
View File
@@ -61,17 +61,18 @@ def parse_arguments() -> argparse.Namespace:
chain_sub = subparsers.add_parser('chain', help="Output from a chainer")
chain_sub.add_argument('input', help="The chain file to load", type=pathlib.Path)
chain_sub.add_argument('-u', '--unweighted', help="Don't weight token selection by statistical frequency.", action='store_true')
chain_sub.add_argument('-c', '--count', help="Number of chain outputs to output", type=int, default=10)
chain_sub.add_argument('-m', '--maxlen', help="Maximum length in tokens of output (0 is unlimited)", type=int, default=0)
return parser.parse_args()
def print_chainer_output(chainer: Chain, random_state: Random):
def print_chainer_output(chainer: Chain, random_state: Random, weighted: bool = False):
if chainer.analyzer_class in JOINERS:
print(JOINERS[cast(str, chainer.analyzer_class)](chainer.walk(random_state, True)))
print(JOINERS[cast(str, chainer.analyzer_class)](chainer.walk(random_state, weighted)))
else:
print(chainer.walk(random_state, True))
print(chainer.walk(random_state, weighted))
def command_analyze(args: argparse.Namespace) -> int:
@@ -145,7 +146,7 @@ def command_chain(args: argparse.Namespace) -> int:
args.count = 1
for _ in range(0, args.count):
print_chainer_output(chainer, r)
print_chainer_output(chainer, r, not args.unweighted)
return 0
+6
View File
@@ -9,6 +9,12 @@ import nltk
from .abstract import AbstractAnalyzer
try:
nltk.sent_tokenize("foo bar")
except LookupError:
nltk.download('punkt')
class English(AbstractAnalyzer):
def __init__(self, order, filters=None):
if filters is None:
-3
View File
@@ -1,3 +0,0 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
+1 -1
View File
@@ -1,6 +1,6 @@
[metadata]
name = carkov
version = 0.1.2
version = 0.2.0
description = A markov chainer library
author = Aldercone Studio
author_email = alderconestudio@gmail.com