Skip to content

Instantly share code, notes, and snippets.

@oplatek
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oplatek/8983135 to your computer and use it in GitHub Desktop.
Save oplatek/8983135 to your computer and use it in GitHub Desktop.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Pykaldi: Demostrating Python extension and customized Kaldi decoder\n",
"===================================================================\n",
"\n",
"The Pykaldi (for of Kaldi) for building the Python wrapper and decoder\n",
"is available at:\n",
"\n",
" * https://github.com/UFAL-DSG/pykaldi\n",
"\n",
"Pykaldi itself depends on forked pyfst\n",
"\n",
" * https://github.com/UFAL-DSG/pyfst\n",
"\n",
"The decoder is used in Dialog system Alex\n",
"-----------------------------------------\n",
"https://github.com/UFAL-DSG/alex\n",
"\n",
"If you speak Czech, test it for FREE at 800 899 998!\n",
"====================================================\n",
"\n",
"More about the public transport information can be found at:\n",
"\n",
" * In English: http://ufal.mff.cuni.cz/alex-dialogue-systems-framework/\n",
" * In Czech (with updates): http://ufal.mff.cuni.cz/alex-dialogue-systems-framework/ptics\n"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from pykaldi.decoders import PyGmmLatgenWrapper\n",
"from pykaldi.utils import load_wav\n",
"from IPython.display import display # display multiple SVG in one cell\n",
"import fst # fork of pyfst: https://github.com/UFAL-DSG/pyfst\n",
"test_wav = '/ha/projects/vystadial/data/asr/cs/voip/test/all-2012-06-08-13-32-40.800581.recorded-0148.75-0150.09.wav'\n",
"test_pcm = load_wav(test_wav)\n",
"d = PyGmmLatgenWrapper()\n",
"# Settings mainly paths to AM, HCLG.fst, mfcc.conf and other settings\n",
"argv = ['--config=/ha/work/people/oplatek/alex-dsg/alex/resources/asr/voip_cs/kaldi/mfcc.conf', \n",
" '--verbose=0', '--max-mem=10000000000', '--lat-lm-scale=10', '--beam=12.0', \n",
" '--lattice-beam=6.0', '--max-active=5000', \n",
" '/ha/work/people/oplatek/alex-dsg/alex/resources/asr/voip_cs/kaldi/tri2b_bmmi.mdl', \n",
" '/ha/work/people/oplatek/alex-dsg/alex/applications/PublicTransportInfoCS/hclg/models/HCLG_tri2b_bmmi.fst', \n",
" '1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25', \n",
" '/ha/work/people/oplatek/alex-dsg/alex/resources/asr/voip_cs/kaldi/tri2b_bmmi.mat']\n",
"d.setup(argv)\n",
"\n",
"# Usually we send few frames and run forward decoding afterward\n",
"# Here we buffer all the test wav\n",
"d.frame_in(test_pcm) \n",
"# Decode until nothing is in buffer\n",
"decoded, total = d.decode(max_frames=10), 0\n",
"while decoded > 0: \n",
" total += decoded\n",
" decoded = d.decode(max_frames=10)\n",
"\n",
"d.prune_final()\n",
"utt_lik, lat = d.get_lattice()\n",
"\n",
"# Printing results\n",
"print 'The likelihood of posterior lattice is %f' % utt_lik\n",
"print 'Forward decoded grames: %d' % total\n",
"# Change integer ids to English words\n",
"lat.isyms = lat.osyms = fst.read_symbols_text('/ha/work/people/oplatek/alex-dsg/alex/applications/PublicTransportInfoCS/hclg/models/words.txt') \n",
"display(lat)\n",
"with open(test_wav+'.trn', 'r') as r:\n",
" print 'REFERENCE %s ' % r.read()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The likelihood of posterior lattice is -6694.570312\n",
"Forward decoded grames: 128\n"
]
},
{
"metadata": {},
"output_type": "display_data",
"svg": [
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\"\n",
" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\" [\n",
" <!ATTLIST svg xmlns:xlink CDATA #FIXED \"http://www.w3.org/1999/xlink\">\n",
"]>\n",
"<!-- Generated by Graphviz version 2.20.2 (Tue Jan 14 19:38:44 UTC 2014)\n",
" For user: (oplatek) Ondrej Platek -->\n",
"<!-- Title: FST Pages: 1 -->\n",
"<svg width=\"612pt\" height=\"568pt\"\n",
" viewBox=\"0.00 0.00 612.00 567.74\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(0.421488 0.421488) rotate(0) translate(4 1343)\">\n",
"<title>FST</title>\n",
"<polygon style=\"fill:white;stroke:white;\" points=\"-4,4 -4,-1343 1448,-1343 1448,4 -4,4\"/>\n",
"<!-- 0 -->\n",
"<g id=\"node1\" class=\"node\"><title>0</title>\n",
"<ellipse style=\"fill:none;stroke:black;stroke-width:2;\" cx=\"18\" cy=\"-1014\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"18\" y=\"-1009.9\" style=\"font-family:Times New Roman;font-size:14.00;\">0</text>\n",
"</g>\n",
"<!-- 1 -->\n",
"<g id=\"node3\" class=\"node\"><title>1</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"104\" cy=\"-1014\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"104\" y=\"-1009.9\" style=\"font-family:Times New Roman;font-size:14.00;\">1</text>\n",
"</g>\n",
"<!-- 0&#45;&gt;1 -->\n",
"<g id=\"edge2\" class=\"edge\"><title>0&#45;&gt;1</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M36,-1014C48,-1014 63,-1014 76,-1014\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"76,-1017.5 86,-1014 76,-1010.5 76,-1017.5\"/>\n",
"<text text-anchor=\"middle\" x=\"61\" y=\"-1018.9\" style=\"font-family:Times New Roman;font-size:14.00;\">TO</text>\n",
"</g>\n",
"<!-- 3 -->\n",
"<g id=\"node5\" class=\"node\"><title>3</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"268\" cy=\"-988\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"268\" y=\"-983.9\" style=\"font-family:Times New Roman;font-size:14.00;\">3</text>\n",
"</g>\n",
"<!-- 1&#45;&gt;3 -->\n",
"<g id=\"edge4\" class=\"edge\"><title>1&#45;&gt;3</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M122,-1011C150,-1006 206,-998 240,-993\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"240.881,-996.393 250,-991 239.508,-989.529 240.881,-996.393\"/>\n",
"<text text-anchor=\"middle\" x=\"186\" y=\"-1013.9\" style=\"font-family:Times New Roman;font-size:14.00;\">NEN\u00cd</text>\n",
"</g>\n",
"<!-- 2 -->\n",
"<g id=\"node7\" class=\"node\"><title>2</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"360\" cy=\"-1131\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"360\" y=\"-1126.9\" style=\"font-family:Times New Roman;font-size:14.00;\">2</text>\n",
"</g>\n",
"<!-- 1&#45;&gt;2 -->\n",
"<g id=\"edge6\" class=\"edge\"><title>1&#45;&gt;2</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M120,-1022C126,-1025 132,-1028 137,-1030 208,-1063 292,-1101 334,-1120\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"332.44,-1123.14 343,-1124 335.283,-1116.74 332.44,-1123.14\"/>\n",
"<text text-anchor=\"middle\" x=\"186\" y=\"-1076.9\" style=\"font-family:Times New Roman;font-size:14.00;\">NENI/57.6152</text>\n",
"</g>\n",
"<!-- 11 -->\n",
"<g id=\"node9\" class=\"node\"><title>11</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"789\" cy=\"-1141\" rx=\"23.1233\" ry=\"23.1233\"/>\n",
"<text text-anchor=\"middle\" x=\"789\" y=\"-1136.9\" style=\"font-family:Times New Roman;font-size:14.00;\">11</text>\n",
"</g>\n",
"<!-- 3&#45;&gt;11 -->\n",
"<g id=\"edge10\" class=\"edge\"><title>3&#45;&gt;11</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M273,-1005C278,-1019 287,-1037 301,-1047 343,-1076 702,-1119 751,-1131 753,-1131 755,-1132 757,-1132\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"756.508,-1135.47 767,-1134 757.881,-1128.61 756.508,-1135.47\"/>\n",
"<text text-anchor=\"middle\" x=\"515\" y=\"-1107.9\" style=\"font-family:Times New Roman;font-size:14.00;\">DNE\u0160N\u00cdM/9.19642e&#45;13</text>\n",
"</g>\n",
"<!-- 9 -->\n",
"<g id=\"node12\" class=\"node\"><title>9</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"789\" cy=\"-247\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"789\" y=\"-242.9\" style=\"font-family:Times New Roman;font-size:14.00;\">9</text>\n",
"</g>\n",
"<!-- 3&#45;&gt;9 -->\n",
"<g id=\"edge12\" class=\"edge\"><title>3&#45;&gt;9</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M270,-970C274,-928 286,-824 301,-792 420,-545 686,-327 766,-265\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"768.779,-267.219 774,-258 764.169,-261.951 768.779,-267.219\"/>\n",
"<text text-anchor=\"middle\" x=\"515\" y=\"-594.9\" style=\"font-family:Times New Roman;font-size:14.00;\">DAL\u0160\u00cd/27.7154</text>\n",
"</g>\n",
"<!-- 8 -->\n",
"<g id=\"node14\" class=\"node\"><title>8</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"1042\" cy=\"-992\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-987.9\" style=\"font-family:Times New Roman;font-size:14.00;\">8</text>\n",
"</g>\n",
"<!-- 3&#45;&gt;8 -->\n",
"<g id=\"edge14\" class=\"edge\"><title>3&#45;&gt;8</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M286,-988C389,-989 888,-991 1014,-992\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1014,-995.5 1024,-992 1014,-988.5 1014,-995.5\"/>\n",
"<text text-anchor=\"middle\" x=\"681\" y=\"-996.9\" style=\"font-family:Times New Roman;font-size:14.00;\">DNE\u0160N\u00cdMU/35.0781</text>\n",
"</g>\n",
"<!-- 7 -->\n",
"<g id=\"node16\" class=\"node\"><title>7</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"789\" cy=\"-869\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"789\" y=\"-864.9\" style=\"font-family:Times New Roman;font-size:14.00;\">7</text>\n",
"</g>\n",
"<!-- 3&#45;&gt;7 -->\n",
"<g id=\"edge16\" class=\"edge\"><title>3&#45;&gt;7</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M285,-980C290,-978 296,-976 301,-974 473,-921 685,-885 761,-874\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"761.881,-877.393 771,-872 760.508,-870.529 761.881,-877.393\"/>\n",
"<text text-anchor=\"middle\" x=\"515\" y=\"-943.9\" style=\"font-family:Times New Roman;font-size:14.00;\">SNA\u017dI/38.2294</text>\n",
"</g>\n",
"<!-- 6 -->\n",
"<g id=\"node18\" class=\"node\"><title>6</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"681\" cy=\"-720\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"681\" y=\"-715.9\" style=\"font-family:Times New Roman;font-size:14.00;\">6</text>\n",
"</g>\n",
"<!-- 3&#45;&gt;6 -->\n",
"<g id=\"edge18\" class=\"edge\"><title>3&#45;&gt;6</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M271,-970C277,-943 289,-892 301,-878 399,-771 582,-734 653,-723\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"653.398,-726.478 663,-722 652.701,-719.512 653.398,-726.478\"/>\n",
"<text text-anchor=\"middle\" x=\"360\" y=\"-888.9\" style=\"font-family:Times New Roman;font-size:14.00;\">DNE\u0160N\u00cd/50.5146</text>\n",
"</g>\n",
"<!-- 4 -->\n",
"<g id=\"node20\" class=\"node\"><title>4</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"515\" cy=\"-1034\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"515\" y=\"-1029.9\" style=\"font-family:Times New Roman;font-size:14.00;\">4</text>\n",
"</g>\n",
"<!-- 3&#45;&gt;4 -->\n",
"<g id=\"edge20\" class=\"edge\"><title>3&#45;&gt;4</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M284,-996C290,-998 295,-1001 301,-1002 366,-1021 446,-1029 487,-1032\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"486.701,-1035.49 497,-1033 487.398,-1028.52 486.701,-1035.49\"/>\n",
"<text text-anchor=\"middle\" x=\"360\" y=\"-1030.9\" style=\"font-family:Times New Roman;font-size:14.00;\">NA/53.2988</text>\n",
"</g>\n",
"<!-- 2&#45;&gt;11 -->\n",
"<g id=\"edge8\" class=\"edge\"><title>2&#45;&gt;11</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M378,-1131C444,-1133 670,-1139 756,-1140\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"756,-1143.5 766,-1140 756,-1136.5 756,-1143.5\"/>\n",
"<text text-anchor=\"middle\" x=\"515\" y=\"-1138.9\" style=\"font-family:Times New Roman;font-size:14.00;\">DNE\u0160N\u00cdM</text>\n",
"</g>\n",
"<!-- 13 -->\n",
"<g id=\"node24\" class=\"node\"><title>13</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"1042\" cy=\"-1117\" rx=\"23.1233\" ry=\"23.1233\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-1112.9\" style=\"font-family:Times New Roman;font-size:14.00;\">13</text>\n",
"</g>\n",
"<!-- 11&#45;&gt;13 -->\n",
"<g id=\"edge84\" class=\"edge\"><title>11&#45;&gt;13</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M811,-1133C816,-1132 822,-1131 827,-1130 891,-1119 967,-1116 1009,-1117\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1009,-1120.5 1019,-1117 1009,-1113.5 1009,-1120.5\"/>\n",
"<text text-anchor=\"middle\" x=\"892\" y=\"-1133.9\" style=\"font-family:Times New Roman;font-size:14.00;\">OBCI/2.20103e&#45;10</text>\n",
"</g>\n",
"<!-- 14 -->\n",
"<g id=\"node29\" class=\"node\"><title>14</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"1288\" cy=\"-725\" rx=\"23.1233\" ry=\"23.1233\"/>\n",
"<text text-anchor=\"middle\" x=\"1288\" y=\"-720.9\" style=\"font-family:Times New Roman;font-size:14.00;\">14</text>\n",
"</g>\n",
"<!-- 11&#45;&gt;14 -->\n",
"<g id=\"edge86\" class=\"edge\"><title>11&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M800,-1162C807,-1172 816,-1184 827,-1192 987,-1294 1111,-1384 1249,-1255 1267,-1238 1283,-872 1287,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1290.5,-758 1287,-748 1283.5,-758 1290.5,-758\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-1321.9\" style=\"font-family:Times New Roman;font-size:14.00;\">ASI/22.2383</text>\n",
"</g>\n",
"<!-- 12 -->\n",
"<g id=\"node59\" class=\"node\"><title>12</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"1042\" cy=\"-1189\" rx=\"23.1233\" ry=\"23.1233\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-1184.9\" style=\"font-family:Times New Roman;font-size:14.00;\">12</text>\n",
"</g>\n",
"<!-- 11&#45;&gt;12 -->\n",
"<g id=\"edge88\" class=\"edge\"><title>11&#45;&gt;12</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M812,-1145C857,-1153 957,-1173 1009,-1183\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1008.51,-1186.47 1019,-1185 1009.88,-1179.61 1008.51,-1186.47\"/>\n",
"<text text-anchor=\"middle\" x=\"892\" y=\"-1174.9\" style=\"font-family:Times New Roman;font-size:14.00;\">A/28.8408</text>\n",
"</g>\n",
"<!-- 10 -->\n",
"<g id=\"node26\" class=\"node\"><title>10</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"1042\" cy=\"-585\" rx=\"23.1233\" ry=\"23.1233\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-580.9\" style=\"font-family:Times New Roman;font-size:14.00;\">10</text>\n",
"</g>\n",
"<!-- 9&#45;&gt;10 -->\n",
"<g id=\"edge44\" class=\"edge\"><title>9&#45;&gt;10</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M797,-263C805,-277 816,-297 827,-314 891,-409 979,-513 1020,-560\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1017.78,-562.779 1027,-568 1023.05,-558.169 1017.78,-562.779\"/>\n",
"<text text-anchor=\"middle\" x=\"892\" y=\"-490.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MOC/0.0101258</text>\n",
"</g>\n",
"<!-- 9&#45;&gt;14 -->\n",
"<g id=\"edge46\" class=\"edge\"><title>9&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M794,-230C800,-214 810,-192 827,-180 904,-127 1187,-111 1249,-180 1266,-199 1282,-576 1287,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1283.5,-692 1287,-702 1290.5,-692 1283.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-145.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MO\u017dNOSTI/4.60098</text>\n",
"</g>\n",
"<!-- 9&#45;&gt;14 -->\n",
"<g id=\"edge48\" class=\"edge\"><title>9&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M793,-229C800,-202 813,-151 827,-139 971,-18 1123,2 1249,-136 1268,-157 1283,-570 1287,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1283.5,-692 1287,-702 1290.5,-692 1283.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-59.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MOST\u011a/10.3305</text>\n",
"</g>\n",
"<!-- 9&#45;&gt;14 -->\n",
"<g id=\"edge50\" class=\"edge\"><title>9&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M806,-255C812,-257 820,-260 827,-261 839,-264 1241,-278 1249,-286 1279,-315 1286,-594 1288,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1284.5,-692 1288,-702 1291.5,-692 1284.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-281.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MAP\u011a/15.9789</text>\n",
"</g>\n",
"<!-- 9&#45;&gt;14 -->\n",
"<g id=\"edge52\" class=\"edge\"><title>9&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M807,-245C885,-237 1190,-209 1249,-274 1277,-306 1285,-593 1288,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1284.5,-692 1288,-702 1291.5,-692 1284.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-239.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MOSTEM/29.9447</text>\n",
"</g>\n",
"<!-- 9&#45;&gt;14 -->\n",
"<g id=\"edge54\" class=\"edge\"><title>9&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M806,-239C812,-236 820,-233 827,-231 890,-215 908,-217 972,-212 1096,-204 1165,-143 1249,-233 1281,-267 1287,-587 1288,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1284.5,-692 1288,-702 1291.5,-692 1284.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-219.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MOKR\u00dd/30.9936</text>\n",
"</g>\n",
"<!-- 8&#45;&gt;14 -->\n",
"<g id=\"edge34\" class=\"edge\"><title>8&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1058,-984C1075,-976 1102,-964 1127,-956 1180,-941 1211,-973 1249,-933 1273,-909 1283,-811 1286,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1289.49,-758.299 1287,-748 1282.52,-757.602 1289.49,-758.299\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-963.9\" style=\"font-family:Times New Roman;font-size:14.00;\">T\u0158I/1.73664e&#45;05</text>\n",
"</g>\n",
"<!-- 8&#45;&gt;14 -->\n",
"<g id=\"edge36\" class=\"edge\"><title>8&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1053,-977C1068,-959 1096,-928 1127,-912 1177,-888 1209,-931 1249,-893 1269,-875 1280,-802 1285,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1288.49,-758.299 1286,-748 1281.52,-757.602 1288.49,-758.299\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-919.9\" style=\"font-family:Times New Roman;font-size:14.00;\">SI/11.1738</text>\n",
"</g>\n",
"<!-- 8&#45;&gt;14 -->\n",
"<g id=\"edge38\" class=\"edge\"><title>8&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1055,-1005C1070,-1020 1098,-1043 1127,-1053 1179,-1069 1209,-1089 1249,-1053 1271,-1034 1283,-838 1287,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1290.5,-758 1287,-748 1283.5,-758 1290.5,-758\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-1075.9\" style=\"font-family:Times New Roman;font-size:14.00;\">CHCI/12.834</text>\n",
"</g>\n",
"<!-- 8&#45;&gt;14 -->\n",
"<g id=\"edge40\" class=\"edge\"><title>8&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1059,-998C1076,-1003 1103,-1011 1127,-1013 1154,-1017 1229,-1031 1249,-1013 1268,-997 1282,-831 1286,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1289.49,-758.299 1287,-748 1282.52,-757.602 1289.49,-758.299\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-1028.9\" style=\"font-family:Times New Roman;font-size:14.00;\">VSI/14.2315</text>\n",
"</g>\n",
"<!-- 8&#45;&gt;14 -->\n",
"<g id=\"edge42\" class=\"edge\"><title>8&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1060,-992C1108,-990 1236,-986 1249,-973 1265,-959 1279,-822 1285,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1288.49,-758.299 1286,-748 1281.52,-757.602 1288.49,-758.299\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-994.9\" style=\"font-family:Times New Roman;font-size:14.00;\">T\u0158\u00cdDY/20.2861</text>\n",
"</g>\n",
"<!-- 7&#45;&gt;10 -->\n",
"<g id=\"edge28\" class=\"edge\"><title>7&#45;&gt;10</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M799,-854C806,-842 817,-825 827,-812 891,-733 976,-648 1018,-608\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1020.4,-610.546 1025,-601 1015.45,-605.596 1020.4,-610.546\"/>\n",
"<text text-anchor=\"middle\" x=\"892\" y=\"-820.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MOC/3.29893e&#45;05</text>\n",
"</g>\n",
"<!-- 7&#45;&gt;14 -->\n",
"<g id=\"edge30\" class=\"edge\"><title>7&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M807,-868C840,-866 912,-861 972,-857 1003,-856 1225,-862 1249,-843 1262,-833 1274,-789 1282,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1285.47,-758.492 1284,-748 1278.61,-757.119 1285.47,-758.492\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-864.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MOST\u011a/10.3194</text>\n",
"</g>\n",
"<!-- 7&#45;&gt;14 -->\n",
"<g id=\"edge32\" class=\"edge\"><title>7&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M806,-874C813,-876 820,-877 827,-878 885,-885 900,-879 957,-878 1022,-878 1199,-906 1249,-865 1266,-852 1278,-795 1284,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1287.49,-758.299 1285,-748 1280.52,-757.602 1287.49,-758.299\"/>\n",
"<text text-anchor=\"middle\" x=\"1042\" y=\"-893.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MAP\u011a/20.0821</text>\n",
"</g>\n",
"<!-- 6&#45;&gt;10 -->\n",
"<g id=\"edge26\" class=\"edge\"><title>6&#45;&gt;10</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M698,-714C754,-693 937,-625 1010,-597\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1012.02,-599.964 1020,-593 1009.42,-593.464 1012.02,-599.964\"/>\n",
"<text text-anchor=\"middle\" x=\"789\" y=\"-693.9\" style=\"font-family:Times New Roman;font-size:14.00;\">MOC</text>\n",
"</g>\n",
"<!-- 5 -->\n",
"<g id=\"node22\" class=\"node\"><title>5</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"789\" cy=\"-1064\" rx=\"18\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"789\" y=\"-1059.9\" style=\"font-family:Times New Roman;font-size:14.00;\">5</text>\n",
"</g>\n",
"<!-- 4&#45;&gt;5 -->\n",
"<g id=\"edge22\" class=\"edge\"><title>4&#45;&gt;5</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M533,-1035C573,-1038 670,-1045 751,-1057 754,-1057 758,-1058 761,-1058\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"760.508,-1061.47 771,-1060 761.881,-1054.61 760.508,-1061.47\"/>\n",
"<text text-anchor=\"middle\" x=\"681\" y=\"-1060.9\" style=\"font-family:Times New Roman;font-size:14.00;\">\u010c\u00cdM</text>\n",
"</g>\n",
"<!-- 5&#45;&gt;13 -->\n",
"<g id=\"edge24\" class=\"edge\"><title>5&#45;&gt;13</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M807,-1067C838,-1072 903,-1083 957,-1095 975,-1098 994,-1104 1010,-1108\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1009.42,-1111.48 1020,-1111 1011.43,-1104.77 1009.42,-1111.48\"/>\n",
"<text text-anchor=\"middle\" x=\"892\" y=\"-1098.9\" style=\"font-family:Times New Roman;font-size:14.00;\">OBCI</text>\n",
"</g>\n",
"<!-- 13&#45;&gt;14 -->\n",
"<g id=\"edge96\" class=\"edge\"><title>13&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1065,-1116C1117,-1113 1236,-1106 1249,-1093 1272,-1069 1283,-844 1287,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1290.5,-758 1287,-748 1283.5,-758 1290.5,-758\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-1114.9\" style=\"font-family:Times New Roman;font-size:14.00;\">_NOISE_/51.7646</text>\n",
"</g>\n",
"<!-- 15 -->\n",
"<g id=\"node65\" class=\"node\"><title>15</title>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"1417\" cy=\"-1118\" rx=\"23.1964\" ry=\"23.1964\"/>\n",
"<ellipse style=\"fill:none;stroke:black;\" cx=\"1417\" cy=\"-1118\" rx=\"27.1237\" ry=\"27.1237\"/>\n",
"<text text-anchor=\"middle\" x=\"1417\" y=\"-1113.9\" style=\"font-family:Times New Roman;font-size:14.00;\">15</text>\n",
"</g>\n",
"<!-- 13&#45;&gt;15 -->\n",
"<g id=\"edge98\" class=\"edge\"><title>13&#45;&gt;15</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1064,-1124C1080,-1130 1101,-1140 1112,-1157 1137,-1192 1095,-1224 1127,-1253 1169,-1288 1198,-1271 1249,-1253 1309,-1232 1363,-1180 1393,-1147\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1396.05,-1148.83 1400,-1139 1390.78,-1144.22 1396.05,-1148.83\"/>\n",
"<text text-anchor=\"middle\" x=\"1288\" y=\"-1248.9\" style=\"font-family:Times New Roman;font-size:14.00;\">&lt;eps&gt;</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge56\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1048,-608C1060,-659 1094,-780 1127,-803 1172,-834 1203,-832 1249,-803 1265,-793 1275,-774 1281,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1284.48,-758.584 1284,-748 1277.77,-756.573 1284.48,-758.584\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-831.9\" style=\"font-family:Times New Roman;font-size:14.00;\">I/3.39578e&#45;05</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge58\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1045,-608C1052,-648 1072,-729 1127,-763 1173,-792 1199,-784 1249,-763 1256,-760 1262,-756 1267,-751\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1269.4,-753.546 1274,-744 1264.45,-748.596 1269.4,-753.546\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-787.9\" style=\"font-family:Times New Roman;font-size:14.00;\">JI/10.6016</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge60\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1048,-607C1059,-640 1083,-698 1127,-723 1167,-746 1222,-740 1256,-733\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1256.88,-736.393 1266,-731 1255.51,-729.529 1256.88,-736.393\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-745.9\" style=\"font-family:Times New Roman;font-size:14.00;\">JE/12.3506</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge62\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1053,-605C1068,-628 1094,-665 1127,-683 1176,-710 1198,-684 1249,-702 1253,-704 1256,-705 1260,-707\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1258.56,-710.203 1269,-712 1261.96,-704.084 1258.56,-710.203\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-706.9\" style=\"font-family:Times New Roman;font-size:14.00;\">CHCI/12.3594</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge64\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1059,-600C1076,-614 1102,-633 1127,-643 1179,-664 1204,-632 1249,-662 1261,-670 1270,-682 1276,-694\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1272.74,-695.283 1280,-703 1279.14,-692.44 1272.74,-695.283\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-666.9\" style=\"font-family:Times New Roman;font-size:14.00;\">T\u0158I/14.8448</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge66\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1065,-590C1082,-594 1106,-600 1127,-603 1181,-613 1207,-588 1249,-622 1271,-639 1280,-669 1284,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1280.61,-692.881 1286,-702 1287.47,-691.508 1280.61,-692.881\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-626.9\" style=\"font-family:Times New Roman;font-size:14.00;\">SI/16.084</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge68\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1065,-581C1113,-574 1221,-561 1249,-582 1267,-596 1278,-654 1284,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1280.52,-692.398 1285,-702 1287.49,-691.701 1280.52,-692.398\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-586.9\" style=\"font-family:Times New Roman;font-size:14.00;\">JEDE/20.336</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge70\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1062,-573C1102,-550 1194,-507 1249,-551 1270,-569 1281,-647 1285,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1281.52,-692.398 1286,-702 1288.49,-691.701 1281.52,-692.398\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-555.9\" style=\"font-family:Times New Roman;font-size:14.00;\">TY/20.4678</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge72\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1056,-567C1072,-549 1098,-523 1127,-512 1178,-494 1208,-478 1249,-512 1276,-534 1284,-638 1287,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1283.5,-692 1287,-702 1290.5,-692 1283.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-519.9\" style=\"font-family:Times New Roman;font-size:14.00;\">JET/20.6397</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge74\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1051,-564C1063,-537 1089,-492 1127,-472 1176,-448 1208,-437 1249,-472 1266,-486 1280,-627 1285,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1281.52,-692.398 1286,-702 1288.49,-691.701 1281.52,-692.398\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-476.9\" style=\"font-family:Times New Roman;font-size:14.00;\">J\u00cd/23.8955</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge76\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1047,-562C1056,-527 1079,-460 1127,-430 1174,-403 1209,-395 1249,-430 1269,-447 1282,-618 1286,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1282.52,-692.398 1287,-702 1289.49,-691.701 1282.52,-692.398\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-434.9\" style=\"font-family:Times New Roman;font-size:14.00;\">_NOISE_/25.0743</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge78\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1044,-562C1049,-519 1068,-427 1127,-387 1150,-373 1229,-369 1249,-387 1272,-408 1283,-610 1287,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1283.5,-692 1287,-702 1290.5,-692 1283.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-391.9\" style=\"font-family:Times New Roman;font-size:14.00;\">\u010cTY\u0158I/26.5176</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge80\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1047,-562C1059,-509 1092,-380 1127,-355 1172,-325 1209,-319 1249,-355 1274,-378 1284,-606 1287,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1283.5,-692 1287,-702 1290.5,-692 1283.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-362.9\" style=\"font-family:Times New Roman;font-size:14.00;\">\u00cd/27.1875</text>\n",
"</g>\n",
"<!-- 10&#45;&gt;14 -->\n",
"<g id=\"edge82\" class=\"edge\"><title>10&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1046,-562C1056,-502 1086,-341 1127,-310 1171,-278 1209,-274 1249,-310 1278,-336 1285,-597 1288,-692\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1284.5,-692 1288,-702 1291.5,-692 1284.5,-692\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-314.9\" style=\"font-family:Times New Roman;font-size:14.00;\">VSI/27.9092</text>\n",
"</g>\n",
"<!-- 14&#45;&gt;15 -->\n",
"<g id=\"edge100\" class=\"edge\"><title>14&#45;&gt;15</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1295,-747C1316,-812 1379,-1003 1405,-1082\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1401.77,-1083.43 1408,-1092 1408.48,-1081.42 1401.77,-1083.43\"/>\n",
"<text text-anchor=\"middle\" x=\"1351\" y=\"-984.9\" style=\"font-family:Times New Roman;font-size:14.00;\">&lt;eps&gt;</text>\n",
"</g>\n",
"<!-- 12&#45;&gt;14 -->\n",
"<g id=\"edge90\" class=\"edge\"><title>12&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1065,-1191C1114,-1194 1224,-1198 1249,-1173 1279,-1143 1286,-857 1288,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1291.5,-758 1288,-748 1284.5,-758 1291.5,-758\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-1195.9\" style=\"font-family:Times New Roman;font-size:14.00;\">T\u0158I/0.0322865</text>\n",
"</g>\n",
"<!-- 12&#45;&gt;14 -->\n",
"<g id=\"edge92\" class=\"edge\"><title>12&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1063,-1178C1080,-1170 1104,-1158 1127,-1152 1180,-1136 1212,-1172 1249,-1132 1275,-1104 1284,-850 1287,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1290.5,-758 1287,-748 1283.5,-758 1290.5,-758\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-1155.9\" style=\"font-family:Times New Roman;font-size:14.00;\">TY/3.44928</text>\n",
"</g>\n",
"<!-- 12&#45;&gt;14 -->\n",
"<g id=\"edge94\" class=\"edge\"><title>12&#45;&gt;14</title>\n",
"<path style=\"fill:none;stroke:black;\" d=\"M1062,-1200C1103,-1221 1197,-1260 1249,-1213 1265,-1198 1282,-865 1287,-758\"/>\n",
"<polygon style=\"fill:black;stroke:black;\" points=\"1290.5,-758 1287,-748 1283.5,-758 1290.5,-758\"/>\n",
"<text text-anchor=\"middle\" x=\"1188\" y=\"-1237.9\" style=\"font-family:Times New Roman;font-size:14.00;\">CHCI/12.9874</text>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text": [
"<LogVectorFst with 16 states>"
]
},
{
"output_type": "stream",
"stream": "stdout",
"text": [
"REFERENCE TO NEN\u00cd V NA\u0160\u00cd MOCI\n",
" \n"
]
}
],
"prompt_number": 2
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment