ekms 8.0.0-beta.3 → 8.0.0-beta.31
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +2542 -1375
- package/common/animals.js +2 -2
- package/common/avatar.js +2 -2
- package/common/characters.js +9 -11
- package/common/colors.instance.json +6646 -3529
- package/common/colors.js +2 -2
- package/common/colors.test.json +345 -780
- package/common/comparable.js +2 -15
- package/common/concept.js +17 -11
- package/common/countable.js +5 -5
- package/common/crew.instance.json +12534 -6597
- package/common/crew.js +4 -4
- package/common/crew.test.json +714 -452
- package/common/currency.js +7 -7
- package/common/dialogues.js +53 -138
- package/common/dimension.instance.json +246 -265
- package/common/dimension.js +12 -12
- package/common/dimension.test.json +446 -1640
- package/common/edible.instance.json +19308 -10008
- package/common/edible.js +2 -2
- package/common/emotions.instance.json +122 -129
- package/common/emotions.js +4 -4
- package/common/events.js +6 -6
- package/common/fastfood.instance.json +219409 -111252
- package/common/fastfood.js +24 -24
- package/common/formulas.instance.json +222 -256
- package/common/formulas.js +14 -14
- package/common/gdefaults.js +13 -13
- package/common/help.js +4 -4
- package/common/help.test.json +10 -22
- package/common/helpers/concept.js +9 -6
- package/common/helpers/dialogues.js +2 -3
- package/common/helpers/properties.js +48 -58
- package/common/hierarchy.js +12 -16
- package/common/javascript.js +8 -8
- package/common/kirk.instance.json +564 -290
- package/common/kirk.js +2 -2
- package/common/length.instance.json +5153 -4677
- package/common/length.js +2 -2
- package/common/math.instance.json +152 -1169
- package/common/math.js +11 -11
- package/common/meta.js +22 -29
- package/common/negation.instance.json +2 -0
- package/common/negation.js +38 -0
- package/common/negation.test.json +308 -0
- package/common/numbers.js +3 -3
- package/common/ordering.instance.json +292 -230
- package/common/ordering.js +5 -5
- package/common/people.instance.json +1902 -1015
- package/common/people.js +4 -5
- package/common/percentages.instance.json +2 -0
- package/common/percentages.js +57 -0
- package/common/percentages.test.json +751 -0
- package/common/pipboy.instance.json +7720 -6386
- package/common/pipboy.js +29 -32
- package/common/pokemon.instance.json +3954 -2081
- package/common/pokemon.js +4 -4
- package/common/pos.js +1 -1
- package/common/pressure.instance.json +1265 -1193
- package/common/pressure.js +2 -2
- package/common/properties.instance.json +106 -61
- package/common/properties.js +54 -125
- package/common/punctuation.js +2 -2
- package/common/reports.instance.json +557 -559
- package/common/reports.js +54 -74
- package/common/scorekeeper.js +13 -21
- package/common/sdefaults.js +13 -3
- package/common/sizeable.js +2 -2
- package/common/spock.instance.json +564 -290
- package/common/spock.js +2 -2
- package/common/stgame.js +13 -9
- package/common/stm.js +4 -4
- package/common/tell.js +10 -10
- package/common/temperature.instance.json +1297 -1209
- package/common/temperature.js +2 -2
- package/common/tester.js +2 -2
- package/common/testing.js +5 -5
- package/common/time.js +7 -7
- package/common/tokenize.js +1 -1
- package/common/ui.instance.json +238 -259
- package/common/ui.js +9 -9
- package/common/weight.instance.json +4905 -4166
- package/common/weight.js +2 -2
- package/common/yesno.js +1 -1
- package/main.js +51 -46
- package/package.json +13 -6
@@ -95,6 +95,7 @@
|
|
95
95
|
"hierarchy": "hierarchy2",
|
96
96
|
"math": "math2",
|
97
97
|
"meta": "meta2",
|
98
|
+
"negation": "negation2",
|
98
99
|
"numbers": "numbers2",
|
99
100
|
"pos": "pos2",
|
100
101
|
"properties": "properties2",
|
@@ -136,6 +137,8 @@
|
|
136
137
|
},
|
137
138
|
"meta2": {
|
138
139
|
},
|
140
|
+
"negation2": {
|
141
|
+
},
|
139
142
|
"numbers2": {
|
140
143
|
},
|
141
144
|
"pos2": {
|
@@ -164,15 +167,6 @@
|
|
164
167
|
"ifAble": [
|
165
168
|
"orAble"
|
166
169
|
],
|
167
|
-
"mathematical_operator": [
|
168
|
-
"*",
|
169
|
-
"+",
|
170
|
-
"/",
|
171
|
-
"-"
|
172
|
-
],
|
173
|
-
"notAble": [
|
174
|
-
"unknown"
|
175
|
-
],
|
176
170
|
"object": [
|
177
171
|
"unknown",
|
178
172
|
"what",
|
@@ -259,7 +253,6 @@
|
|
259
253
|
"a",
|
260
254
|
"articlePOS",
|
261
255
|
"the",
|
262
|
-
"notAble",
|
263
256
|
"whatAble",
|
264
257
|
"is",
|
265
258
|
"toAble",
|
@@ -271,28 +264,11 @@
|
|
271
264
|
"number",
|
272
265
|
"orAble",
|
273
266
|
"ifAble",
|
274
|
-
"*",
|
275
|
-
"mathematical_operator",
|
276
|
-
"+",
|
277
|
-
"/",
|
278
|
-
"-",
|
279
267
|
"formula",
|
280
268
|
"dimension",
|
281
269
|
"unit"
|
282
270
|
],
|
283
271
|
"parents": {
|
284
|
-
"*": [
|
285
|
-
"mathematical_operator"
|
286
|
-
],
|
287
|
-
"+": [
|
288
|
-
"mathematical_operator"
|
289
|
-
],
|
290
|
-
"-": [
|
291
|
-
"mathematical_operator"
|
292
|
-
],
|
293
|
-
"/": [
|
294
|
-
"mathematical_operator"
|
295
|
-
],
|
296
272
|
"a": [
|
297
273
|
"articlePOS"
|
298
274
|
],
|
@@ -383,7 +359,6 @@
|
|
383
359
|
"unknown": [
|
384
360
|
"hierarchyAble",
|
385
361
|
"object",
|
386
|
-
"notAble",
|
387
362
|
"theAble",
|
388
363
|
"queryable"
|
389
364
|
],
|
@@ -407,14 +382,6 @@
|
|
407
382
|
"initHandlers": [
|
408
383
|
],
|
409
384
|
"root": {
|
410
|
-
"*": {
|
411
|
-
},
|
412
|
-
"+": {
|
413
|
-
},
|
414
|
-
"-": {
|
415
|
-
},
|
416
|
-
"/": {
|
417
|
-
},
|
418
385
|
"a": {
|
419
386
|
},
|
420
387
|
"articlePOS": {
|
@@ -443,12 +410,8 @@
|
|
443
410
|
},
|
444
411
|
"it": {
|
445
412
|
},
|
446
|
-
"mathematical_operator": {
|
447
|
-
},
|
448
413
|
"modifies": {
|
449
414
|
},
|
450
|
-
"notAble": {
|
451
|
-
},
|
452
415
|
"noun": {
|
453
416
|
},
|
454
417
|
"number": {
|
@@ -571,6 +534,8 @@
|
|
571
534
|
"marker": "is",
|
572
535
|
"number": "many",
|
573
536
|
"one": {
|
537
|
+
"default": true,
|
538
|
+
"isList": true,
|
574
539
|
"level": 1,
|
575
540
|
"listable": true,
|
576
541
|
"marker": "list",
|
@@ -579,7 +544,7 @@
|
|
579
544
|
"end": 30,
|
580
545
|
"start": 0
|
581
546
|
},
|
582
|
-
"text": "dimension and unit
|
547
|
+
"text": "dimension and unit",
|
583
548
|
"types": [
|
584
549
|
"list",
|
585
550
|
"unknown"
|
@@ -587,7 +552,7 @@
|
|
587
552
|
"value": [
|
588
553
|
{
|
589
554
|
"dead": true,
|
590
|
-
"level":
|
555
|
+
"level": 1,
|
591
556
|
"marker": "unknown",
|
592
557
|
"range": {
|
593
558
|
"end": 8,
|
@@ -600,7 +565,7 @@
|
|
600
565
|
},
|
601
566
|
{
|
602
567
|
"dead": true,
|
603
|
-
"level":
|
568
|
+
"level": 1,
|
604
569
|
"marker": "unknown",
|
605
570
|
"range": {
|
606
571
|
"end": 17,
|
@@ -611,7 +576,8 @@
|
|
611
576
|
"value": "unit",
|
612
577
|
"word": "unit"
|
613
578
|
}
|
614
|
-
]
|
579
|
+
],
|
580
|
+
"word": "and"
|
615
581
|
},
|
616
582
|
"range": {
|
617
583
|
"end": 30,
|
@@ -713,140 +679,6 @@
|
|
713
679
|
""
|
714
680
|
]
|
715
681
|
},
|
716
|
-
{
|
717
|
-
"context": {
|
718
|
-
"dead": true,
|
719
|
-
"level": 2,
|
720
|
-
"marker": "is",
|
721
|
-
"number": "many",
|
722
|
-
"one": {
|
723
|
-
"level": 1,
|
724
|
-
"listable": true,
|
725
|
-
"marker": "list",
|
726
|
-
"number": "many",
|
727
|
-
"range": {
|
728
|
-
"end": 37,
|
729
|
-
"start": 0
|
730
|
-
},
|
731
|
-
"text": "* +",
|
732
|
-
"types": [
|
733
|
-
"list",
|
734
|
-
"unknown"
|
735
|
-
],
|
736
|
-
"value": [
|
737
|
-
{
|
738
|
-
"dead": true,
|
739
|
-
"level": 1,
|
740
|
-
"marker": "unknown",
|
741
|
-
"range": {
|
742
|
-
"end": 0,
|
743
|
-
"start": 0
|
744
|
-
},
|
745
|
-
"text": "*",
|
746
|
-
"unknown": true,
|
747
|
-
"value": "*",
|
748
|
-
"word": "*"
|
749
|
-
},
|
750
|
-
{
|
751
|
-
"dead": true,
|
752
|
-
"level": 1,
|
753
|
-
"marker": "unknown",
|
754
|
-
"range": {
|
755
|
-
"end": 2,
|
756
|
-
"start": 2
|
757
|
-
},
|
758
|
-
"text": "+",
|
759
|
-
"unknown": true,
|
760
|
-
"value": "+",
|
761
|
-
"word": "+"
|
762
|
-
},
|
763
|
-
{
|
764
|
-
"dead": true,
|
765
|
-
"level": 2,
|
766
|
-
"marker": "unknown",
|
767
|
-
"range": {
|
768
|
-
"end": 4,
|
769
|
-
"start": 4
|
770
|
-
},
|
771
|
-
"text": "/",
|
772
|
-
"unknown": true,
|
773
|
-
"value": "/",
|
774
|
-
"word": "/"
|
775
|
-
},
|
776
|
-
{
|
777
|
-
"dead": true,
|
778
|
-
"level": 2,
|
779
|
-
"marker": "unknown",
|
780
|
-
"range": {
|
781
|
-
"end": 10,
|
782
|
-
"start": 10
|
783
|
-
},
|
784
|
-
"text": "-",
|
785
|
-
"unknown": true,
|
786
|
-
"value": "-",
|
787
|
-
"word": "-"
|
788
|
-
}
|
789
|
-
]
|
790
|
-
},
|
791
|
-
"range": {
|
792
|
-
"end": 37,
|
793
|
-
"start": 0
|
794
|
-
},
|
795
|
-
"text": "* + / and - are mathematical operators",
|
796
|
-
"topLevel": true,
|
797
|
-
"touchedBy": [
|
798
|
-
"math#call2",
|
799
|
-
"instance1#math#call2",
|
800
|
-
"instance1#formulas#call2",
|
801
|
-
"instance1#dimension#call2"
|
802
|
-
],
|
803
|
-
"two": {
|
804
|
-
"atomic": true,
|
805
|
-
"concept": true,
|
806
|
-
"dead": true,
|
807
|
-
"level": 1,
|
808
|
-
"marker": "mathematical_operator",
|
809
|
-
"modifier_mathematical": {
|
810
|
-
"level": 0,
|
811
|
-
"marker": "mathematical",
|
812
|
-
"range": {
|
813
|
-
"end": 27,
|
814
|
-
"start": 16
|
815
|
-
},
|
816
|
-
"text": "mathematical",
|
817
|
-
"types": [
|
818
|
-
"mathematical"
|
819
|
-
],
|
820
|
-
"value": "mathematical",
|
821
|
-
"word": "mathematical"
|
822
|
-
},
|
823
|
-
"modifiers": [
|
824
|
-
"modifier_mathematical"
|
825
|
-
],
|
826
|
-
"number": "many",
|
827
|
-
"range": {
|
828
|
-
"end": 37,
|
829
|
-
"start": 16
|
830
|
-
},
|
831
|
-
"text": "mathematical operators",
|
832
|
-
"types": [
|
833
|
-
"mathematical_operator",
|
834
|
-
"operator"
|
835
|
-
],
|
836
|
-
"value": "mathematical_operator",
|
837
|
-
"word": "operators"
|
838
|
-
},
|
839
|
-
"word": "are"
|
840
|
-
},
|
841
|
-
"generatedParenthesized": [
|
842
|
-
],
|
843
|
-
"paraphrases": "*, +, / and - are mathematical operators",
|
844
|
-
"paraphrasesParenthesized": [
|
845
|
-
],
|
846
|
-
"responses": [
|
847
|
-
""
|
848
|
-
]
|
849
|
-
},
|
850
682
|
{
|
851
683
|
"context": {
|
852
684
|
"concept": {
|
@@ -970,6 +802,7 @@
|
|
970
802
|
"hierarchy": "hierarchy2",
|
971
803
|
"math": "math2",
|
972
804
|
"meta": "meta2",
|
805
|
+
"negation": "negation2",
|
973
806
|
"numbers": "numbers2",
|
974
807
|
"pos": "pos2",
|
975
808
|
"properties": "properties2",
|
@@ -1011,6 +844,8 @@
|
|
1011
844
|
},
|
1012
845
|
"meta2": {
|
1013
846
|
},
|
847
|
+
"negation2": {
|
848
|
+
},
|
1014
849
|
"numbers2": {
|
1015
850
|
},
|
1016
851
|
"pos2": {
|
@@ -1039,15 +874,6 @@
|
|
1039
874
|
"ifAble": [
|
1040
875
|
"orAble"
|
1041
876
|
],
|
1042
|
-
"mathematical_operator": [
|
1043
|
-
"*",
|
1044
|
-
"+",
|
1045
|
-
"/",
|
1046
|
-
"-"
|
1047
|
-
],
|
1048
|
-
"notAble": [
|
1049
|
-
"unknown"
|
1050
|
-
],
|
1051
877
|
"object": [
|
1052
878
|
"unknown",
|
1053
879
|
"what",
|
@@ -1134,7 +960,6 @@
|
|
1134
960
|
"a",
|
1135
961
|
"articlePOS",
|
1136
962
|
"the",
|
1137
|
-
"notAble",
|
1138
963
|
"whatAble",
|
1139
964
|
"is",
|
1140
965
|
"toAble",
|
@@ -1146,28 +971,11 @@
|
|
1146
971
|
"number",
|
1147
972
|
"orAble",
|
1148
973
|
"ifAble",
|
1149
|
-
"*",
|
1150
|
-
"mathematical_operator",
|
1151
|
-
"+",
|
1152
|
-
"/",
|
1153
|
-
"-",
|
1154
974
|
"formula",
|
1155
975
|
"dimension",
|
1156
976
|
"unit"
|
1157
977
|
],
|
1158
978
|
"parents": {
|
1159
|
-
"*": [
|
1160
|
-
"mathematical_operator"
|
1161
|
-
],
|
1162
|
-
"+": [
|
1163
|
-
"mathematical_operator"
|
1164
|
-
],
|
1165
|
-
"-": [
|
1166
|
-
"mathematical_operator"
|
1167
|
-
],
|
1168
|
-
"/": [
|
1169
|
-
"mathematical_operator"
|
1170
|
-
],
|
1171
979
|
"a": [
|
1172
980
|
"articlePOS"
|
1173
981
|
],
|
@@ -1258,7 +1066,6 @@
|
|
1258
1066
|
"unknown": [
|
1259
1067
|
"hierarchyAble",
|
1260
1068
|
"object",
|
1261
|
-
"notAble",
|
1262
1069
|
"theAble",
|
1263
1070
|
"queryable"
|
1264
1071
|
],
|
@@ -1282,14 +1089,6 @@
|
|
1282
1089
|
"initHandlers": [
|
1283
1090
|
],
|
1284
1091
|
"root": {
|
1285
|
-
"*": {
|
1286
|
-
},
|
1287
|
-
"+": {
|
1288
|
-
},
|
1289
|
-
"-": {
|
1290
|
-
},
|
1291
|
-
"/": {
|
1292
|
-
},
|
1293
1092
|
"a": {
|
1294
1093
|
},
|
1295
1094
|
"articlePOS": {
|
@@ -1318,12 +1117,8 @@
|
|
1318
1117
|
},
|
1319
1118
|
"it": {
|
1320
1119
|
},
|
1321
|
-
"mathematical_operator": {
|
1322
|
-
},
|
1323
1120
|
"modifies": {
|
1324
1121
|
},
|
1325
|
-
"notAble": {
|
1326
|
-
},
|
1327
1122
|
"noun": {
|
1328
1123
|
},
|
1329
1124
|
"number": {
|
@@ -1429,6 +1224,8 @@
|
|
1429
1224
|
"marker": "is",
|
1430
1225
|
"number": "many",
|
1431
1226
|
"one": {
|
1227
|
+
"default": true,
|
1228
|
+
"isList": true,
|
1432
1229
|
"level": 1,
|
1433
1230
|
"listable": true,
|
1434
1231
|
"marker": "list",
|
@@ -1437,7 +1234,7 @@
|
|
1437
1234
|
"end": 30,
|
1438
1235
|
"start": 0
|
1439
1236
|
},
|
1440
|
-
"text": "dimension and unit
|
1237
|
+
"text": "dimension and unit",
|
1441
1238
|
"types": [
|
1442
1239
|
"list",
|
1443
1240
|
"unknown"
|
@@ -1445,7 +1242,7 @@
|
|
1445
1242
|
"value": [
|
1446
1243
|
{
|
1447
1244
|
"dead": true,
|
1448
|
-
"level":
|
1245
|
+
"level": 1,
|
1449
1246
|
"marker": "unknown",
|
1450
1247
|
"range": {
|
1451
1248
|
"end": 8,
|
@@ -1458,7 +1255,7 @@
|
|
1458
1255
|
},
|
1459
1256
|
{
|
1460
1257
|
"dead": true,
|
1461
|
-
"level":
|
1258
|
+
"level": 1,
|
1462
1259
|
"marker": "unknown",
|
1463
1260
|
"range": {
|
1464
1261
|
"end": 17,
|
@@ -1469,7 +1266,8 @@
|
|
1469
1266
|
"value": "unit",
|
1470
1267
|
"word": "unit"
|
1471
1268
|
}
|
1472
|
-
]
|
1269
|
+
],
|
1270
|
+
"word": "and"
|
1473
1271
|
},
|
1474
1272
|
"range": {
|
1475
1273
|
"end": 30,
|
@@ -1571,140 +1369,6 @@
|
|
1571
1369
|
""
|
1572
1370
|
]
|
1573
1371
|
},
|
1574
|
-
{
|
1575
|
-
"context": {
|
1576
|
-
"dead": true,
|
1577
|
-
"level": 2,
|
1578
|
-
"marker": "is",
|
1579
|
-
"number": "many",
|
1580
|
-
"one": {
|
1581
|
-
"level": 1,
|
1582
|
-
"listable": true,
|
1583
|
-
"marker": "list",
|
1584
|
-
"number": "many",
|
1585
|
-
"range": {
|
1586
|
-
"end": 37,
|
1587
|
-
"start": 0
|
1588
|
-
},
|
1589
|
-
"text": "* +",
|
1590
|
-
"types": [
|
1591
|
-
"list",
|
1592
|
-
"unknown"
|
1593
|
-
],
|
1594
|
-
"value": [
|
1595
|
-
{
|
1596
|
-
"dead": true,
|
1597
|
-
"level": 1,
|
1598
|
-
"marker": "unknown",
|
1599
|
-
"range": {
|
1600
|
-
"end": 0,
|
1601
|
-
"start": 0
|
1602
|
-
},
|
1603
|
-
"text": "*",
|
1604
|
-
"unknown": true,
|
1605
|
-
"value": "*",
|
1606
|
-
"word": "*"
|
1607
|
-
},
|
1608
|
-
{
|
1609
|
-
"dead": true,
|
1610
|
-
"level": 1,
|
1611
|
-
"marker": "unknown",
|
1612
|
-
"range": {
|
1613
|
-
"end": 2,
|
1614
|
-
"start": 2
|
1615
|
-
},
|
1616
|
-
"text": "+",
|
1617
|
-
"unknown": true,
|
1618
|
-
"value": "+",
|
1619
|
-
"word": "+"
|
1620
|
-
},
|
1621
|
-
{
|
1622
|
-
"dead": true,
|
1623
|
-
"level": 2,
|
1624
|
-
"marker": "unknown",
|
1625
|
-
"range": {
|
1626
|
-
"end": 4,
|
1627
|
-
"start": 4
|
1628
|
-
},
|
1629
|
-
"text": "/",
|
1630
|
-
"unknown": true,
|
1631
|
-
"value": "/",
|
1632
|
-
"word": "/"
|
1633
|
-
},
|
1634
|
-
{
|
1635
|
-
"dead": true,
|
1636
|
-
"level": 2,
|
1637
|
-
"marker": "unknown",
|
1638
|
-
"range": {
|
1639
|
-
"end": 10,
|
1640
|
-
"start": 10
|
1641
|
-
},
|
1642
|
-
"text": "-",
|
1643
|
-
"unknown": true,
|
1644
|
-
"value": "-",
|
1645
|
-
"word": "-"
|
1646
|
-
}
|
1647
|
-
]
|
1648
|
-
},
|
1649
|
-
"range": {
|
1650
|
-
"end": 37,
|
1651
|
-
"start": 0
|
1652
|
-
},
|
1653
|
-
"text": "* + / and - are mathematical operators",
|
1654
|
-
"topLevel": true,
|
1655
|
-
"touchedBy": [
|
1656
|
-
"math#call2",
|
1657
|
-
"instance1#math#call2",
|
1658
|
-
"instance1#formulas#call2",
|
1659
|
-
"instance1#dimension#call2"
|
1660
|
-
],
|
1661
|
-
"two": {
|
1662
|
-
"atomic": true,
|
1663
|
-
"concept": true,
|
1664
|
-
"dead": true,
|
1665
|
-
"level": 1,
|
1666
|
-
"marker": "mathematical_operator",
|
1667
|
-
"modifier_mathematical": {
|
1668
|
-
"level": 0,
|
1669
|
-
"marker": "mathematical",
|
1670
|
-
"range": {
|
1671
|
-
"end": 27,
|
1672
|
-
"start": 16
|
1673
|
-
},
|
1674
|
-
"text": "mathematical",
|
1675
|
-
"types": [
|
1676
|
-
"mathematical"
|
1677
|
-
],
|
1678
|
-
"value": "mathematical",
|
1679
|
-
"word": "mathematical"
|
1680
|
-
},
|
1681
|
-
"modifiers": [
|
1682
|
-
"modifier_mathematical"
|
1683
|
-
],
|
1684
|
-
"number": "many",
|
1685
|
-
"range": {
|
1686
|
-
"end": 37,
|
1687
|
-
"start": 16
|
1688
|
-
},
|
1689
|
-
"text": "mathematical operators",
|
1690
|
-
"types": [
|
1691
|
-
"mathematical_operator",
|
1692
|
-
"operator"
|
1693
|
-
],
|
1694
|
-
"value": "mathematical_operator",
|
1695
|
-
"word": "operators"
|
1696
|
-
},
|
1697
|
-
"word": "are"
|
1698
|
-
},
|
1699
|
-
"generatedParenthesized": [
|
1700
|
-
],
|
1701
|
-
"paraphrases": "*, +, / and - are mathematical operators",
|
1702
|
-
"paraphrasesParenthesized": [
|
1703
|
-
],
|
1704
|
-
"responses": [
|
1705
|
-
""
|
1706
|
-
]
|
1707
|
-
},
|
1708
1372
|
{
|
1709
1373
|
"context": {
|
1710
1374
|
"concept": {
|
@@ -1864,6 +1528,8 @@
|
|
1864
1528
|
"marker": "is",
|
1865
1529
|
"number": "many",
|
1866
1530
|
"one": {
|
1531
|
+
"default": true,
|
1532
|
+
"isList": true,
|
1867
1533
|
"level": 1,
|
1868
1534
|
"listable": true,
|
1869
1535
|
"marker": "list",
|
@@ -1872,7 +1538,7 @@
|
|
1872
1538
|
"end": 53,
|
1873
1539
|
"start": 0
|
1874
1540
|
},
|
1875
|
-
"text": "fahrenheit",
|
1541
|
+
"text": "fahrenheit celcuis and kelvin",
|
1876
1542
|
"types": [
|
1877
1543
|
"list",
|
1878
1544
|
"unknown"
|
@@ -1893,7 +1559,7 @@
|
|
1893
1559
|
},
|
1894
1560
|
{
|
1895
1561
|
"dead": true,
|
1896
|
-
"level":
|
1562
|
+
"level": 1,
|
1897
1563
|
"marker": "unknown",
|
1898
1564
|
"range": {
|
1899
1565
|
"end": 17,
|
@@ -1906,7 +1572,7 @@
|
|
1906
1572
|
},
|
1907
1573
|
{
|
1908
1574
|
"dead": true,
|
1909
|
-
"level":
|
1575
|
+
"level": 1,
|
1910
1576
|
"marker": "unknown",
|
1911
1577
|
"range": {
|
1912
1578
|
"end": 28,
|
@@ -1917,7 +1583,8 @@
|
|
1917
1583
|
"value": "kelvin",
|
1918
1584
|
"word": "kelvin"
|
1919
1585
|
}
|
1920
|
-
]
|
1586
|
+
],
|
1587
|
+
"word": "and"
|
1921
1588
|
},
|
1922
1589
|
"range": {
|
1923
1590
|
"end": 53,
|
@@ -2309,10 +1976,6 @@
|
|
2309
1976
|
"list",
|
2310
1977
|
1
|
2311
1978
|
],
|
2312
|
-
[
|
2313
|
-
"list",
|
2314
|
-
1
|
2315
|
-
],
|
2316
1979
|
[
|
2317
1980
|
"propertyOf",
|
2318
1981
|
0
|
@@ -2330,18 +1993,14 @@
|
|
2330
1993
|
{
|
2331
1994
|
"counter": 6,
|
2332
1995
|
"op": [
|
2333
|
-
"
|
2334
|
-
|
1996
|
+
"unit",
|
1997
|
+
0
|
2335
1998
|
],
|
2336
1999
|
"ops": [
|
2337
2000
|
[
|
2338
2001
|
"is",
|
2339
2002
|
0
|
2340
2003
|
],
|
2341
|
-
[
|
2342
|
-
"list",
|
2343
|
-
1
|
2344
|
-
],
|
2345
2004
|
[
|
2346
2005
|
"propertyOf",
|
2347
2006
|
0
|
@@ -2359,7 +2018,7 @@
|
|
2359
2018
|
{
|
2360
2019
|
"counter": 7,
|
2361
2020
|
"op": [
|
2362
|
-
"
|
2021
|
+
"temperature",
|
2363
2022
|
0
|
2364
2023
|
],
|
2365
2024
|
"ops": [
|
@@ -2374,17 +2033,13 @@
|
|
2374
2033
|
[
|
2375
2034
|
"temperature",
|
2376
2035
|
0
|
2377
|
-
],
|
2378
|
-
[
|
2379
|
-
"unit",
|
2380
|
-
0
|
2381
2036
|
]
|
2382
2037
|
]
|
2383
2038
|
},
|
2384
2039
|
{
|
2385
2040
|
"counter": 8,
|
2386
2041
|
"op": [
|
2387
|
-
"
|
2042
|
+
"propertyOf",
|
2388
2043
|
0
|
2389
2044
|
],
|
2390
2045
|
"ops": [
|
@@ -2395,10 +2050,6 @@
|
|
2395
2050
|
[
|
2396
2051
|
"propertyOf",
|
2397
2052
|
0
|
2398
|
-
],
|
2399
|
-
[
|
2400
|
-
"temperature",
|
2401
|
-
0
|
2402
2053
|
]
|
2403
2054
|
]
|
2404
2055
|
},
|
@@ -2406,7 +2057,7 @@
|
|
2406
2057
|
"counter": 9,
|
2407
2058
|
"op": [
|
2408
2059
|
"propertyOf",
|
2409
|
-
|
2060
|
+
1
|
2410
2061
|
],
|
2411
2062
|
"ops": [
|
2412
2063
|
[
|
@@ -2415,29 +2066,12 @@
|
|
2415
2066
|
],
|
2416
2067
|
[
|
2417
2068
|
"propertyOf",
|
2418
|
-
|
2069
|
+
1
|
2419
2070
|
]
|
2420
2071
|
]
|
2421
2072
|
},
|
2422
2073
|
{
|
2423
2074
|
"counter": 10,
|
2424
|
-
"op": [
|
2425
|
-
"propertyOf",
|
2426
|
-
1
|
2427
|
-
],
|
2428
|
-
"ops": [
|
2429
|
-
[
|
2430
|
-
"is",
|
2431
|
-
0
|
2432
|
-
],
|
2433
|
-
[
|
2434
|
-
"propertyOf",
|
2435
|
-
1
|
2436
|
-
]
|
2437
|
-
]
|
2438
|
-
},
|
2439
|
-
{
|
2440
|
-
"counter": 11,
|
2441
2075
|
"op": [
|
2442
2076
|
"is",
|
2443
2077
|
0
|
@@ -2450,7 +2084,7 @@
|
|
2450
2084
|
]
|
2451
2085
|
},
|
2452
2086
|
{
|
2453
|
-
"counter":
|
2087
|
+
"counter": 11,
|
2454
2088
|
"op": [
|
2455
2089
|
"is",
|
2456
2090
|
1
|
@@ -2557,6 +2191,7 @@
|
|
2557
2191
|
"hierarchy": "hierarchy2",
|
2558
2192
|
"math": "math2",
|
2559
2193
|
"meta": "meta2",
|
2194
|
+
"negation": "negation2",
|
2560
2195
|
"numbers": "numbers2",
|
2561
2196
|
"pos": "pos2",
|
2562
2197
|
"properties": "properties2",
|
@@ -2598,6 +2233,8 @@
|
|
2598
2233
|
},
|
2599
2234
|
"meta2": {
|
2600
2235
|
},
|
2236
|
+
"negation2": {
|
2237
|
+
},
|
2601
2238
|
"numbers2": {
|
2602
2239
|
},
|
2603
2240
|
"pos2": {
|
@@ -2629,15 +2266,6 @@
|
|
2629
2266
|
"ifAble": [
|
2630
2267
|
"orAble"
|
2631
2268
|
],
|
2632
|
-
"mathematical_operator": [
|
2633
|
-
"*",
|
2634
|
-
"+",
|
2635
|
-
"/",
|
2636
|
-
"-"
|
2637
|
-
],
|
2638
|
-
"notAble": [
|
2639
|
-
"unknown"
|
2640
|
-
],
|
2641
2269
|
"object": [
|
2642
2270
|
"unknown",
|
2643
2271
|
"what",
|
@@ -2729,7 +2357,6 @@
|
|
2729
2357
|
"a",
|
2730
2358
|
"articlePOS",
|
2731
2359
|
"the",
|
2732
|
-
"notAble",
|
2733
2360
|
"whatAble",
|
2734
2361
|
"is",
|
2735
2362
|
"toAble",
|
@@ -2741,11 +2368,6 @@
|
|
2741
2368
|
"number",
|
2742
2369
|
"orAble",
|
2743
2370
|
"ifAble",
|
2744
|
-
"*",
|
2745
|
-
"mathematical_operator",
|
2746
|
-
"+",
|
2747
|
-
"/",
|
2748
|
-
"-",
|
2749
2371
|
"formula",
|
2750
2372
|
"dimension",
|
2751
2373
|
"unit",
|
@@ -2755,18 +2377,6 @@
|
|
2755
2377
|
"kelvin"
|
2756
2378
|
],
|
2757
2379
|
"parents": {
|
2758
|
-
"*": [
|
2759
|
-
"mathematical_operator"
|
2760
|
-
],
|
2761
|
-
"+": [
|
2762
|
-
"mathematical_operator"
|
2763
|
-
],
|
2764
|
-
"-": [
|
2765
|
-
"mathematical_operator"
|
2766
|
-
],
|
2767
|
-
"/": [
|
2768
|
-
"mathematical_operator"
|
2769
|
-
],
|
2770
2380
|
"a": [
|
2771
2381
|
"articlePOS"
|
2772
2382
|
],
|
@@ -2869,7 +2479,6 @@
|
|
2869
2479
|
"unknown": [
|
2870
2480
|
"hierarchyAble",
|
2871
2481
|
"object",
|
2872
|
-
"notAble",
|
2873
2482
|
"theAble",
|
2874
2483
|
"queryable"
|
2875
2484
|
],
|
@@ -2893,14 +2502,6 @@
|
|
2893
2502
|
"initHandlers": [
|
2894
2503
|
],
|
2895
2504
|
"root": {
|
2896
|
-
"*": {
|
2897
|
-
},
|
2898
|
-
"+": {
|
2899
|
-
},
|
2900
|
-
"-": {
|
2901
|
-
},
|
2902
|
-
"/": {
|
2903
|
-
},
|
2904
2505
|
"a": {
|
2905
2506
|
},
|
2906
2507
|
"articlePOS": {
|
@@ -2935,12 +2536,8 @@
|
|
2935
2536
|
},
|
2936
2537
|
"kelvin": {
|
2937
2538
|
},
|
2938
|
-
"mathematical_operator": {
|
2939
|
-
},
|
2940
2539
|
"modifies": {
|
2941
2540
|
},
|
2942
|
-
"notAble": {
|
2943
|
-
},
|
2944
2541
|
"noun": {
|
2945
2542
|
},
|
2946
2543
|
"number": {
|
@@ -3095,6 +2692,8 @@
|
|
3095
2692
|
"marker": "is",
|
3096
2693
|
"number": "many",
|
3097
2694
|
"one": {
|
2695
|
+
"default": true,
|
2696
|
+
"isList": true,
|
3098
2697
|
"level": 1,
|
3099
2698
|
"listable": true,
|
3100
2699
|
"marker": "list",
|
@@ -3103,7 +2702,7 @@
|
|
3103
2702
|
"end": 53,
|
3104
2703
|
"start": 0
|
3105
2704
|
},
|
3106
|
-
"text": "fahrenheit",
|
2705
|
+
"text": "fahrenheit celcuis and kelvin",
|
3107
2706
|
"types": [
|
3108
2707
|
"list",
|
3109
2708
|
"unknown"
|
@@ -3124,7 +2723,7 @@
|
|
3124
2723
|
},
|
3125
2724
|
{
|
3126
2725
|
"dead": true,
|
3127
|
-
"level":
|
2726
|
+
"level": 1,
|
3128
2727
|
"marker": "unknown",
|
3129
2728
|
"range": {
|
3130
2729
|
"end": 17,
|
@@ -3137,7 +2736,7 @@
|
|
3137
2736
|
},
|
3138
2737
|
{
|
3139
2738
|
"dead": true,
|
3140
|
-
"level":
|
2739
|
+
"level": 1,
|
3141
2740
|
"marker": "unknown",
|
3142
2741
|
"range": {
|
3143
2742
|
"end": 28,
|
@@ -3148,7 +2747,8 @@
|
|
3148
2747
|
"value": "kelvin",
|
3149
2748
|
"word": "kelvin"
|
3150
2749
|
}
|
3151
|
-
]
|
2750
|
+
],
|
2751
|
+
"word": "and"
|
3152
2752
|
},
|
3153
2753
|
"range": {
|
3154
2754
|
"end": 53,
|
@@ -3316,6 +2916,8 @@
|
|
3316
2916
|
"marker": "is",
|
3317
2917
|
"number": "many",
|
3318
2918
|
"one": {
|
2919
|
+
"default": true,
|
2920
|
+
"isList": true,
|
3319
2921
|
"level": 1,
|
3320
2922
|
"listable": true,
|
3321
2923
|
"marker": "list",
|
@@ -3324,7 +2926,7 @@
|
|
3324
2926
|
"end": 30,
|
3325
2927
|
"start": 0
|
3326
2928
|
},
|
3327
|
-
"text": "dimension and unit
|
2929
|
+
"text": "dimension and unit",
|
3328
2930
|
"types": [
|
3329
2931
|
"list",
|
3330
2932
|
"unknown"
|
@@ -3332,7 +2934,7 @@
|
|
3332
2934
|
"value": [
|
3333
2935
|
{
|
3334
2936
|
"dead": true,
|
3335
|
-
"level":
|
2937
|
+
"level": 1,
|
3336
2938
|
"marker": "unknown",
|
3337
2939
|
"range": {
|
3338
2940
|
"end": 8,
|
@@ -3345,7 +2947,7 @@
|
|
3345
2947
|
},
|
3346
2948
|
{
|
3347
2949
|
"dead": true,
|
3348
|
-
"level":
|
2950
|
+
"level": 1,
|
3349
2951
|
"marker": "unknown",
|
3350
2952
|
"range": {
|
3351
2953
|
"end": 17,
|
@@ -3356,7 +2958,8 @@
|
|
3356
2958
|
"value": "unit",
|
3357
2959
|
"word": "unit"
|
3358
2960
|
}
|
3359
|
-
]
|
2961
|
+
],
|
2962
|
+
"word": "and"
|
3360
2963
|
},
|
3361
2964
|
"range": {
|
3362
2965
|
"end": 30,
|
@@ -3460,132 +3063,56 @@
|
|
3460
3063
|
},
|
3461
3064
|
{
|
3462
3065
|
"context": {
|
3463
|
-
"
|
3464
|
-
|
3465
|
-
"marker": "is",
|
3466
|
-
"number": "many",
|
3467
|
-
"one": {
|
3066
|
+
"concept": {
|
3067
|
+
"dead": true,
|
3468
3068
|
"level": 1,
|
3469
|
-
"
|
3470
|
-
"marker": "list",
|
3471
|
-
"number": "many",
|
3069
|
+
"marker": "unknown",
|
3472
3070
|
"range": {
|
3473
|
-
"end":
|
3474
|
-
"start":
|
3071
|
+
"end": 29,
|
3072
|
+
"start": 22
|
3475
3073
|
},
|
3476
|
-
"text": "
|
3477
|
-
"
|
3478
|
-
|
3479
|
-
|
3480
|
-
],
|
3481
|
-
"value": [
|
3482
|
-
{
|
3483
|
-
"dead": true,
|
3484
|
-
"level": 1,
|
3485
|
-
"marker": "unknown",
|
3486
|
-
"range": {
|
3487
|
-
"end": 0,
|
3488
|
-
"start": 0
|
3489
|
-
},
|
3490
|
-
"text": "*",
|
3491
|
-
"unknown": true,
|
3492
|
-
"value": "*",
|
3493
|
-
"word": "*"
|
3494
|
-
},
|
3495
|
-
{
|
3496
|
-
"dead": true,
|
3497
|
-
"level": 1,
|
3498
|
-
"marker": "unknown",
|
3499
|
-
"range": {
|
3500
|
-
"end": 2,
|
3501
|
-
"start": 2
|
3502
|
-
},
|
3503
|
-
"text": "+",
|
3504
|
-
"unknown": true,
|
3505
|
-
"value": "+",
|
3506
|
-
"word": "+"
|
3507
|
-
},
|
3508
|
-
{
|
3509
|
-
"dead": true,
|
3510
|
-
"level": 2,
|
3511
|
-
"marker": "unknown",
|
3512
|
-
"range": {
|
3513
|
-
"end": 4,
|
3514
|
-
"start": 4
|
3515
|
-
},
|
3516
|
-
"text": "/",
|
3517
|
-
"unknown": true,
|
3518
|
-
"value": "/",
|
3519
|
-
"word": "/"
|
3520
|
-
},
|
3521
|
-
{
|
3522
|
-
"dead": true,
|
3523
|
-
"level": 2,
|
3524
|
-
"marker": "unknown",
|
3525
|
-
"range": {
|
3526
|
-
"end": 10,
|
3527
|
-
"start": 10
|
3528
|
-
},
|
3529
|
-
"text": "-",
|
3530
|
-
"unknown": true,
|
3531
|
-
"value": "-",
|
3532
|
-
"word": "-"
|
3533
|
-
}
|
3534
|
-
]
|
3074
|
+
"text": "operator",
|
3075
|
+
"unknown": true,
|
3076
|
+
"value": "operator",
|
3077
|
+
"word": "operator"
|
3535
3078
|
},
|
3079
|
+
"dead": true,
|
3080
|
+
"flatten": false,
|
3081
|
+
"level": 1,
|
3082
|
+
"marker": "modifies",
|
3083
|
+
"modifiers": [
|
3084
|
+
{
|
3085
|
+
"dead": true,
|
3086
|
+
"level": 1,
|
3087
|
+
"marker": "unknown",
|
3088
|
+
"range": {
|
3089
|
+
"end": 11,
|
3090
|
+
"start": 0
|
3091
|
+
},
|
3092
|
+
"text": "mathematical",
|
3093
|
+
"unknown": true,
|
3094
|
+
"value": "mathematical",
|
3095
|
+
"word": "mathematical"
|
3096
|
+
}
|
3097
|
+
],
|
3098
|
+
"number": "one",
|
3536
3099
|
"range": {
|
3537
|
-
"end":
|
3100
|
+
"end": 29,
|
3538
3101
|
"start": 0
|
3539
3102
|
},
|
3540
|
-
"text": "
|
3103
|
+
"text": "mathematical modifies operator",
|
3541
3104
|
"topLevel": true,
|
3542
3105
|
"touchedBy": [
|
3543
3106
|
"math#call2",
|
3544
|
-
"
|
3545
|
-
"
|
3546
|
-
"
|
3107
|
+
"instance0#math#call2",
|
3108
|
+
"instance0#formulas#call2",
|
3109
|
+
"instance0#dimension#call2"
|
3547
3110
|
],
|
3548
|
-
"
|
3549
|
-
"atomic": true,
|
3550
|
-
"concept": true,
|
3551
|
-
"dead": true,
|
3552
|
-
"level": 1,
|
3553
|
-
"marker": "mathematical_operator",
|
3554
|
-
"modifier_mathematical": {
|
3555
|
-
"level": 0,
|
3556
|
-
"marker": "mathematical",
|
3557
|
-
"range": {
|
3558
|
-
"end": 27,
|
3559
|
-
"start": 16
|
3560
|
-
},
|
3561
|
-
"text": "mathematical",
|
3562
|
-
"types": [
|
3563
|
-
"mathematical"
|
3564
|
-
],
|
3565
|
-
"value": "mathematical",
|
3566
|
-
"word": "mathematical"
|
3567
|
-
},
|
3568
|
-
"modifiers": [
|
3569
|
-
"modifier_mathematical"
|
3570
|
-
],
|
3571
|
-
"number": "many",
|
3572
|
-
"range": {
|
3573
|
-
"end": 37,
|
3574
|
-
"start": 16
|
3575
|
-
},
|
3576
|
-
"text": "mathematical operators",
|
3577
|
-
"types": [
|
3578
|
-
"mathematical_operator",
|
3579
|
-
"operator"
|
3580
|
-
],
|
3581
|
-
"value": "mathematical_operator",
|
3582
|
-
"word": "operators"
|
3583
|
-
},
|
3584
|
-
"word": "are"
|
3111
|
+
"word": "modifies"
|
3585
3112
|
},
|
3586
3113
|
"generatedParenthesized": [
|
3587
3114
|
],
|
3588
|
-
"paraphrases": "
|
3115
|
+
"paraphrases": "mathematical modifies operator",
|
3589
3116
|
"paraphrasesParenthesized": [
|
3590
3117
|
],
|
3591
3118
|
"responses": [
|
@@ -3709,6 +3236,8 @@
|
|
3709
3236
|
"marker": "is",
|
3710
3237
|
"number": "many",
|
3711
3238
|
"one": {
|
3239
|
+
"default": true,
|
3240
|
+
"isList": true,
|
3712
3241
|
"level": 1,
|
3713
3242
|
"listable": true,
|
3714
3243
|
"marker": "list",
|
@@ -3717,7 +3246,7 @@
|
|
3717
3246
|
"end": 53,
|
3718
3247
|
"start": 0
|
3719
3248
|
},
|
3720
|
-
"text": "fahrenheit",
|
3249
|
+
"text": "fahrenheit celcuis and kelvin",
|
3721
3250
|
"types": [
|
3722
3251
|
"list",
|
3723
3252
|
"unknown"
|
@@ -3738,7 +3267,7 @@
|
|
3738
3267
|
},
|
3739
3268
|
{
|
3740
3269
|
"dead": true,
|
3741
|
-
"level":
|
3270
|
+
"level": 1,
|
3742
3271
|
"marker": "unknown",
|
3743
3272
|
"range": {
|
3744
3273
|
"end": 17,
|
@@ -3751,7 +3280,7 @@
|
|
3751
3280
|
},
|
3752
3281
|
{
|
3753
3282
|
"dead": true,
|
3754
|
-
"level":
|
3283
|
+
"level": 1,
|
3755
3284
|
"marker": "unknown",
|
3756
3285
|
"range": {
|
3757
3286
|
"end": 28,
|
@@ -3762,7 +3291,8 @@
|
|
3762
3291
|
"value": "kelvin",
|
3763
3292
|
"word": "kelvin"
|
3764
3293
|
}
|
3765
|
-
]
|
3294
|
+
],
|
3295
|
+
"word": "and"
|
3766
3296
|
},
|
3767
3297
|
"range": {
|
3768
3298
|
"end": 53,
|
@@ -4138,10 +3668,6 @@
|
|
4138
3668
|
"list",
|
4139
3669
|
1
|
4140
3670
|
],
|
4141
|
-
[
|
4142
|
-
"list",
|
4143
|
-
1
|
4144
|
-
],
|
4145
3671
|
[
|
4146
3672
|
"propertyOf",
|
4147
3673
|
0
|
@@ -4158,35 +3684,6 @@
|
|
4158
3684
|
},
|
4159
3685
|
{
|
4160
3686
|
"counter": 6,
|
4161
|
-
"op": [
|
4162
|
-
"list",
|
4163
|
-
1
|
4164
|
-
],
|
4165
|
-
"ops": [
|
4166
|
-
[
|
4167
|
-
"is",
|
4168
|
-
0
|
4169
|
-
],
|
4170
|
-
[
|
4171
|
-
"list",
|
4172
|
-
1
|
4173
|
-
],
|
4174
|
-
[
|
4175
|
-
"propertyOf",
|
4176
|
-
0
|
4177
|
-
],
|
4178
|
-
[
|
4179
|
-
"temperature",
|
4180
|
-
0
|
4181
|
-
],
|
4182
|
-
[
|
4183
|
-
"unit",
|
4184
|
-
0
|
4185
|
-
]
|
4186
|
-
]
|
4187
|
-
},
|
4188
|
-
{
|
4189
|
-
"counter": 7,
|
4190
3687
|
"op": [
|
4191
3688
|
"unit",
|
4192
3689
|
0
|
@@ -4211,7 +3708,7 @@
|
|
4211
3708
|
]
|
4212
3709
|
},
|
4213
3710
|
{
|
4214
|
-
"counter":
|
3711
|
+
"counter": 7,
|
4215
3712
|
"op": [
|
4216
3713
|
"temperature",
|
4217
3714
|
0
|
@@ -4232,7 +3729,7 @@
|
|
4232
3729
|
]
|
4233
3730
|
},
|
4234
3731
|
{
|
4235
|
-
"counter":
|
3732
|
+
"counter": 8,
|
4236
3733
|
"op": [
|
4237
3734
|
"propertyOf",
|
4238
3735
|
0
|
@@ -4249,7 +3746,7 @@
|
|
4249
3746
|
]
|
4250
3747
|
},
|
4251
3748
|
{
|
4252
|
-
"counter":
|
3749
|
+
"counter": 9,
|
4253
3750
|
"op": [
|
4254
3751
|
"propertyOf",
|
4255
3752
|
1
|
@@ -4266,7 +3763,7 @@
|
|
4266
3763
|
]
|
4267
3764
|
},
|
4268
3765
|
{
|
4269
|
-
"counter":
|
3766
|
+
"counter": 10,
|
4270
3767
|
"op": [
|
4271
3768
|
"is",
|
4272
3769
|
0
|
@@ -4279,7 +3776,7 @@
|
|
4279
3776
|
]
|
4280
3777
|
},
|
4281
3778
|
{
|
4282
|
-
"counter":
|
3779
|
+
"counter": 11,
|
4283
3780
|
"op": [
|
4284
3781
|
"is",
|
4285
3782
|
1
|
@@ -4361,6 +3858,7 @@
|
|
4361
3858
|
"hierarchy": "hierarchy2",
|
4362
3859
|
"math": "math2",
|
4363
3860
|
"meta": "meta2",
|
3861
|
+
"negation": "negation2",
|
4364
3862
|
"numbers": "numbers2",
|
4365
3863
|
"pos": "pos2",
|
4366
3864
|
"properties": "properties2",
|
@@ -4402,6 +3900,8 @@
|
|
4402
3900
|
},
|
4403
3901
|
"meta2": {
|
4404
3902
|
},
|
3903
|
+
"negation2": {
|
3904
|
+
},
|
4405
3905
|
"numbers2": {
|
4406
3906
|
},
|
4407
3907
|
"pos2": {
|
@@ -4433,15 +3933,6 @@
|
|
4433
3933
|
"ifAble": [
|
4434
3934
|
"orAble"
|
4435
3935
|
],
|
4436
|
-
"mathematical_operator": [
|
4437
|
-
"*",
|
4438
|
-
"+",
|
4439
|
-
"/",
|
4440
|
-
"-"
|
4441
|
-
],
|
4442
|
-
"notAble": [
|
4443
|
-
"unknown"
|
4444
|
-
],
|
4445
3936
|
"object": [
|
4446
3937
|
"unknown",
|
4447
3938
|
"what",
|
@@ -4533,7 +4024,6 @@
|
|
4533
4024
|
"a",
|
4534
4025
|
"articlePOS",
|
4535
4026
|
"the",
|
4536
|
-
"notAble",
|
4537
4027
|
"whatAble",
|
4538
4028
|
"is",
|
4539
4029
|
"toAble",
|
@@ -4545,11 +4035,6 @@
|
|
4545
4035
|
"number",
|
4546
4036
|
"orAble",
|
4547
4037
|
"ifAble",
|
4548
|
-
"*",
|
4549
|
-
"mathematical_operator",
|
4550
|
-
"+",
|
4551
|
-
"/",
|
4552
|
-
"-",
|
4553
4038
|
"formula",
|
4554
4039
|
"dimension",
|
4555
4040
|
"unit",
|
@@ -4559,18 +4044,6 @@
|
|
4559
4044
|
"kelvin"
|
4560
4045
|
],
|
4561
4046
|
"parents": {
|
4562
|
-
"*": [
|
4563
|
-
"mathematical_operator"
|
4564
|
-
],
|
4565
|
-
"+": [
|
4566
|
-
"mathematical_operator"
|
4567
|
-
],
|
4568
|
-
"-": [
|
4569
|
-
"mathematical_operator"
|
4570
|
-
],
|
4571
|
-
"/": [
|
4572
|
-
"mathematical_operator"
|
4573
|
-
],
|
4574
4047
|
"a": [
|
4575
4048
|
"articlePOS"
|
4576
4049
|
],
|
@@ -4673,7 +4146,6 @@
|
|
4673
4146
|
"unknown": [
|
4674
4147
|
"hierarchyAble",
|
4675
4148
|
"object",
|
4676
|
-
"notAble",
|
4677
4149
|
"theAble",
|
4678
4150
|
"queryable"
|
4679
4151
|
],
|
@@ -4697,14 +4169,6 @@
|
|
4697
4169
|
"initHandlers": [
|
4698
4170
|
],
|
4699
4171
|
"root": {
|
4700
|
-
"*": {
|
4701
|
-
},
|
4702
|
-
"+": {
|
4703
|
-
},
|
4704
|
-
"-": {
|
4705
|
-
},
|
4706
|
-
"/": {
|
4707
|
-
},
|
4708
4172
|
"a": {
|
4709
4173
|
},
|
4710
4174
|
"articlePOS": {
|
@@ -4739,12 +4203,8 @@
|
|
4739
4203
|
},
|
4740
4204
|
"kelvin": {
|
4741
4205
|
},
|
4742
|
-
"mathematical_operator": {
|
4743
|
-
},
|
4744
4206
|
"modifies": {
|
4745
4207
|
},
|
4746
|
-
"notAble": {
|
4747
|
-
},
|
4748
4208
|
"noun": {
|
4749
4209
|
},
|
4750
4210
|
"number": {
|
@@ -4883,6 +4343,8 @@
|
|
4883
4343
|
"marker": "is",
|
4884
4344
|
"number": "many",
|
4885
4345
|
"one": {
|
4346
|
+
"default": true,
|
4347
|
+
"isList": true,
|
4886
4348
|
"level": 1,
|
4887
4349
|
"listable": true,
|
4888
4350
|
"marker": "list",
|
@@ -4891,7 +4353,7 @@
|
|
4891
4353
|
"end": 53,
|
4892
4354
|
"start": 0
|
4893
4355
|
},
|
4894
|
-
"text": "fahrenheit",
|
4356
|
+
"text": "fahrenheit celcuis and kelvin",
|
4895
4357
|
"types": [
|
4896
4358
|
"list",
|
4897
4359
|
"unknown"
|
@@ -4912,7 +4374,7 @@
|
|
4912
4374
|
},
|
4913
4375
|
{
|
4914
4376
|
"dead": true,
|
4915
|
-
"level":
|
4377
|
+
"level": 1,
|
4916
4378
|
"marker": "unknown",
|
4917
4379
|
"range": {
|
4918
4380
|
"end": 17,
|
@@ -4925,7 +4387,7 @@
|
|
4925
4387
|
},
|
4926
4388
|
{
|
4927
4389
|
"dead": true,
|
4928
|
-
"level":
|
4390
|
+
"level": 1,
|
4929
4391
|
"marker": "unknown",
|
4930
4392
|
"range": {
|
4931
4393
|
"end": 28,
|
@@ -4936,7 +4398,8 @@
|
|
4936
4398
|
"value": "kelvin",
|
4937
4399
|
"word": "kelvin"
|
4938
4400
|
}
|
4939
|
-
]
|
4401
|
+
],
|
4402
|
+
"word": "and"
|
4940
4403
|
},
|
4941
4404
|
"range": {
|
4942
4405
|
"end": 53,
|
@@ -5104,6 +4567,8 @@
|
|
5104
4567
|
"marker": "is",
|
5105
4568
|
"number": "many",
|
5106
4569
|
"one": {
|
4570
|
+
"default": true,
|
4571
|
+
"isList": true,
|
5107
4572
|
"level": 1,
|
5108
4573
|
"listable": true,
|
5109
4574
|
"marker": "list",
|
@@ -5112,7 +4577,7 @@
|
|
5112
4577
|
"end": 30,
|
5113
4578
|
"start": 0
|
5114
4579
|
},
|
5115
|
-
"text": "dimension and unit
|
4580
|
+
"text": "dimension and unit",
|
5116
4581
|
"types": [
|
5117
4582
|
"list",
|
5118
4583
|
"unknown"
|
@@ -5120,7 +4585,7 @@
|
|
5120
4585
|
"value": [
|
5121
4586
|
{
|
5122
4587
|
"dead": true,
|
5123
|
-
"level":
|
4588
|
+
"level": 1,
|
5124
4589
|
"marker": "unknown",
|
5125
4590
|
"range": {
|
5126
4591
|
"end": 8,
|
@@ -5133,7 +4598,7 @@
|
|
5133
4598
|
},
|
5134
4599
|
{
|
5135
4600
|
"dead": true,
|
5136
|
-
"level":
|
4601
|
+
"level": 1,
|
5137
4602
|
"marker": "unknown",
|
5138
4603
|
"range": {
|
5139
4604
|
"end": 17,
|
@@ -5144,7 +4609,8 @@
|
|
5144
4609
|
"value": "unit",
|
5145
4610
|
"word": "unit"
|
5146
4611
|
}
|
5147
|
-
]
|
4612
|
+
],
|
4613
|
+
"word": "and"
|
5148
4614
|
},
|
5149
4615
|
"range": {
|
5150
4616
|
"end": 30,
|
@@ -5248,132 +4714,56 @@
|
|
5248
4714
|
},
|
5249
4715
|
{
|
5250
4716
|
"context": {
|
5251
|
-
"
|
5252
|
-
|
5253
|
-
"marker": "is",
|
5254
|
-
"number": "many",
|
5255
|
-
"one": {
|
4717
|
+
"concept": {
|
4718
|
+
"dead": true,
|
5256
4719
|
"level": 1,
|
5257
|
-
"
|
5258
|
-
"marker": "list",
|
5259
|
-
"number": "many",
|
4720
|
+
"marker": "unknown",
|
5260
4721
|
"range": {
|
5261
|
-
"end":
|
5262
|
-
"start":
|
4722
|
+
"end": 29,
|
4723
|
+
"start": 22
|
5263
4724
|
},
|
5264
|
-
"text": "
|
5265
|
-
"
|
5266
|
-
|
5267
|
-
|
5268
|
-
],
|
5269
|
-
"value": [
|
5270
|
-
{
|
5271
|
-
"dead": true,
|
5272
|
-
"level": 1,
|
5273
|
-
"marker": "unknown",
|
5274
|
-
"range": {
|
5275
|
-
"end": 0,
|
5276
|
-
"start": 0
|
5277
|
-
},
|
5278
|
-
"text": "*",
|
5279
|
-
"unknown": true,
|
5280
|
-
"value": "*",
|
5281
|
-
"word": "*"
|
5282
|
-
},
|
5283
|
-
{
|
5284
|
-
"dead": true,
|
5285
|
-
"level": 1,
|
5286
|
-
"marker": "unknown",
|
5287
|
-
"range": {
|
5288
|
-
"end": 2,
|
5289
|
-
"start": 2
|
5290
|
-
},
|
5291
|
-
"text": "+",
|
5292
|
-
"unknown": true,
|
5293
|
-
"value": "+",
|
5294
|
-
"word": "+"
|
5295
|
-
},
|
5296
|
-
{
|
5297
|
-
"dead": true,
|
5298
|
-
"level": 2,
|
5299
|
-
"marker": "unknown",
|
5300
|
-
"range": {
|
5301
|
-
"end": 4,
|
5302
|
-
"start": 4
|
5303
|
-
},
|
5304
|
-
"text": "/",
|
5305
|
-
"unknown": true,
|
5306
|
-
"value": "/",
|
5307
|
-
"word": "/"
|
5308
|
-
},
|
5309
|
-
{
|
5310
|
-
"dead": true,
|
5311
|
-
"level": 2,
|
5312
|
-
"marker": "unknown",
|
5313
|
-
"range": {
|
5314
|
-
"end": 10,
|
5315
|
-
"start": 10
|
5316
|
-
},
|
5317
|
-
"text": "-",
|
5318
|
-
"unknown": true,
|
5319
|
-
"value": "-",
|
5320
|
-
"word": "-"
|
5321
|
-
}
|
5322
|
-
]
|
5323
|
-
},
|
5324
|
-
"range": {
|
5325
|
-
"end": 37,
|
5326
|
-
"start": 0
|
4725
|
+
"text": "operator",
|
4726
|
+
"unknown": true,
|
4727
|
+
"value": "operator",
|
4728
|
+
"word": "operator"
|
5327
4729
|
},
|
5328
|
-
"
|
5329
|
-
"
|
5330
|
-
"
|
5331
|
-
|
5332
|
-
|
5333
|
-
|
5334
|
-
|
5335
|
-
|
5336
|
-
|
5337
|
-
"atomic": true,
|
5338
|
-
"concept": true,
|
5339
|
-
"dead": true,
|
5340
|
-
"level": 1,
|
5341
|
-
"marker": "mathematical_operator",
|
5342
|
-
"modifier_mathematical": {
|
5343
|
-
"level": 0,
|
5344
|
-
"marker": "mathematical",
|
4730
|
+
"dead": true,
|
4731
|
+
"flatten": false,
|
4732
|
+
"level": 1,
|
4733
|
+
"marker": "modifies",
|
4734
|
+
"modifiers": [
|
4735
|
+
{
|
4736
|
+
"dead": true,
|
4737
|
+
"level": 1,
|
4738
|
+
"marker": "unknown",
|
5345
4739
|
"range": {
|
5346
|
-
"end":
|
5347
|
-
"start":
|
4740
|
+
"end": 11,
|
4741
|
+
"start": 0
|
5348
4742
|
},
|
5349
|
-
"text": "mathematical",
|
5350
|
-
"
|
5351
|
-
|
5352
|
-
|
5353
|
-
|
5354
|
-
|
5355
|
-
|
5356
|
-
|
5357
|
-
|
5358
|
-
|
5359
|
-
"number": "many",
|
5360
|
-
"range": {
|
5361
|
-
"end": 37,
|
5362
|
-
"start": 16
|
5363
|
-
},
|
5364
|
-
"text": "mathematical operators",
|
5365
|
-
"types": [
|
5366
|
-
"mathematical_operator",
|
5367
|
-
"operator"
|
5368
|
-
],
|
5369
|
-
"value": "mathematical_operator",
|
5370
|
-
"word": "operators"
|
4743
|
+
"text": "mathematical",
|
4744
|
+
"unknown": true,
|
4745
|
+
"value": "mathematical",
|
4746
|
+
"word": "mathematical"
|
4747
|
+
}
|
4748
|
+
],
|
4749
|
+
"number": "one",
|
4750
|
+
"range": {
|
4751
|
+
"end": 29,
|
4752
|
+
"start": 0
|
5371
4753
|
},
|
5372
|
-
"
|
4754
|
+
"text": "mathematical modifies operator",
|
4755
|
+
"topLevel": true,
|
4756
|
+
"touchedBy": [
|
4757
|
+
"math#call2",
|
4758
|
+
"instance0#math#call2",
|
4759
|
+
"instance0#formulas#call2",
|
4760
|
+
"instance0#dimension#call2"
|
4761
|
+
],
|
4762
|
+
"word": "modifies"
|
5373
4763
|
},
|
5374
4764
|
"generatedParenthesized": [
|
5375
4765
|
],
|
5376
|
-
"paraphrases": "
|
4766
|
+
"paraphrases": "mathematical modifies operator",
|
5377
4767
|
"paraphrasesParenthesized": [
|
5378
4768
|
],
|
5379
4769
|
"responses": [
|
@@ -5515,6 +4905,8 @@
|
|
5515
4905
|
"marker": "is",
|
5516
4906
|
"number": "many",
|
5517
4907
|
"one": {
|
4908
|
+
"default": true,
|
4909
|
+
"isList": true,
|
5518
4910
|
"level": 1,
|
5519
4911
|
"listable": true,
|
5520
4912
|
"marker": "list",
|
@@ -5523,7 +4915,7 @@
|
|
5523
4915
|
"end": 53,
|
5524
4916
|
"start": 0
|
5525
4917
|
},
|
5526
|
-
"text": "fahrenheit",
|
4918
|
+
"text": "fahrenheit celcuis and kelvin",
|
5527
4919
|
"types": [
|
5528
4920
|
"list",
|
5529
4921
|
"unknown"
|
@@ -5544,7 +4936,7 @@
|
|
5544
4936
|
},
|
5545
4937
|
{
|
5546
4938
|
"dead": true,
|
5547
|
-
"level":
|
4939
|
+
"level": 1,
|
5548
4940
|
"marker": "unknown",
|
5549
4941
|
"range": {
|
5550
4942
|
"end": 17,
|
@@ -5557,7 +4949,7 @@
|
|
5557
4949
|
},
|
5558
4950
|
{
|
5559
4951
|
"dead": true,
|
5560
|
-
"level":
|
4952
|
+
"level": 1,
|
5561
4953
|
"marker": "unknown",
|
5562
4954
|
"range": {
|
5563
4955
|
"end": 28,
|
@@ -5568,7 +4960,8 @@
|
|
5568
4960
|
"value": "kelvin",
|
5569
4961
|
"word": "kelvin"
|
5570
4962
|
}
|
5571
|
-
]
|
4963
|
+
],
|
4964
|
+
"word": "and"
|
5572
4965
|
},
|
5573
4966
|
"range": {
|
5574
4967
|
"end": 53,
|
@@ -5960,10 +5353,6 @@
|
|
5960
5353
|
"list",
|
5961
5354
|
1
|
5962
5355
|
],
|
5963
|
-
[
|
5964
|
-
"list",
|
5965
|
-
1
|
5966
|
-
],
|
5967
5356
|
[
|
5968
5357
|
"propertyOf",
|
5969
5358
|
0
|
@@ -5980,35 +5369,6 @@
|
|
5980
5369
|
},
|
5981
5370
|
{
|
5982
5371
|
"counter": 6,
|
5983
|
-
"op": [
|
5984
|
-
"list",
|
5985
|
-
1
|
5986
|
-
],
|
5987
|
-
"ops": [
|
5988
|
-
[
|
5989
|
-
"is",
|
5990
|
-
0
|
5991
|
-
],
|
5992
|
-
[
|
5993
|
-
"list",
|
5994
|
-
1
|
5995
|
-
],
|
5996
|
-
[
|
5997
|
-
"propertyOf",
|
5998
|
-
0
|
5999
|
-
],
|
6000
|
-
[
|
6001
|
-
"temperature",
|
6002
|
-
0
|
6003
|
-
],
|
6004
|
-
[
|
6005
|
-
"unit",
|
6006
|
-
0
|
6007
|
-
]
|
6008
|
-
]
|
6009
|
-
},
|
6010
|
-
{
|
6011
|
-
"counter": 7,
|
6012
5372
|
"op": [
|
6013
5373
|
"unit",
|
6014
5374
|
0
|
@@ -6033,7 +5393,7 @@
|
|
6033
5393
|
]
|
6034
5394
|
},
|
6035
5395
|
{
|
6036
|
-
"counter":
|
5396
|
+
"counter": 7,
|
6037
5397
|
"op": [
|
6038
5398
|
"temperature",
|
6039
5399
|
0
|
@@ -6054,7 +5414,7 @@
|
|
6054
5414
|
]
|
6055
5415
|
},
|
6056
5416
|
{
|
6057
|
-
"counter":
|
5417
|
+
"counter": 8,
|
6058
5418
|
"op": [
|
6059
5419
|
"propertyOf",
|
6060
5420
|
0
|
@@ -6071,7 +5431,7 @@
|
|
6071
5431
|
]
|
6072
5432
|
},
|
6073
5433
|
{
|
6074
|
-
"counter":
|
5434
|
+
"counter": 9,
|
6075
5435
|
"op": [
|
6076
5436
|
"propertyOf",
|
6077
5437
|
1
|
@@ -6088,7 +5448,7 @@
|
|
6088
5448
|
]
|
6089
5449
|
},
|
6090
5450
|
{
|
6091
|
-
"counter":
|
5451
|
+
"counter": 10,
|
6092
5452
|
"op": [
|
6093
5453
|
"is",
|
6094
5454
|
0
|
@@ -6101,7 +5461,7 @@
|
|
6101
5461
|
]
|
6102
5462
|
},
|
6103
5463
|
{
|
6104
|
-
"counter":
|
5464
|
+
"counter": 11,
|
6105
5465
|
"op": [
|
6106
5466
|
"is",
|
6107
5467
|
1
|
@@ -6204,6 +5564,7 @@
|
|
6204
5564
|
"hierarchy": "hierarchy2",
|
6205
5565
|
"math": "math2",
|
6206
5566
|
"meta": "meta2",
|
5567
|
+
"negation": "negation2",
|
6207
5568
|
"numbers": "numbers2",
|
6208
5569
|
"pos": "pos2",
|
6209
5570
|
"properties": "properties2",
|
@@ -6245,6 +5606,8 @@
|
|
6245
5606
|
},
|
6246
5607
|
"meta2": {
|
6247
5608
|
},
|
5609
|
+
"negation2": {
|
5610
|
+
},
|
6248
5611
|
"numbers2": {
|
6249
5612
|
},
|
6250
5613
|
"pos2": {
|
@@ -6276,15 +5639,6 @@
|
|
6276
5639
|
"ifAble": [
|
6277
5640
|
"orAble"
|
6278
5641
|
],
|
6279
|
-
"mathematical_operator": [
|
6280
|
-
"*",
|
6281
|
-
"+",
|
6282
|
-
"/",
|
6283
|
-
"-"
|
6284
|
-
],
|
6285
|
-
"notAble": [
|
6286
|
-
"unknown"
|
6287
|
-
],
|
6288
5642
|
"object": [
|
6289
5643
|
"unknown",
|
6290
5644
|
"what",
|
@@ -6376,7 +5730,6 @@
|
|
6376
5730
|
"a",
|
6377
5731
|
"articlePOS",
|
6378
5732
|
"the",
|
6379
|
-
"notAble",
|
6380
5733
|
"whatAble",
|
6381
5734
|
"is",
|
6382
5735
|
"toAble",
|
@@ -6388,11 +5741,6 @@
|
|
6388
5741
|
"number",
|
6389
5742
|
"orAble",
|
6390
5743
|
"ifAble",
|
6391
|
-
"*",
|
6392
|
-
"mathematical_operator",
|
6393
|
-
"+",
|
6394
|
-
"/",
|
6395
|
-
"-",
|
6396
5744
|
"formula",
|
6397
5745
|
"dimension",
|
6398
5746
|
"unit",
|
@@ -6402,18 +5750,6 @@
|
|
6402
5750
|
"kelvin"
|
6403
5751
|
],
|
6404
5752
|
"parents": {
|
6405
|
-
"*": [
|
6406
|
-
"mathematical_operator"
|
6407
|
-
],
|
6408
|
-
"+": [
|
6409
|
-
"mathematical_operator"
|
6410
|
-
],
|
6411
|
-
"-": [
|
6412
|
-
"mathematical_operator"
|
6413
|
-
],
|
6414
|
-
"/": [
|
6415
|
-
"mathematical_operator"
|
6416
|
-
],
|
6417
5753
|
"a": [
|
6418
5754
|
"articlePOS"
|
6419
5755
|
],
|
@@ -6516,7 +5852,6 @@
|
|
6516
5852
|
"unknown": [
|
6517
5853
|
"hierarchyAble",
|
6518
5854
|
"object",
|
6519
|
-
"notAble",
|
6520
5855
|
"theAble",
|
6521
5856
|
"queryable"
|
6522
5857
|
],
|
@@ -6540,14 +5875,6 @@
|
|
6540
5875
|
"initHandlers": [
|
6541
5876
|
],
|
6542
5877
|
"root": {
|
6543
|
-
"*": {
|
6544
|
-
},
|
6545
|
-
"+": {
|
6546
|
-
},
|
6547
|
-
"-": {
|
6548
|
-
},
|
6549
|
-
"/": {
|
6550
|
-
},
|
6551
5878
|
"a": {
|
6552
5879
|
},
|
6553
5880
|
"articlePOS": {
|
@@ -6582,12 +5909,8 @@
|
|
6582
5909
|
},
|
6583
5910
|
"kelvin": {
|
6584
5911
|
},
|
6585
|
-
"mathematical_operator": {
|
6586
|
-
},
|
6587
5912
|
"modifies": {
|
6588
5913
|
},
|
6589
|
-
"notAble": {
|
6590
|
-
},
|
6591
5914
|
"noun": {
|
6592
5915
|
},
|
6593
5916
|
"number": {
|
@@ -6742,6 +6065,8 @@
|
|
6742
6065
|
"marker": "is",
|
6743
6066
|
"number": "many",
|
6744
6067
|
"one": {
|
6068
|
+
"default": true,
|
6069
|
+
"isList": true,
|
6745
6070
|
"level": 1,
|
6746
6071
|
"listable": true,
|
6747
6072
|
"marker": "list",
|
@@ -6750,7 +6075,7 @@
|
|
6750
6075
|
"end": 53,
|
6751
6076
|
"start": 0
|
6752
6077
|
},
|
6753
|
-
"text": "fahrenheit",
|
6078
|
+
"text": "fahrenheit celcuis and kelvin",
|
6754
6079
|
"types": [
|
6755
6080
|
"list",
|
6756
6081
|
"unknown"
|
@@ -6771,7 +6096,7 @@
|
|
6771
6096
|
},
|
6772
6097
|
{
|
6773
6098
|
"dead": true,
|
6774
|
-
"level":
|
6099
|
+
"level": 1,
|
6775
6100
|
"marker": "unknown",
|
6776
6101
|
"range": {
|
6777
6102
|
"end": 17,
|
@@ -6784,7 +6109,7 @@
|
|
6784
6109
|
},
|
6785
6110
|
{
|
6786
6111
|
"dead": true,
|
6787
|
-
"level":
|
6112
|
+
"level": 1,
|
6788
6113
|
"marker": "unknown",
|
6789
6114
|
"range": {
|
6790
6115
|
"end": 28,
|
@@ -6795,7 +6120,8 @@
|
|
6795
6120
|
"value": "kelvin",
|
6796
6121
|
"word": "kelvin"
|
6797
6122
|
}
|
6798
|
-
]
|
6123
|
+
],
|
6124
|
+
"word": "and"
|
6799
6125
|
},
|
6800
6126
|
"range": {
|
6801
6127
|
"end": 53,
|
@@ -6963,6 +6289,8 @@
|
|
6963
6289
|
"marker": "is",
|
6964
6290
|
"number": "many",
|
6965
6291
|
"one": {
|
6292
|
+
"default": true,
|
6293
|
+
"isList": true,
|
6966
6294
|
"level": 1,
|
6967
6295
|
"listable": true,
|
6968
6296
|
"marker": "list",
|
@@ -6971,7 +6299,7 @@
|
|
6971
6299
|
"end": 30,
|
6972
6300
|
"start": 0
|
6973
6301
|
},
|
6974
|
-
"text": "dimension and unit
|
6302
|
+
"text": "dimension and unit",
|
6975
6303
|
"types": [
|
6976
6304
|
"list",
|
6977
6305
|
"unknown"
|
@@ -6979,7 +6307,7 @@
|
|
6979
6307
|
"value": [
|
6980
6308
|
{
|
6981
6309
|
"dead": true,
|
6982
|
-
"level":
|
6310
|
+
"level": 1,
|
6983
6311
|
"marker": "unknown",
|
6984
6312
|
"range": {
|
6985
6313
|
"end": 8,
|
@@ -6992,7 +6320,7 @@
|
|
6992
6320
|
},
|
6993
6321
|
{
|
6994
6322
|
"dead": true,
|
6995
|
-
"level":
|
6323
|
+
"level": 1,
|
6996
6324
|
"marker": "unknown",
|
6997
6325
|
"range": {
|
6998
6326
|
"end": 17,
|
@@ -7003,7 +6331,8 @@
|
|
7003
6331
|
"value": "unit",
|
7004
6332
|
"word": "unit"
|
7005
6333
|
}
|
7006
|
-
]
|
6334
|
+
],
|
6335
|
+
"word": "and"
|
7007
6336
|
},
|
7008
6337
|
"range": {
|
7009
6338
|
"end": 30,
|
@@ -7107,132 +6436,56 @@
|
|
7107
6436
|
},
|
7108
6437
|
{
|
7109
6438
|
"context": {
|
7110
|
-
"
|
7111
|
-
|
7112
|
-
"marker": "is",
|
7113
|
-
"number": "many",
|
7114
|
-
"one": {
|
6439
|
+
"concept": {
|
6440
|
+
"dead": true,
|
7115
6441
|
"level": 1,
|
7116
|
-
"
|
7117
|
-
"marker": "list",
|
7118
|
-
"number": "many",
|
6442
|
+
"marker": "unknown",
|
7119
6443
|
"range": {
|
7120
|
-
"end":
|
7121
|
-
"start":
|
6444
|
+
"end": 29,
|
6445
|
+
"start": 22
|
7122
6446
|
},
|
7123
|
-
"text": "
|
7124
|
-
"
|
7125
|
-
|
7126
|
-
|
7127
|
-
],
|
7128
|
-
"value": [
|
7129
|
-
{
|
7130
|
-
"dead": true,
|
7131
|
-
"level": 1,
|
7132
|
-
"marker": "unknown",
|
7133
|
-
"range": {
|
7134
|
-
"end": 0,
|
7135
|
-
"start": 0
|
7136
|
-
},
|
7137
|
-
"text": "*",
|
7138
|
-
"unknown": true,
|
7139
|
-
"value": "*",
|
7140
|
-
"word": "*"
|
7141
|
-
},
|
7142
|
-
{
|
7143
|
-
"dead": true,
|
7144
|
-
"level": 1,
|
7145
|
-
"marker": "unknown",
|
7146
|
-
"range": {
|
7147
|
-
"end": 2,
|
7148
|
-
"start": 2
|
7149
|
-
},
|
7150
|
-
"text": "+",
|
7151
|
-
"unknown": true,
|
7152
|
-
"value": "+",
|
7153
|
-
"word": "+"
|
7154
|
-
},
|
7155
|
-
{
|
7156
|
-
"dead": true,
|
7157
|
-
"level": 2,
|
7158
|
-
"marker": "unknown",
|
7159
|
-
"range": {
|
7160
|
-
"end": 4,
|
7161
|
-
"start": 4
|
7162
|
-
},
|
7163
|
-
"text": "/",
|
7164
|
-
"unknown": true,
|
7165
|
-
"value": "/",
|
7166
|
-
"word": "/"
|
7167
|
-
},
|
7168
|
-
{
|
7169
|
-
"dead": true,
|
7170
|
-
"level": 2,
|
7171
|
-
"marker": "unknown",
|
7172
|
-
"range": {
|
7173
|
-
"end": 10,
|
7174
|
-
"start": 10
|
7175
|
-
},
|
7176
|
-
"text": "-",
|
7177
|
-
"unknown": true,
|
7178
|
-
"value": "-",
|
7179
|
-
"word": "-"
|
7180
|
-
}
|
7181
|
-
]
|
6447
|
+
"text": "operator",
|
6448
|
+
"unknown": true,
|
6449
|
+
"value": "operator",
|
6450
|
+
"word": "operator"
|
7182
6451
|
},
|
6452
|
+
"dead": true,
|
6453
|
+
"flatten": false,
|
6454
|
+
"level": 1,
|
6455
|
+
"marker": "modifies",
|
6456
|
+
"modifiers": [
|
6457
|
+
{
|
6458
|
+
"dead": true,
|
6459
|
+
"level": 1,
|
6460
|
+
"marker": "unknown",
|
6461
|
+
"range": {
|
6462
|
+
"end": 11,
|
6463
|
+
"start": 0
|
6464
|
+
},
|
6465
|
+
"text": "mathematical",
|
6466
|
+
"unknown": true,
|
6467
|
+
"value": "mathematical",
|
6468
|
+
"word": "mathematical"
|
6469
|
+
}
|
6470
|
+
],
|
6471
|
+
"number": "one",
|
7183
6472
|
"range": {
|
7184
|
-
"end":
|
6473
|
+
"end": 29,
|
7185
6474
|
"start": 0
|
7186
6475
|
},
|
7187
|
-
"text": "
|
6476
|
+
"text": "mathematical modifies operator",
|
7188
6477
|
"topLevel": true,
|
7189
6478
|
"touchedBy": [
|
7190
6479
|
"math#call2",
|
7191
|
-
"
|
7192
|
-
"
|
7193
|
-
"
|
6480
|
+
"instance0#math#call2",
|
6481
|
+
"instance0#formulas#call2",
|
6482
|
+
"instance0#dimension#call2"
|
7194
6483
|
],
|
7195
|
-
"
|
7196
|
-
"atomic": true,
|
7197
|
-
"concept": true,
|
7198
|
-
"dead": true,
|
7199
|
-
"level": 1,
|
7200
|
-
"marker": "mathematical_operator",
|
7201
|
-
"modifier_mathematical": {
|
7202
|
-
"level": 0,
|
7203
|
-
"marker": "mathematical",
|
7204
|
-
"range": {
|
7205
|
-
"end": 27,
|
7206
|
-
"start": 16
|
7207
|
-
},
|
7208
|
-
"text": "mathematical",
|
7209
|
-
"types": [
|
7210
|
-
"mathematical"
|
7211
|
-
],
|
7212
|
-
"value": "mathematical",
|
7213
|
-
"word": "mathematical"
|
7214
|
-
},
|
7215
|
-
"modifiers": [
|
7216
|
-
"modifier_mathematical"
|
7217
|
-
],
|
7218
|
-
"number": "many",
|
7219
|
-
"range": {
|
7220
|
-
"end": 37,
|
7221
|
-
"start": 16
|
7222
|
-
},
|
7223
|
-
"text": "mathematical operators",
|
7224
|
-
"types": [
|
7225
|
-
"mathematical_operator",
|
7226
|
-
"operator"
|
7227
|
-
],
|
7228
|
-
"value": "mathematical_operator",
|
7229
|
-
"word": "operators"
|
7230
|
-
},
|
7231
|
-
"word": "are"
|
6484
|
+
"word": "modifies"
|
7232
6485
|
},
|
7233
6486
|
"generatedParenthesized": [
|
7234
6487
|
],
|
7235
|
-
"paraphrases": "
|
6488
|
+
"paraphrases": "mathematical modifies operator",
|
7236
6489
|
"paraphrasesParenthesized": [
|
7237
6490
|
],
|
7238
6491
|
"responses": [
|
@@ -7406,6 +6659,8 @@
|
|
7406
6659
|
"marker": "is",
|
7407
6660
|
"number": "many",
|
7408
6661
|
"one": {
|
6662
|
+
"default": true,
|
6663
|
+
"isList": true,
|
7409
6664
|
"level": 1,
|
7410
6665
|
"listable": true,
|
7411
6666
|
"marker": "list",
|
@@ -7414,7 +6669,7 @@
|
|
7414
6669
|
"end": 53,
|
7415
6670
|
"start": 0
|
7416
6671
|
},
|
7417
|
-
"text": "fahrenheit",
|
6672
|
+
"text": "fahrenheit celcuis and kelvin",
|
7418
6673
|
"types": [
|
7419
6674
|
"list",
|
7420
6675
|
"unknown"
|
@@ -7435,7 +6690,7 @@
|
|
7435
6690
|
},
|
7436
6691
|
{
|
7437
6692
|
"dead": true,
|
7438
|
-
"level":
|
6693
|
+
"level": 1,
|
7439
6694
|
"marker": "unknown",
|
7440
6695
|
"range": {
|
7441
6696
|
"end": 17,
|
@@ -7448,7 +6703,7 @@
|
|
7448
6703
|
},
|
7449
6704
|
{
|
7450
6705
|
"dead": true,
|
7451
|
-
"level":
|
6706
|
+
"level": 1,
|
7452
6707
|
"marker": "unknown",
|
7453
6708
|
"range": {
|
7454
6709
|
"end": 28,
|
@@ -7459,7 +6714,8 @@
|
|
7459
6714
|
"value": "kelvin",
|
7460
6715
|
"word": "kelvin"
|
7461
6716
|
}
|
7462
|
-
]
|
6717
|
+
],
|
6718
|
+
"word": "and"
|
7463
6719
|
},
|
7464
6720
|
"range": {
|
7465
6721
|
"end": 53,
|
@@ -7882,10 +7138,6 @@
|
|
7882
7138
|
"list",
|
7883
7139
|
1
|
7884
7140
|
],
|
7885
|
-
[
|
7886
|
-
"list",
|
7887
|
-
1
|
7888
|
-
],
|
7889
7141
|
[
|
7890
7142
|
"propertyOf",
|
7891
7143
|
0
|
@@ -7902,35 +7154,6 @@
|
|
7902
7154
|
},
|
7903
7155
|
{
|
7904
7156
|
"counter": 6,
|
7905
|
-
"op": [
|
7906
|
-
"list",
|
7907
|
-
1
|
7908
|
-
],
|
7909
|
-
"ops": [
|
7910
|
-
[
|
7911
|
-
"is",
|
7912
|
-
0
|
7913
|
-
],
|
7914
|
-
[
|
7915
|
-
"list",
|
7916
|
-
1
|
7917
|
-
],
|
7918
|
-
[
|
7919
|
-
"propertyOf",
|
7920
|
-
0
|
7921
|
-
],
|
7922
|
-
[
|
7923
|
-
"temperature",
|
7924
|
-
0
|
7925
|
-
],
|
7926
|
-
[
|
7927
|
-
"unit",
|
7928
|
-
0
|
7929
|
-
]
|
7930
|
-
]
|
7931
|
-
},
|
7932
|
-
{
|
7933
|
-
"counter": 7,
|
7934
7157
|
"op": [
|
7935
7158
|
"unit",
|
7936
7159
|
0
|
@@ -7955,7 +7178,7 @@
|
|
7955
7178
|
]
|
7956
7179
|
},
|
7957
7180
|
{
|
7958
|
-
"counter":
|
7181
|
+
"counter": 7,
|
7959
7182
|
"op": [
|
7960
7183
|
"temperature",
|
7961
7184
|
0
|
@@ -7976,7 +7199,7 @@
|
|
7976
7199
|
]
|
7977
7200
|
},
|
7978
7201
|
{
|
7979
|
-
"counter":
|
7202
|
+
"counter": 8,
|
7980
7203
|
"op": [
|
7981
7204
|
"propertyOf",
|
7982
7205
|
0
|
@@ -7993,7 +7216,7 @@
|
|
7993
7216
|
]
|
7994
7217
|
},
|
7995
7218
|
{
|
7996
|
-
"counter":
|
7219
|
+
"counter": 9,
|
7997
7220
|
"op": [
|
7998
7221
|
"propertyOf",
|
7999
7222
|
1
|
@@ -8010,7 +7233,7 @@
|
|
8010
7233
|
]
|
8011
7234
|
},
|
8012
7235
|
{
|
8013
|
-
"counter":
|
7236
|
+
"counter": 10,
|
8014
7237
|
"op": [
|
8015
7238
|
"is",
|
8016
7239
|
0
|
@@ -8023,7 +7246,7 @@
|
|
8023
7246
|
]
|
8024
7247
|
},
|
8025
7248
|
{
|
8026
|
-
"counter":
|
7249
|
+
"counter": 11,
|
8027
7250
|
"op": [
|
8028
7251
|
"is",
|
8029
7252
|
1
|
@@ -8192,6 +7415,7 @@
|
|
8192
7415
|
"hierarchy": "hierarchy2",
|
8193
7416
|
"math": "math2",
|
8194
7417
|
"meta": "meta2",
|
7418
|
+
"negation": "negation2",
|
8195
7419
|
"numbers": "numbers2",
|
8196
7420
|
"pos": "pos2",
|
8197
7421
|
"properties": "properties2",
|
@@ -8233,6 +7457,8 @@
|
|
8233
7457
|
},
|
8234
7458
|
"meta2": {
|
8235
7459
|
},
|
7460
|
+
"negation2": {
|
7461
|
+
},
|
8236
7462
|
"numbers2": {
|
8237
7463
|
},
|
8238
7464
|
"pos2": {
|
@@ -8261,17 +7487,8 @@
|
|
8261
7487
|
"hierarchyAble": [
|
8262
7488
|
"unknown"
|
8263
7489
|
],
|
8264
|
-
"ifAble": [
|
8265
|
-
"orAble"
|
8266
|
-
],
|
8267
|
-
"mathematical_operator": [
|
8268
|
-
"*",
|
8269
|
-
"+",
|
8270
|
-
"/",
|
8271
|
-
"-"
|
8272
|
-
],
|
8273
|
-
"notAble": [
|
8274
|
-
"unknown"
|
7490
|
+
"ifAble": [
|
7491
|
+
"orAble"
|
8275
7492
|
],
|
8276
7493
|
"object": [
|
8277
7494
|
"unknown",
|
@@ -8364,7 +7581,6 @@
|
|
8364
7581
|
"a",
|
8365
7582
|
"articlePOS",
|
8366
7583
|
"the",
|
8367
|
-
"notAble",
|
8368
7584
|
"whatAble",
|
8369
7585
|
"is",
|
8370
7586
|
"toAble",
|
@@ -8376,11 +7592,6 @@
|
|
8376
7592
|
"number",
|
8377
7593
|
"orAble",
|
8378
7594
|
"ifAble",
|
8379
|
-
"*",
|
8380
|
-
"mathematical_operator",
|
8381
|
-
"+",
|
8382
|
-
"/",
|
8383
|
-
"-",
|
8384
7595
|
"formula",
|
8385
7596
|
"dimension",
|
8386
7597
|
"unit",
|
@@ -8390,18 +7601,6 @@
|
|
8390
7601
|
"kelvin"
|
8391
7602
|
],
|
8392
7603
|
"parents": {
|
8393
|
-
"*": [
|
8394
|
-
"mathematical_operator"
|
8395
|
-
],
|
8396
|
-
"+": [
|
8397
|
-
"mathematical_operator"
|
8398
|
-
],
|
8399
|
-
"-": [
|
8400
|
-
"mathematical_operator"
|
8401
|
-
],
|
8402
|
-
"/": [
|
8403
|
-
"mathematical_operator"
|
8404
|
-
],
|
8405
7604
|
"a": [
|
8406
7605
|
"articlePOS"
|
8407
7606
|
],
|
@@ -8504,7 +7703,6 @@
|
|
8504
7703
|
"unknown": [
|
8505
7704
|
"hierarchyAble",
|
8506
7705
|
"object",
|
8507
|
-
"notAble",
|
8508
7706
|
"theAble",
|
8509
7707
|
"queryable"
|
8510
7708
|
],
|
@@ -8528,14 +7726,6 @@
|
|
8528
7726
|
"initHandlers": [
|
8529
7727
|
],
|
8530
7728
|
"root": {
|
8531
|
-
"*": {
|
8532
|
-
},
|
8533
|
-
"+": {
|
8534
|
-
},
|
8535
|
-
"-": {
|
8536
|
-
},
|
8537
|
-
"/": {
|
8538
|
-
},
|
8539
7729
|
"a": {
|
8540
7730
|
},
|
8541
7731
|
"articlePOS": {
|
@@ -8570,12 +7760,8 @@
|
|
8570
7760
|
},
|
8571
7761
|
"kelvin": {
|
8572
7762
|
},
|
8573
|
-
"mathematical_operator": {
|
8574
|
-
},
|
8575
7763
|
"modifies": {
|
8576
7764
|
},
|
8577
|
-
"notAble": {
|
8578
|
-
},
|
8579
7765
|
"noun": {
|
8580
7766
|
},
|
8581
7767
|
"number": {
|
@@ -8761,6 +7947,8 @@
|
|
8761
7947
|
"marker": "is",
|
8762
7948
|
"number": "many",
|
8763
7949
|
"one": {
|
7950
|
+
"default": true,
|
7951
|
+
"isList": true,
|
8764
7952
|
"level": 1,
|
8765
7953
|
"listable": true,
|
8766
7954
|
"marker": "list",
|
@@ -8769,7 +7957,7 @@
|
|
8769
7957
|
"end": 53,
|
8770
7958
|
"start": 0
|
8771
7959
|
},
|
8772
|
-
"text": "fahrenheit",
|
7960
|
+
"text": "fahrenheit celcuis and kelvin",
|
8773
7961
|
"types": [
|
8774
7962
|
"list",
|
8775
7963
|
"unknown"
|
@@ -8790,7 +7978,7 @@
|
|
8790
7978
|
},
|
8791
7979
|
{
|
8792
7980
|
"dead": true,
|
8793
|
-
"level":
|
7981
|
+
"level": 1,
|
8794
7982
|
"marker": "unknown",
|
8795
7983
|
"range": {
|
8796
7984
|
"end": 17,
|
@@ -8803,7 +7991,7 @@
|
|
8803
7991
|
},
|
8804
7992
|
{
|
8805
7993
|
"dead": true,
|
8806
|
-
"level":
|
7994
|
+
"level": 1,
|
8807
7995
|
"marker": "unknown",
|
8808
7996
|
"range": {
|
8809
7997
|
"end": 28,
|
@@ -8814,7 +8002,8 @@
|
|
8814
8002
|
"value": "kelvin",
|
8815
8003
|
"word": "kelvin"
|
8816
8004
|
}
|
8817
|
-
]
|
8005
|
+
],
|
8006
|
+
"word": "and"
|
8818
8007
|
},
|
8819
8008
|
"range": {
|
8820
8009
|
"end": 53,
|
@@ -8982,6 +8171,8 @@
|
|
8982
8171
|
"marker": "is",
|
8983
8172
|
"number": "many",
|
8984
8173
|
"one": {
|
8174
|
+
"default": true,
|
8175
|
+
"isList": true,
|
8985
8176
|
"level": 1,
|
8986
8177
|
"listable": true,
|
8987
8178
|
"marker": "list",
|
@@ -8990,7 +8181,7 @@
|
|
8990
8181
|
"end": 30,
|
8991
8182
|
"start": 0
|
8992
8183
|
},
|
8993
|
-
"text": "dimension and unit
|
8184
|
+
"text": "dimension and unit",
|
8994
8185
|
"types": [
|
8995
8186
|
"list",
|
8996
8187
|
"unknown"
|
@@ -8998,7 +8189,7 @@
|
|
8998
8189
|
"value": [
|
8999
8190
|
{
|
9000
8191
|
"dead": true,
|
9001
|
-
"level":
|
8192
|
+
"level": 1,
|
9002
8193
|
"marker": "unknown",
|
9003
8194
|
"range": {
|
9004
8195
|
"end": 8,
|
@@ -9011,7 +8202,7 @@
|
|
9011
8202
|
},
|
9012
8203
|
{
|
9013
8204
|
"dead": true,
|
9014
|
-
"level":
|
8205
|
+
"level": 1,
|
9015
8206
|
"marker": "unknown",
|
9016
8207
|
"range": {
|
9017
8208
|
"end": 17,
|
@@ -9022,7 +8213,8 @@
|
|
9022
8213
|
"value": "unit",
|
9023
8214
|
"word": "unit"
|
9024
8215
|
}
|
9025
|
-
]
|
8216
|
+
],
|
8217
|
+
"word": "and"
|
9026
8218
|
},
|
9027
8219
|
"range": {
|
9028
8220
|
"end": 30,
|
@@ -9126,132 +8318,56 @@
|
|
9126
8318
|
},
|
9127
8319
|
{
|
9128
8320
|
"context": {
|
9129
|
-
"
|
9130
|
-
|
9131
|
-
"marker": "is",
|
9132
|
-
"number": "many",
|
9133
|
-
"one": {
|
8321
|
+
"concept": {
|
8322
|
+
"dead": true,
|
9134
8323
|
"level": 1,
|
9135
|
-
"
|
9136
|
-
"marker": "list",
|
9137
|
-
"number": "many",
|
8324
|
+
"marker": "unknown",
|
9138
8325
|
"range": {
|
9139
|
-
"end":
|
9140
|
-
"start":
|
8326
|
+
"end": 29,
|
8327
|
+
"start": 22
|
9141
8328
|
},
|
9142
|
-
"text": "
|
9143
|
-
"
|
9144
|
-
|
9145
|
-
|
9146
|
-
],
|
9147
|
-
"value": [
|
9148
|
-
{
|
9149
|
-
"dead": true,
|
9150
|
-
"level": 1,
|
9151
|
-
"marker": "unknown",
|
9152
|
-
"range": {
|
9153
|
-
"end": 0,
|
9154
|
-
"start": 0
|
9155
|
-
},
|
9156
|
-
"text": "*",
|
9157
|
-
"unknown": true,
|
9158
|
-
"value": "*",
|
9159
|
-
"word": "*"
|
9160
|
-
},
|
9161
|
-
{
|
9162
|
-
"dead": true,
|
9163
|
-
"level": 1,
|
9164
|
-
"marker": "unknown",
|
9165
|
-
"range": {
|
9166
|
-
"end": 2,
|
9167
|
-
"start": 2
|
9168
|
-
},
|
9169
|
-
"text": "+",
|
9170
|
-
"unknown": true,
|
9171
|
-
"value": "+",
|
9172
|
-
"word": "+"
|
9173
|
-
},
|
9174
|
-
{
|
9175
|
-
"dead": true,
|
9176
|
-
"level": 2,
|
9177
|
-
"marker": "unknown",
|
9178
|
-
"range": {
|
9179
|
-
"end": 4,
|
9180
|
-
"start": 4
|
9181
|
-
},
|
9182
|
-
"text": "/",
|
9183
|
-
"unknown": true,
|
9184
|
-
"value": "/",
|
9185
|
-
"word": "/"
|
9186
|
-
},
|
9187
|
-
{
|
9188
|
-
"dead": true,
|
9189
|
-
"level": 2,
|
9190
|
-
"marker": "unknown",
|
9191
|
-
"range": {
|
9192
|
-
"end": 10,
|
9193
|
-
"start": 10
|
9194
|
-
},
|
9195
|
-
"text": "-",
|
9196
|
-
"unknown": true,
|
9197
|
-
"value": "-",
|
9198
|
-
"word": "-"
|
9199
|
-
}
|
9200
|
-
]
|
8329
|
+
"text": "operator",
|
8330
|
+
"unknown": true,
|
8331
|
+
"value": "operator",
|
8332
|
+
"word": "operator"
|
9201
8333
|
},
|
8334
|
+
"dead": true,
|
8335
|
+
"flatten": false,
|
8336
|
+
"level": 1,
|
8337
|
+
"marker": "modifies",
|
8338
|
+
"modifiers": [
|
8339
|
+
{
|
8340
|
+
"dead": true,
|
8341
|
+
"level": 1,
|
8342
|
+
"marker": "unknown",
|
8343
|
+
"range": {
|
8344
|
+
"end": 11,
|
8345
|
+
"start": 0
|
8346
|
+
},
|
8347
|
+
"text": "mathematical",
|
8348
|
+
"unknown": true,
|
8349
|
+
"value": "mathematical",
|
8350
|
+
"word": "mathematical"
|
8351
|
+
}
|
8352
|
+
],
|
8353
|
+
"number": "one",
|
9202
8354
|
"range": {
|
9203
|
-
"end":
|
8355
|
+
"end": 29,
|
9204
8356
|
"start": 0
|
9205
8357
|
},
|
9206
|
-
"text": "
|
8358
|
+
"text": "mathematical modifies operator",
|
9207
8359
|
"topLevel": true,
|
9208
8360
|
"touchedBy": [
|
9209
8361
|
"math#call2",
|
9210
|
-
"
|
9211
|
-
"
|
9212
|
-
"
|
8362
|
+
"instance0#math#call2",
|
8363
|
+
"instance0#formulas#call2",
|
8364
|
+
"instance0#dimension#call2"
|
9213
8365
|
],
|
9214
|
-
"
|
9215
|
-
"atomic": true,
|
9216
|
-
"concept": true,
|
9217
|
-
"dead": true,
|
9218
|
-
"level": 1,
|
9219
|
-
"marker": "mathematical_operator",
|
9220
|
-
"modifier_mathematical": {
|
9221
|
-
"level": 0,
|
9222
|
-
"marker": "mathematical",
|
9223
|
-
"range": {
|
9224
|
-
"end": 27,
|
9225
|
-
"start": 16
|
9226
|
-
},
|
9227
|
-
"text": "mathematical",
|
9228
|
-
"types": [
|
9229
|
-
"mathematical"
|
9230
|
-
],
|
9231
|
-
"value": "mathematical",
|
9232
|
-
"word": "mathematical"
|
9233
|
-
},
|
9234
|
-
"modifiers": [
|
9235
|
-
"modifier_mathematical"
|
9236
|
-
],
|
9237
|
-
"number": "many",
|
9238
|
-
"range": {
|
9239
|
-
"end": 37,
|
9240
|
-
"start": 16
|
9241
|
-
},
|
9242
|
-
"text": "mathematical operators",
|
9243
|
-
"types": [
|
9244
|
-
"mathematical_operator",
|
9245
|
-
"operator"
|
9246
|
-
],
|
9247
|
-
"value": "mathematical_operator",
|
9248
|
-
"word": "operators"
|
9249
|
-
},
|
9250
|
-
"word": "are"
|
8366
|
+
"word": "modifies"
|
9251
8367
|
},
|
9252
8368
|
"generatedParenthesized": [
|
9253
8369
|
],
|
9254
|
-
"paraphrases": "
|
8370
|
+
"paraphrases": "mathematical modifies operator",
|
9255
8371
|
"paraphrasesParenthesized": [
|
9256
8372
|
],
|
9257
8373
|
"responses": [
|
@@ -9485,6 +8601,8 @@
|
|
9485
8601
|
"marker": "is",
|
9486
8602
|
"number": "many",
|
9487
8603
|
"one": {
|
8604
|
+
"default": true,
|
8605
|
+
"isList": true,
|
9488
8606
|
"level": 1,
|
9489
8607
|
"listable": true,
|
9490
8608
|
"marker": "list",
|
@@ -9493,7 +8611,7 @@
|
|
9493
8611
|
"end": 53,
|
9494
8612
|
"start": 0
|
9495
8613
|
},
|
9496
|
-
"text": "fahrenheit",
|
8614
|
+
"text": "fahrenheit celcuis and kelvin",
|
9497
8615
|
"types": [
|
9498
8616
|
"list",
|
9499
8617
|
"unknown"
|
@@ -9514,7 +8632,7 @@
|
|
9514
8632
|
},
|
9515
8633
|
{
|
9516
8634
|
"dead": true,
|
9517
|
-
"level":
|
8635
|
+
"level": 1,
|
9518
8636
|
"marker": "unknown",
|
9519
8637
|
"range": {
|
9520
8638
|
"end": 17,
|
@@ -9527,7 +8645,7 @@
|
|
9527
8645
|
},
|
9528
8646
|
{
|
9529
8647
|
"dead": true,
|
9530
|
-
"level":
|
8648
|
+
"level": 1,
|
9531
8649
|
"marker": "unknown",
|
9532
8650
|
"range": {
|
9533
8651
|
"end": 28,
|
@@ -9538,7 +8656,8 @@
|
|
9538
8656
|
"value": "kelvin",
|
9539
8657
|
"word": "kelvin"
|
9540
8658
|
}
|
9541
|
-
]
|
8659
|
+
],
|
8660
|
+
"word": "and"
|
9542
8661
|
},
|
9543
8662
|
"range": {
|
9544
8663
|
"end": 53,
|
@@ -9770,7 +8889,7 @@
|
|
9770
8889
|
"touchedBy": [
|
9771
8890
|
"dimension#call2"
|
9772
8891
|
],
|
9773
|
-
"value": "
|
8892
|
+
"value": "equals",
|
9774
8893
|
"word": "="
|
9775
8894
|
},
|
9776
8895
|
{
|
@@ -10511,10 +9630,6 @@
|
|
10511
9630
|
"list",
|
10512
9631
|
1
|
10513
9632
|
],
|
10514
|
-
[
|
10515
|
-
"list",
|
10516
|
-
1
|
10517
|
-
],
|
10518
9633
|
[
|
10519
9634
|
"propertyOf",
|
10520
9635
|
0
|
@@ -10531,35 +9646,6 @@
|
|
10531
9646
|
},
|
10532
9647
|
{
|
10533
9648
|
"counter": 6,
|
10534
|
-
"op": [
|
10535
|
-
"list",
|
10536
|
-
1
|
10537
|
-
],
|
10538
|
-
"ops": [
|
10539
|
-
[
|
10540
|
-
"is",
|
10541
|
-
0
|
10542
|
-
],
|
10543
|
-
[
|
10544
|
-
"list",
|
10545
|
-
1
|
10546
|
-
],
|
10547
|
-
[
|
10548
|
-
"propertyOf",
|
10549
|
-
0
|
10550
|
-
],
|
10551
|
-
[
|
10552
|
-
"temperature",
|
10553
|
-
0
|
10554
|
-
],
|
10555
|
-
[
|
10556
|
-
"unit",
|
10557
|
-
0
|
10558
|
-
]
|
10559
|
-
]
|
10560
|
-
},
|
10561
|
-
{
|
10562
|
-
"counter": 7,
|
10563
9649
|
"op": [
|
10564
9650
|
"unit",
|
10565
9651
|
0
|
@@ -10584,7 +9670,7 @@
|
|
10584
9670
|
]
|
10585
9671
|
},
|
10586
9672
|
{
|
10587
|
-
"counter":
|
9673
|
+
"counter": 7,
|
10588
9674
|
"op": [
|
10589
9675
|
"temperature",
|
10590
9676
|
0
|
@@ -10605,7 +9691,7 @@
|
|
10605
9691
|
]
|
10606
9692
|
},
|
10607
9693
|
{
|
10608
|
-
"counter":
|
9694
|
+
"counter": 8,
|
10609
9695
|
"op": [
|
10610
9696
|
"propertyOf",
|
10611
9697
|
0
|
@@ -10622,7 +9708,7 @@
|
|
10622
9708
|
]
|
10623
9709
|
},
|
10624
9710
|
{
|
10625
|
-
"counter":
|
9711
|
+
"counter": 9,
|
10626
9712
|
"op": [
|
10627
9713
|
"propertyOf",
|
10628
9714
|
1
|
@@ -10639,7 +9725,7 @@
|
|
10639
9725
|
]
|
10640
9726
|
},
|
10641
9727
|
{
|
10642
|
-
"counter":
|
9728
|
+
"counter": 10,
|
10643
9729
|
"op": [
|
10644
9730
|
"is",
|
10645
9731
|
0
|
@@ -10652,7 +9738,7 @@
|
|
10652
9738
|
]
|
10653
9739
|
},
|
10654
9740
|
{
|
10655
|
-
"counter":
|
9741
|
+
"counter": 11,
|
10656
9742
|
"op": [
|
10657
9743
|
"is",
|
10658
9744
|
1
|
@@ -11177,6 +10263,7 @@
|
|
11177
10263
|
"hierarchy": "hierarchy2",
|
11178
10264
|
"math": "math2",
|
11179
10265
|
"meta": "meta2",
|
10266
|
+
"negation": "negation2",
|
11180
10267
|
"numbers": "numbers2",
|
11181
10268
|
"pos": "pos2",
|
11182
10269
|
"properties": "properties2",
|
@@ -11362,7 +10449,7 @@
|
|
11362
10449
|
"touchedBy": [
|
11363
10450
|
"dimension#call2"
|
11364
10451
|
],
|
11365
|
-
"value": "
|
10452
|
+
"value": "equals",
|
11366
10453
|
"word": "="
|
11367
10454
|
},
|
11368
10455
|
"formula": {
|
@@ -11516,6 +10603,8 @@
|
|
11516
10603
|
},
|
11517
10604
|
"meta2": {
|
11518
10605
|
},
|
10606
|
+
"negation2": {
|
10607
|
+
},
|
11519
10608
|
"numbers2": {
|
11520
10609
|
},
|
11521
10610
|
"pos2": {
|
@@ -11547,15 +10636,6 @@
|
|
11547
10636
|
"ifAble": [
|
11548
10637
|
"orAble"
|
11549
10638
|
],
|
11550
|
-
"mathematical_operator": [
|
11551
|
-
"*",
|
11552
|
-
"+",
|
11553
|
-
"/",
|
11554
|
-
"-"
|
11555
|
-
],
|
11556
|
-
"notAble": [
|
11557
|
-
"unknown"
|
11558
|
-
],
|
11559
10639
|
"object": [
|
11560
10640
|
"unknown",
|
11561
10641
|
"what",
|
@@ -11647,7 +10727,6 @@
|
|
11647
10727
|
"a",
|
11648
10728
|
"articlePOS",
|
11649
10729
|
"the",
|
11650
|
-
"notAble",
|
11651
10730
|
"whatAble",
|
11652
10731
|
"is",
|
11653
10732
|
"toAble",
|
@@ -11659,11 +10738,6 @@
|
|
11659
10738
|
"number",
|
11660
10739
|
"orAble",
|
11661
10740
|
"ifAble",
|
11662
|
-
"*",
|
11663
|
-
"mathematical_operator",
|
11664
|
-
"+",
|
11665
|
-
"/",
|
11666
|
-
"-",
|
11667
10741
|
"formula",
|
11668
10742
|
"dimension",
|
11669
10743
|
"unit",
|
@@ -11673,18 +10747,6 @@
|
|
11673
10747
|
"kelvin"
|
11674
10748
|
],
|
11675
10749
|
"parents": {
|
11676
|
-
"*": [
|
11677
|
-
"mathematical_operator"
|
11678
|
-
],
|
11679
|
-
"+": [
|
11680
|
-
"mathematical_operator"
|
11681
|
-
],
|
11682
|
-
"-": [
|
11683
|
-
"mathematical_operator"
|
11684
|
-
],
|
11685
|
-
"/": [
|
11686
|
-
"mathematical_operator"
|
11687
|
-
],
|
11688
10750
|
"a": [
|
11689
10751
|
"articlePOS"
|
11690
10752
|
],
|
@@ -11787,7 +10849,6 @@
|
|
11787
10849
|
"unknown": [
|
11788
10850
|
"hierarchyAble",
|
11789
10851
|
"object",
|
11790
|
-
"notAble",
|
11791
10852
|
"theAble",
|
11792
10853
|
"queryable"
|
11793
10854
|
],
|
@@ -11811,14 +10872,6 @@
|
|
11811
10872
|
"initHandlers": [
|
11812
10873
|
],
|
11813
10874
|
"root": {
|
11814
|
-
"*": {
|
11815
|
-
},
|
11816
|
-
"+": {
|
11817
|
-
},
|
11818
|
-
"-": {
|
11819
|
-
},
|
11820
|
-
"/": {
|
11821
|
-
},
|
11822
10875
|
"a": {
|
11823
10876
|
},
|
11824
10877
|
"articlePOS": {
|
@@ -11853,12 +10906,8 @@
|
|
11853
10906
|
},
|
11854
10907
|
"kelvin": {
|
11855
10908
|
},
|
11856
|
-
"mathematical_operator": {
|
11857
|
-
},
|
11858
10909
|
"modifies": {
|
11859
10910
|
},
|
11860
|
-
"notAble": {
|
11861
|
-
},
|
11862
10911
|
"noun": {
|
11863
10912
|
},
|
11864
10913
|
"number": {
|
@@ -12621,7 +11670,7 @@
|
|
12621
11670
|
"touchedBy": [
|
12622
11671
|
"dimension#call2"
|
12623
11672
|
],
|
12624
|
-
"value": "
|
11673
|
+
"value": "equals",
|
12625
11674
|
"word": "="
|
12626
11675
|
},
|
12627
11676
|
"generatedParenthesized": "",
|
@@ -12638,6 +11687,8 @@
|
|
12638
11687
|
"marker": "is",
|
12639
11688
|
"number": "many",
|
12640
11689
|
"one": {
|
11690
|
+
"default": true,
|
11691
|
+
"isList": true,
|
12641
11692
|
"level": 1,
|
12642
11693
|
"listable": true,
|
12643
11694
|
"marker": "list",
|
@@ -12646,7 +11697,7 @@
|
|
12646
11697
|
"end": 53,
|
12647
11698
|
"start": 0
|
12648
11699
|
},
|
12649
|
-
"text": "fahrenheit",
|
11700
|
+
"text": "fahrenheit celcuis and kelvin",
|
12650
11701
|
"types": [
|
12651
11702
|
"list",
|
12652
11703
|
"unknown"
|
@@ -12667,7 +11718,7 @@
|
|
12667
11718
|
},
|
12668
11719
|
{
|
12669
11720
|
"dead": true,
|
12670
|
-
"level":
|
11721
|
+
"level": 1,
|
12671
11722
|
"marker": "unknown",
|
12672
11723
|
"range": {
|
12673
11724
|
"end": 17,
|
@@ -12680,7 +11731,7 @@
|
|
12680
11731
|
},
|
12681
11732
|
{
|
12682
11733
|
"dead": true,
|
12683
|
-
"level":
|
11734
|
+
"level": 1,
|
12684
11735
|
"marker": "unknown",
|
12685
11736
|
"range": {
|
12686
11737
|
"end": 28,
|
@@ -12691,7 +11742,8 @@
|
|
12691
11742
|
"value": "kelvin",
|
12692
11743
|
"word": "kelvin"
|
12693
11744
|
}
|
12694
|
-
]
|
11745
|
+
],
|
11746
|
+
"word": "and"
|
12695
11747
|
},
|
12696
11748
|
"range": {
|
12697
11749
|
"end": 53,
|
@@ -12859,6 +11911,8 @@
|
|
12859
11911
|
"marker": "is",
|
12860
11912
|
"number": "many",
|
12861
11913
|
"one": {
|
11914
|
+
"default": true,
|
11915
|
+
"isList": true,
|
12862
11916
|
"level": 1,
|
12863
11917
|
"listable": true,
|
12864
11918
|
"marker": "list",
|
@@ -12867,7 +11921,7 @@
|
|
12867
11921
|
"end": 30,
|
12868
11922
|
"start": 0
|
12869
11923
|
},
|
12870
|
-
"text": "dimension and unit
|
11924
|
+
"text": "dimension and unit",
|
12871
11925
|
"types": [
|
12872
11926
|
"list",
|
12873
11927
|
"unknown"
|
@@ -12875,7 +11929,7 @@
|
|
12875
11929
|
"value": [
|
12876
11930
|
{
|
12877
11931
|
"dead": true,
|
12878
|
-
"level":
|
11932
|
+
"level": 1,
|
12879
11933
|
"marker": "unknown",
|
12880
11934
|
"range": {
|
12881
11935
|
"end": 8,
|
@@ -12888,7 +11942,7 @@
|
|
12888
11942
|
},
|
12889
11943
|
{
|
12890
11944
|
"dead": true,
|
12891
|
-
"level":
|
11945
|
+
"level": 1,
|
12892
11946
|
"marker": "unknown",
|
12893
11947
|
"range": {
|
12894
11948
|
"end": 17,
|
@@ -12899,7 +11953,8 @@
|
|
12899
11953
|
"value": "unit",
|
12900
11954
|
"word": "unit"
|
12901
11955
|
}
|
12902
|
-
]
|
11956
|
+
],
|
11957
|
+
"word": "and"
|
12903
11958
|
},
|
12904
11959
|
"range": {
|
12905
11960
|
"end": 30,
|
@@ -13067,20 +12122,6 @@
|
|
13067
12122
|
0
|
13068
12123
|
]
|
13069
12124
|
],
|
13070
|
-
[
|
13071
|
-
[
|
13072
|
-
"convertToUnits",
|
13073
|
-
0
|
13074
|
-
],
|
13075
|
-
[
|
13076
|
-
"is",
|
13077
|
-
0
|
13078
|
-
],
|
13079
|
-
[
|
13080
|
-
"what",
|
13081
|
-
0
|
13082
|
-
]
|
13083
|
-
],
|
13084
12125
|
[
|
13085
12126
|
[
|
13086
12127
|
"convertToUnits",
|
@@ -13171,6 +12212,8 @@
|
|
13171
12212
|
"marker": "is",
|
13172
12213
|
"number": "many",
|
13173
12214
|
"one": {
|
12215
|
+
"default": true,
|
12216
|
+
"isList": true,
|
13174
12217
|
"level": 1,
|
13175
12218
|
"listable": true,
|
13176
12219
|
"marker": "list",
|
@@ -13179,7 +12222,7 @@
|
|
13179
12222
|
"end": 24,
|
13180
12223
|
"start": 0
|
13181
12224
|
},
|
13182
|
-
"text": "a1 and b1
|
12225
|
+
"text": "a1 and b1",
|
13183
12226
|
"types": [
|
13184
12227
|
"list",
|
13185
12228
|
"unknown"
|
@@ -13187,7 +12230,7 @@
|
|
13187
12230
|
"value": [
|
13188
12231
|
{
|
13189
12232
|
"dead": true,
|
13190
|
-
"level":
|
12233
|
+
"level": 1,
|
13191
12234
|
"marker": "unknown",
|
13192
12235
|
"range": {
|
13193
12236
|
"end": 1,
|
@@ -13200,7 +12243,7 @@
|
|
13200
12243
|
},
|
13201
12244
|
{
|
13202
12245
|
"dead": true,
|
13203
|
-
"level":
|
12246
|
+
"level": 1,
|
13204
12247
|
"marker": "unknown",
|
13205
12248
|
"range": {
|
13206
12249
|
"end": 8,
|
@@ -13211,7 +12254,8 @@
|
|
13211
12254
|
"value": "b1",
|
13212
12255
|
"word": "b1"
|
13213
12256
|
}
|
13214
|
-
]
|
12257
|
+
],
|
12258
|
+
"word": "and"
|
13215
12259
|
},
|
13216
12260
|
"range": {
|
13217
12261
|
"end": 24,
|
@@ -13407,7 +12451,7 @@
|
|
13407
12451
|
"word": "are"
|
13408
12452
|
},
|
13409
12453
|
"error": [
|
13410
|
-
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:345:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:10)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:35)\n at Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:19)\n at args.s (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:192:47)\n at Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:978:22)\n at args.e (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:203:21)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:756:24). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = e(from).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
12454
|
+
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:387:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:16)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:14)\n at async Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:1009:22)\n at async Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:731:24)\n at async Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:5). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, async ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = (await e(from)).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = await e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, async ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = await e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
13411
12455
|
],
|
13412
12456
|
"evalue": "That is not known because there is no conversion between a1 and b1",
|
13413
12457
|
"isResponse": true,
|
@@ -13681,31 +12725,6 @@
|
|
13681
12725
|
},
|
13682
12726
|
{
|
13683
12727
|
"counter": 5,
|
13684
|
-
"op": [
|
13685
|
-
"list",
|
13686
|
-
1
|
13687
|
-
],
|
13688
|
-
"ops": [
|
13689
|
-
[
|
13690
|
-
"is",
|
13691
|
-
0
|
13692
|
-
],
|
13693
|
-
[
|
13694
|
-
"list",
|
13695
|
-
1
|
13696
|
-
],
|
13697
|
-
[
|
13698
|
-
"propertyOf",
|
13699
|
-
0
|
13700
|
-
],
|
13701
|
-
[
|
13702
|
-
"unit",
|
13703
|
-
0
|
13704
|
-
]
|
13705
|
-
]
|
13706
|
-
},
|
13707
|
-
{
|
13708
|
-
"counter": 6,
|
13709
12728
|
"op": [
|
13710
12729
|
"unit",
|
13711
12730
|
0
|
@@ -13726,7 +12745,7 @@
|
|
13726
12745
|
]
|
13727
12746
|
},
|
13728
12747
|
{
|
13729
|
-
"counter":
|
12748
|
+
"counter": 6,
|
13730
12749
|
"op": [
|
13731
12750
|
"propertyOf",
|
13732
12751
|
0
|
@@ -13743,7 +12762,7 @@
|
|
13743
12762
|
]
|
13744
12763
|
},
|
13745
12764
|
{
|
13746
|
-
"counter":
|
12765
|
+
"counter": 7,
|
13747
12766
|
"op": [
|
13748
12767
|
"propertyOf",
|
13749
12768
|
1
|
@@ -13760,7 +12779,7 @@
|
|
13760
12779
|
]
|
13761
12780
|
},
|
13762
12781
|
{
|
13763
|
-
"counter":
|
12782
|
+
"counter": 8,
|
13764
12783
|
"op": [
|
13765
12784
|
"is",
|
13766
12785
|
0
|
@@ -13773,7 +12792,7 @@
|
|
13773
12792
|
]
|
13774
12793
|
},
|
13775
12794
|
{
|
13776
|
-
"counter":
|
12795
|
+
"counter": 9,
|
13777
12796
|
"op": [
|
13778
12797
|
"is",
|
13779
12798
|
1
|
@@ -14004,6 +13023,7 @@
|
|
14004
13023
|
"hierarchy": "hierarchy2",
|
14005
13024
|
"math": "math2",
|
14006
13025
|
"meta": "meta2",
|
13026
|
+
"negation": "negation2",
|
14007
13027
|
"numbers": "numbers2",
|
14008
13028
|
"pos": "pos2",
|
14009
13029
|
"properties": "properties2",
|
@@ -14045,6 +13065,8 @@
|
|
14045
13065
|
},
|
14046
13066
|
"meta2": {
|
14047
13067
|
},
|
13068
|
+
"negation2": {
|
13069
|
+
},
|
14048
13070
|
"numbers2": {
|
14049
13071
|
},
|
14050
13072
|
"pos2": {
|
@@ -14076,15 +13098,6 @@
|
|
14076
13098
|
"ifAble": [
|
14077
13099
|
"orAble"
|
14078
13100
|
],
|
14079
|
-
"mathematical_operator": [
|
14080
|
-
"*",
|
14081
|
-
"+",
|
14082
|
-
"/",
|
14083
|
-
"-"
|
14084
|
-
],
|
14085
|
-
"notAble": [
|
14086
|
-
"unknown"
|
14087
|
-
],
|
14088
13101
|
"object": [
|
14089
13102
|
"unknown",
|
14090
13103
|
"what",
|
@@ -14175,7 +13188,6 @@
|
|
14175
13188
|
"a",
|
14176
13189
|
"articlePOS",
|
14177
13190
|
"the",
|
14178
|
-
"notAble",
|
14179
13191
|
"whatAble",
|
14180
13192
|
"is",
|
14181
13193
|
"toAble",
|
@@ -14187,11 +13199,6 @@
|
|
14187
13199
|
"number",
|
14188
13200
|
"orAble",
|
14189
13201
|
"ifAble",
|
14190
|
-
"*",
|
14191
|
-
"mathematical_operator",
|
14192
|
-
"+",
|
14193
|
-
"/",
|
14194
|
-
"-",
|
14195
13202
|
"formula",
|
14196
13203
|
"dimension",
|
14197
13204
|
"unit",
|
@@ -14200,18 +13207,6 @@
|
|
14200
13207
|
"b1"
|
14201
13208
|
],
|
14202
13209
|
"parents": {
|
14203
|
-
"*": [
|
14204
|
-
"mathematical_operator"
|
14205
|
-
],
|
14206
|
-
"+": [
|
14207
|
-
"mathematical_operator"
|
14208
|
-
],
|
14209
|
-
"-": [
|
14210
|
-
"mathematical_operator"
|
14211
|
-
],
|
14212
|
-
"/": [
|
14213
|
-
"mathematical_operator"
|
14214
|
-
],
|
14215
13210
|
"a": [
|
14216
13211
|
"articlePOS"
|
14217
13212
|
],
|
@@ -14311,7 +13306,6 @@
|
|
14311
13306
|
"unknown": [
|
14312
13307
|
"hierarchyAble",
|
14313
13308
|
"object",
|
14314
|
-
"notAble",
|
14315
13309
|
"theAble",
|
14316
13310
|
"queryable"
|
14317
13311
|
],
|
@@ -14335,14 +13329,6 @@
|
|
14335
13329
|
"initHandlers": [
|
14336
13330
|
],
|
14337
13331
|
"root": {
|
14338
|
-
"*": {
|
14339
|
-
},
|
14340
|
-
"+": {
|
14341
|
-
},
|
14342
|
-
"-": {
|
14343
|
-
},
|
14344
|
-
"/": {
|
14345
|
-
},
|
14346
13332
|
"a": {
|
14347
13333
|
},
|
14348
13334
|
"a1": {
|
@@ -14377,12 +13363,8 @@
|
|
14377
13363
|
},
|
14378
13364
|
"it": {
|
14379
13365
|
},
|
14380
|
-
"mathematical_operator": {
|
14381
|
-
},
|
14382
13366
|
"modifies": {
|
14383
13367
|
},
|
14384
|
-
"notAble": {
|
14385
|
-
},
|
14386
13368
|
"noun": {
|
14387
13369
|
},
|
14388
13370
|
"number": {
|
@@ -14618,7 +13600,7 @@
|
|
14618
13600
|
"word": "are"
|
14619
13601
|
},
|
14620
13602
|
"error": [
|
14621
|
-
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:345:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:10)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:35)\n at Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:19)\n at args.s (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:192:47)\n at Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:978:22)\n at args.e (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:203:21)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:756:24). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = e(from).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
13603
|
+
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:387:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:16)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:14)\n at async Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:1009:22)\n at async Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:731:24)\n at async Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:5). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, async ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = (await e(from)).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = await e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, async ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = await e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
14622
13604
|
],
|
14623
13605
|
"evalue": "That is not known because there is no conversion between a1 and b1",
|
14624
13606
|
"isResponse": true,
|
@@ -14683,6 +13665,8 @@
|
|
14683
13665
|
"marker": "is",
|
14684
13666
|
"number": "many",
|
14685
13667
|
"one": {
|
13668
|
+
"default": true,
|
13669
|
+
"isList": true,
|
14686
13670
|
"level": 1,
|
14687
13671
|
"listable": true,
|
14688
13672
|
"marker": "list",
|
@@ -14691,7 +13675,7 @@
|
|
14691
13675
|
"end": 24,
|
14692
13676
|
"start": 0
|
14693
13677
|
},
|
14694
|
-
"text": "a1 and b1
|
13678
|
+
"text": "a1 and b1",
|
14695
13679
|
"types": [
|
14696
13680
|
"list",
|
14697
13681
|
"unknown"
|
@@ -14699,7 +13683,7 @@
|
|
14699
13683
|
"value": [
|
14700
13684
|
{
|
14701
13685
|
"dead": true,
|
14702
|
-
"level":
|
13686
|
+
"level": 1,
|
14703
13687
|
"marker": "unknown",
|
14704
13688
|
"range": {
|
14705
13689
|
"end": 1,
|
@@ -14712,7 +13696,7 @@
|
|
14712
13696
|
},
|
14713
13697
|
{
|
14714
13698
|
"dead": true,
|
14715
|
-
"level":
|
13699
|
+
"level": 1,
|
14716
13700
|
"marker": "unknown",
|
14717
13701
|
"range": {
|
14718
13702
|
"end": 8,
|
@@ -14723,7 +13707,8 @@
|
|
14723
13707
|
"value": "b1",
|
14724
13708
|
"word": "b1"
|
14725
13709
|
}
|
14726
|
-
]
|
13710
|
+
],
|
13711
|
+
"word": "and"
|
14727
13712
|
},
|
14728
13713
|
"range": {
|
14729
13714
|
"end": 24,
|
@@ -14891,6 +13876,8 @@
|
|
14891
13876
|
"marker": "is",
|
14892
13877
|
"number": "many",
|
14893
13878
|
"one": {
|
13879
|
+
"default": true,
|
13880
|
+
"isList": true,
|
14894
13881
|
"level": 1,
|
14895
13882
|
"listable": true,
|
14896
13883
|
"marker": "list",
|
@@ -14899,7 +13886,7 @@
|
|
14899
13886
|
"end": 30,
|
14900
13887
|
"start": 0
|
14901
13888
|
},
|
14902
|
-
"text": "dimension and unit
|
13889
|
+
"text": "dimension and unit",
|
14903
13890
|
"types": [
|
14904
13891
|
"list",
|
14905
13892
|
"unknown"
|
@@ -14907,7 +13894,7 @@
|
|
14907
13894
|
"value": [
|
14908
13895
|
{
|
14909
13896
|
"dead": true,
|
14910
|
-
"level":
|
13897
|
+
"level": 1,
|
14911
13898
|
"marker": "unknown",
|
14912
13899
|
"range": {
|
14913
13900
|
"end": 8,
|
@@ -14920,7 +13907,7 @@
|
|
14920
13907
|
},
|
14921
13908
|
{
|
14922
13909
|
"dead": true,
|
14923
|
-
"level":
|
13910
|
+
"level": 1,
|
14924
13911
|
"marker": "unknown",
|
14925
13912
|
"range": {
|
14926
13913
|
"end": 17,
|
@@ -14931,7 +13918,8 @@
|
|
14931
13918
|
"value": "unit",
|
14932
13919
|
"word": "unit"
|
14933
13920
|
}
|
14934
|
-
]
|
13921
|
+
],
|
13922
|
+
"word": "and"
|
14935
13923
|
},
|
14936
13924
|
"range": {
|
14937
13925
|
"end": 30,
|
@@ -15035,132 +14023,56 @@
|
|
15035
14023
|
},
|
15036
14024
|
{
|
15037
14025
|
"context": {
|
15038
|
-
"
|
15039
|
-
|
15040
|
-
"marker": "is",
|
15041
|
-
"number": "many",
|
15042
|
-
"one": {
|
14026
|
+
"concept": {
|
14027
|
+
"dead": true,
|
15043
14028
|
"level": 1,
|
15044
|
-
"
|
15045
|
-
"marker": "list",
|
15046
|
-
"number": "many",
|
14029
|
+
"marker": "unknown",
|
15047
14030
|
"range": {
|
15048
|
-
"end":
|
15049
|
-
"start":
|
14031
|
+
"end": 29,
|
14032
|
+
"start": 22
|
15050
14033
|
},
|
15051
|
-
"text": "
|
15052
|
-
"
|
15053
|
-
|
15054
|
-
|
15055
|
-
],
|
15056
|
-
"value": [
|
15057
|
-
{
|
15058
|
-
"dead": true,
|
15059
|
-
"level": 1,
|
15060
|
-
"marker": "unknown",
|
15061
|
-
"range": {
|
15062
|
-
"end": 0,
|
15063
|
-
"start": 0
|
15064
|
-
},
|
15065
|
-
"text": "*",
|
15066
|
-
"unknown": true,
|
15067
|
-
"value": "*",
|
15068
|
-
"word": "*"
|
15069
|
-
},
|
15070
|
-
{
|
15071
|
-
"dead": true,
|
15072
|
-
"level": 1,
|
15073
|
-
"marker": "unknown",
|
15074
|
-
"range": {
|
15075
|
-
"end": 2,
|
15076
|
-
"start": 2
|
15077
|
-
},
|
15078
|
-
"text": "+",
|
15079
|
-
"unknown": true,
|
15080
|
-
"value": "+",
|
15081
|
-
"word": "+"
|
15082
|
-
},
|
15083
|
-
{
|
15084
|
-
"dead": true,
|
15085
|
-
"level": 2,
|
15086
|
-
"marker": "unknown",
|
15087
|
-
"range": {
|
15088
|
-
"end": 4,
|
15089
|
-
"start": 4
|
15090
|
-
},
|
15091
|
-
"text": "/",
|
15092
|
-
"unknown": true,
|
15093
|
-
"value": "/",
|
15094
|
-
"word": "/"
|
15095
|
-
},
|
15096
|
-
{
|
15097
|
-
"dead": true,
|
15098
|
-
"level": 2,
|
15099
|
-
"marker": "unknown",
|
15100
|
-
"range": {
|
15101
|
-
"end": 10,
|
15102
|
-
"start": 10
|
15103
|
-
},
|
15104
|
-
"text": "-",
|
15105
|
-
"unknown": true,
|
15106
|
-
"value": "-",
|
15107
|
-
"word": "-"
|
15108
|
-
}
|
15109
|
-
]
|
14034
|
+
"text": "operator",
|
14035
|
+
"unknown": true,
|
14036
|
+
"value": "operator",
|
14037
|
+
"word": "operator"
|
15110
14038
|
},
|
14039
|
+
"dead": true,
|
14040
|
+
"flatten": false,
|
14041
|
+
"level": 1,
|
14042
|
+
"marker": "modifies",
|
14043
|
+
"modifiers": [
|
14044
|
+
{
|
14045
|
+
"dead": true,
|
14046
|
+
"level": 1,
|
14047
|
+
"marker": "unknown",
|
14048
|
+
"range": {
|
14049
|
+
"end": 11,
|
14050
|
+
"start": 0
|
14051
|
+
},
|
14052
|
+
"text": "mathematical",
|
14053
|
+
"unknown": true,
|
14054
|
+
"value": "mathematical",
|
14055
|
+
"word": "mathematical"
|
14056
|
+
}
|
14057
|
+
],
|
14058
|
+
"number": "one",
|
15111
14059
|
"range": {
|
15112
|
-
"end":
|
14060
|
+
"end": 29,
|
15113
14061
|
"start": 0
|
15114
14062
|
},
|
15115
|
-
"text": "
|
14063
|
+
"text": "mathematical modifies operator",
|
15116
14064
|
"topLevel": true,
|
15117
14065
|
"touchedBy": [
|
15118
14066
|
"math#call2",
|
15119
|
-
"
|
15120
|
-
"
|
15121
|
-
"
|
14067
|
+
"instance0#math#call2",
|
14068
|
+
"instance0#formulas#call2",
|
14069
|
+
"instance0#dimension#call2"
|
15122
14070
|
],
|
15123
|
-
"
|
15124
|
-
"atomic": true,
|
15125
|
-
"concept": true,
|
15126
|
-
"dead": true,
|
15127
|
-
"level": 1,
|
15128
|
-
"marker": "mathematical_operator",
|
15129
|
-
"modifier_mathematical": {
|
15130
|
-
"level": 0,
|
15131
|
-
"marker": "mathematical",
|
15132
|
-
"range": {
|
15133
|
-
"end": 27,
|
15134
|
-
"start": 16
|
15135
|
-
},
|
15136
|
-
"text": "mathematical",
|
15137
|
-
"types": [
|
15138
|
-
"mathematical"
|
15139
|
-
],
|
15140
|
-
"value": "mathematical",
|
15141
|
-
"word": "mathematical"
|
15142
|
-
},
|
15143
|
-
"modifiers": [
|
15144
|
-
"modifier_mathematical"
|
15145
|
-
],
|
15146
|
-
"number": "many",
|
15147
|
-
"range": {
|
15148
|
-
"end": 37,
|
15149
|
-
"start": 16
|
15150
|
-
},
|
15151
|
-
"text": "mathematical operators",
|
15152
|
-
"types": [
|
15153
|
-
"mathematical_operator",
|
15154
|
-
"operator"
|
15155
|
-
],
|
15156
|
-
"value": "mathematical_operator",
|
15157
|
-
"word": "operators"
|
15158
|
-
},
|
15159
|
-
"word": "are"
|
14071
|
+
"word": "modifies"
|
15160
14072
|
},
|
15161
14073
|
"generatedParenthesized": [
|
15162
14074
|
],
|
15163
|
-
"paraphrases": "
|
14075
|
+
"paraphrases": "mathematical modifies operator",
|
15164
14076
|
"paraphrasesParenthesized": [
|
15165
14077
|
],
|
15166
14078
|
"responses": [
|
@@ -15306,6 +14218,8 @@
|
|
15306
14218
|
"marker": "is",
|
15307
14219
|
"number": "many",
|
15308
14220
|
"one": {
|
14221
|
+
"default": true,
|
14222
|
+
"isList": true,
|
15309
14223
|
"level": 1,
|
15310
14224
|
"listable": true,
|
15311
14225
|
"marker": "list",
|
@@ -15314,7 +14228,7 @@
|
|
15314
14228
|
"end": 24,
|
15315
14229
|
"start": 0
|
15316
14230
|
},
|
15317
|
-
"text": "a1 and b1
|
14231
|
+
"text": "a1 and b1",
|
15318
14232
|
"types": [
|
15319
14233
|
"list",
|
15320
14234
|
"unknown"
|
@@ -15322,7 +14236,7 @@
|
|
15322
14236
|
"value": [
|
15323
14237
|
{
|
15324
14238
|
"dead": true,
|
15325
|
-
"level":
|
14239
|
+
"level": 1,
|
15326
14240
|
"marker": "unknown",
|
15327
14241
|
"range": {
|
15328
14242
|
"end": 1,
|
@@ -15335,7 +14249,7 @@
|
|
15335
14249
|
},
|
15336
14250
|
{
|
15337
14251
|
"dead": true,
|
15338
|
-
"level":
|
14252
|
+
"level": 1,
|
15339
14253
|
"marker": "unknown",
|
15340
14254
|
"range": {
|
15341
14255
|
"end": 8,
|
@@ -15346,7 +14260,8 @@
|
|
15346
14260
|
"value": "b1",
|
15347
14261
|
"word": "b1"
|
15348
14262
|
}
|
15349
|
-
]
|
14263
|
+
],
|
14264
|
+
"word": "and"
|
15350
14265
|
},
|
15351
14266
|
"range": {
|
15352
14267
|
"end": 24,
|
@@ -15542,7 +14457,7 @@
|
|
15542
14457
|
"word": "are"
|
15543
14458
|
},
|
15544
14459
|
"error": [
|
15545
|
-
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:345:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:10)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:35)\n at Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:19)\n at args.s (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:192:47)\n at Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:978:22)\n at args.e (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:203:21)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:756:24). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = e(from).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
14460
|
+
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:387:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:16)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:14)\n at async Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:1009:22)\n at async Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:731:24)\n at async Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:5). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, async ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = (await e(from)).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = await e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, async ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = await e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
15546
14461
|
],
|
15547
14462
|
"evalue": "That is not known because there is no conversion between a1 and b1",
|
15548
14463
|
"isResponse": true,
|
@@ -16030,31 +14945,6 @@
|
|
16030
14945
|
},
|
16031
14946
|
{
|
16032
14947
|
"counter": 5,
|
16033
|
-
"op": [
|
16034
|
-
"list",
|
16035
|
-
1
|
16036
|
-
],
|
16037
|
-
"ops": [
|
16038
|
-
[
|
16039
|
-
"is",
|
16040
|
-
0
|
16041
|
-
],
|
16042
|
-
[
|
16043
|
-
"list",
|
16044
|
-
1
|
16045
|
-
],
|
16046
|
-
[
|
16047
|
-
"propertyOf",
|
16048
|
-
0
|
16049
|
-
],
|
16050
|
-
[
|
16051
|
-
"unit",
|
16052
|
-
0
|
16053
|
-
]
|
16054
|
-
]
|
16055
|
-
},
|
16056
|
-
{
|
16057
|
-
"counter": 6,
|
16058
14948
|
"op": [
|
16059
14949
|
"unit",
|
16060
14950
|
0
|
@@ -16075,7 +14965,7 @@
|
|
16075
14965
|
]
|
16076
14966
|
},
|
16077
14967
|
{
|
16078
|
-
"counter":
|
14968
|
+
"counter": 6,
|
16079
14969
|
"op": [
|
16080
14970
|
"propertyOf",
|
16081
14971
|
0
|
@@ -16092,7 +14982,7 @@
|
|
16092
14982
|
]
|
16093
14983
|
},
|
16094
14984
|
{
|
16095
|
-
"counter":
|
14985
|
+
"counter": 7,
|
16096
14986
|
"op": [
|
16097
14987
|
"propertyOf",
|
16098
14988
|
1
|
@@ -16109,7 +14999,7 @@
|
|
16109
14999
|
]
|
16110
15000
|
},
|
16111
15001
|
{
|
16112
|
-
"counter":
|
15002
|
+
"counter": 8,
|
16113
15003
|
"op": [
|
16114
15004
|
"is",
|
16115
15005
|
0
|
@@ -16122,7 +15012,7 @@
|
|
16122
15012
|
]
|
16123
15013
|
},
|
16124
15014
|
{
|
16125
|
-
"counter":
|
15015
|
+
"counter": 9,
|
16126
15016
|
"op": [
|
16127
15017
|
"is",
|
16128
15018
|
1
|
@@ -16442,6 +15332,7 @@
|
|
16442
15332
|
"hierarchy": "hierarchy2",
|
16443
15333
|
"math": "math2",
|
16444
15334
|
"meta": "meta2",
|
15335
|
+
"negation": "negation2",
|
16445
15336
|
"numbers": "numbers2",
|
16446
15337
|
"pos": "pos2",
|
16447
15338
|
"properties": "properties2",
|
@@ -16483,6 +15374,8 @@
|
|
16483
15374
|
},
|
16484
15375
|
"meta2": {
|
16485
15376
|
},
|
15377
|
+
"negation2": {
|
15378
|
+
},
|
16486
15379
|
"numbers2": {
|
16487
15380
|
},
|
16488
15381
|
"pos2": {
|
@@ -16514,15 +15407,6 @@
|
|
16514
15407
|
"ifAble": [
|
16515
15408
|
"orAble"
|
16516
15409
|
],
|
16517
|
-
"mathematical_operator": [
|
16518
|
-
"*",
|
16519
|
-
"+",
|
16520
|
-
"/",
|
16521
|
-
"-"
|
16522
|
-
],
|
16523
|
-
"notAble": [
|
16524
|
-
"unknown"
|
16525
|
-
],
|
16526
15410
|
"object": [
|
16527
15411
|
"unknown",
|
16528
15412
|
"what",
|
@@ -16613,7 +15497,6 @@
|
|
16613
15497
|
"a",
|
16614
15498
|
"articlePOS",
|
16615
15499
|
"the",
|
16616
|
-
"notAble",
|
16617
15500
|
"whatAble",
|
16618
15501
|
"is",
|
16619
15502
|
"toAble",
|
@@ -16625,11 +15508,6 @@
|
|
16625
15508
|
"number",
|
16626
15509
|
"orAble",
|
16627
15510
|
"ifAble",
|
16628
|
-
"*",
|
16629
|
-
"mathematical_operator",
|
16630
|
-
"+",
|
16631
|
-
"/",
|
16632
|
-
"-",
|
16633
15511
|
"formula",
|
16634
15512
|
"dimension",
|
16635
15513
|
"unit",
|
@@ -16638,18 +15516,6 @@
|
|
16638
15516
|
"b1"
|
16639
15517
|
],
|
16640
15518
|
"parents": {
|
16641
|
-
"*": [
|
16642
|
-
"mathematical_operator"
|
16643
|
-
],
|
16644
|
-
"+": [
|
16645
|
-
"mathematical_operator"
|
16646
|
-
],
|
16647
|
-
"-": [
|
16648
|
-
"mathematical_operator"
|
16649
|
-
],
|
16650
|
-
"/": [
|
16651
|
-
"mathematical_operator"
|
16652
|
-
],
|
16653
15519
|
"a": [
|
16654
15520
|
"articlePOS"
|
16655
15521
|
],
|
@@ -16749,7 +15615,6 @@
|
|
16749
15615
|
"unknown": [
|
16750
15616
|
"hierarchyAble",
|
16751
15617
|
"object",
|
16752
|
-
"notAble",
|
16753
15618
|
"theAble",
|
16754
15619
|
"queryable"
|
16755
15620
|
],
|
@@ -16773,14 +15638,6 @@
|
|
16773
15638
|
"initHandlers": [
|
16774
15639
|
],
|
16775
15640
|
"root": {
|
16776
|
-
"*": {
|
16777
|
-
},
|
16778
|
-
"+": {
|
16779
|
-
},
|
16780
|
-
"-": {
|
16781
|
-
},
|
16782
|
-
"/": {
|
16783
|
-
},
|
16784
15641
|
"a": {
|
16785
15642
|
},
|
16786
15643
|
"a1": {
|
@@ -16815,12 +15672,8 @@
|
|
16815
15672
|
},
|
16816
15673
|
"it": {
|
16817
15674
|
},
|
16818
|
-
"mathematical_operator": {
|
16819
|
-
},
|
16820
15675
|
"modifies": {
|
16821
15676
|
},
|
16822
|
-
"notAble": {
|
16823
|
-
},
|
16824
15677
|
"noun": {
|
16825
15678
|
},
|
16826
15679
|
"number": {
|
@@ -17277,7 +16130,7 @@
|
|
17277
16130
|
"word": "are"
|
17278
16131
|
},
|
17279
16132
|
"error": [
|
17280
|
-
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:345:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:10)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:35)\n at Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:19)\n at args.s (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:192:47)\n at Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:978:22)\n at args.e (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:203:21)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:756:24). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = e(from).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
16133
|
+
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:387:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:16)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:14)\n at async Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:1009:22)\n at async Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:731:24)\n at async Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:5). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, async ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = (await e(from)).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = await e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, async ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = await e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
17281
16134
|
],
|
17282
16135
|
"evalue": "That is not known because there is no conversion between a1 and b1",
|
17283
16136
|
"isResponse": true,
|
@@ -17342,6 +16195,8 @@
|
|
17342
16195
|
"marker": "is",
|
17343
16196
|
"number": "many",
|
17344
16197
|
"one": {
|
16198
|
+
"default": true,
|
16199
|
+
"isList": true,
|
17345
16200
|
"level": 1,
|
17346
16201
|
"listable": true,
|
17347
16202
|
"marker": "list",
|
@@ -17350,7 +16205,7 @@
|
|
17350
16205
|
"end": 24,
|
17351
16206
|
"start": 0
|
17352
16207
|
},
|
17353
|
-
"text": "a1 and b1
|
16208
|
+
"text": "a1 and b1",
|
17354
16209
|
"types": [
|
17355
16210
|
"list",
|
17356
16211
|
"unknown"
|
@@ -17358,7 +16213,7 @@
|
|
17358
16213
|
"value": [
|
17359
16214
|
{
|
17360
16215
|
"dead": true,
|
17361
|
-
"level":
|
16216
|
+
"level": 1,
|
17362
16217
|
"marker": "unknown",
|
17363
16218
|
"range": {
|
17364
16219
|
"end": 1,
|
@@ -17371,7 +16226,7 @@
|
|
17371
16226
|
},
|
17372
16227
|
{
|
17373
16228
|
"dead": true,
|
17374
|
-
"level":
|
16229
|
+
"level": 1,
|
17375
16230
|
"marker": "unknown",
|
17376
16231
|
"range": {
|
17377
16232
|
"end": 8,
|
@@ -17382,7 +16237,8 @@
|
|
17382
16237
|
"value": "b1",
|
17383
16238
|
"word": "b1"
|
17384
16239
|
}
|
17385
|
-
]
|
16240
|
+
],
|
16241
|
+
"word": "and"
|
17386
16242
|
},
|
17387
16243
|
"range": {
|
17388
16244
|
"end": 24,
|
@@ -17550,6 +16406,8 @@
|
|
17550
16406
|
"marker": "is",
|
17551
16407
|
"number": "many",
|
17552
16408
|
"one": {
|
16409
|
+
"default": true,
|
16410
|
+
"isList": true,
|
17553
16411
|
"level": 1,
|
17554
16412
|
"listable": true,
|
17555
16413
|
"marker": "list",
|
@@ -17558,7 +16416,7 @@
|
|
17558
16416
|
"end": 30,
|
17559
16417
|
"start": 0
|
17560
16418
|
},
|
17561
|
-
"text": "dimension and unit
|
16419
|
+
"text": "dimension and unit",
|
17562
16420
|
"types": [
|
17563
16421
|
"list",
|
17564
16422
|
"unknown"
|
@@ -17566,7 +16424,7 @@
|
|
17566
16424
|
"value": [
|
17567
16425
|
{
|
17568
16426
|
"dead": true,
|
17569
|
-
"level":
|
16427
|
+
"level": 1,
|
17570
16428
|
"marker": "unknown",
|
17571
16429
|
"range": {
|
17572
16430
|
"end": 8,
|
@@ -17579,7 +16437,7 @@
|
|
17579
16437
|
},
|
17580
16438
|
{
|
17581
16439
|
"dead": true,
|
17582
|
-
"level":
|
16440
|
+
"level": 1,
|
17583
16441
|
"marker": "unknown",
|
17584
16442
|
"range": {
|
17585
16443
|
"end": 17,
|
@@ -17590,7 +16448,8 @@
|
|
17590
16448
|
"value": "unit",
|
17591
16449
|
"word": "unit"
|
17592
16450
|
}
|
17593
|
-
]
|
16451
|
+
],
|
16452
|
+
"word": "and"
|
17594
16453
|
},
|
17595
16454
|
"range": {
|
17596
16455
|
"end": 30,
|
@@ -17792,6 +16651,8 @@
|
|
17792
16651
|
"marker": "is",
|
17793
16652
|
"number": "many",
|
17794
16653
|
"one": {
|
16654
|
+
"default": true,
|
16655
|
+
"isList": true,
|
17795
16656
|
"level": 1,
|
17796
16657
|
"listable": true,
|
17797
16658
|
"marker": "list",
|
@@ -17800,7 +16661,7 @@
|
|
17800
16661
|
"end": 24,
|
17801
16662
|
"start": 0
|
17802
16663
|
},
|
17803
|
-
"text": "a1 and b1
|
16664
|
+
"text": "a1 and b1",
|
17804
16665
|
"types": [
|
17805
16666
|
"list",
|
17806
16667
|
"unknown"
|
@@ -17808,7 +16669,7 @@
|
|
17808
16669
|
"value": [
|
17809
16670
|
{
|
17810
16671
|
"dead": true,
|
17811
|
-
"level":
|
16672
|
+
"level": 1,
|
17812
16673
|
"marker": "unknown",
|
17813
16674
|
"range": {
|
17814
16675
|
"end": 1,
|
@@ -17821,7 +16682,7 @@
|
|
17821
16682
|
},
|
17822
16683
|
{
|
17823
16684
|
"dead": true,
|
17824
|
-
"level":
|
16685
|
+
"level": 1,
|
17825
16686
|
"marker": "unknown",
|
17826
16687
|
"range": {
|
17827
16688
|
"end": 8,
|
@@ -17832,7 +16693,8 @@
|
|
17832
16693
|
"value": "b1",
|
17833
16694
|
"word": "b1"
|
17834
16695
|
}
|
17835
|
-
]
|
16696
|
+
],
|
16697
|
+
"word": "and"
|
17836
16698
|
},
|
17837
16699
|
"range": {
|
17838
16700
|
"end": 24,
|
@@ -18028,7 +16890,7 @@
|
|
18028
16890
|
"word": "are"
|
18029
16891
|
},
|
18030
16892
|
"error": [
|
18031
|
-
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:345:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:10)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:35)\n at Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:19)\n at args.s (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:192:47)\n at Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:978:22)\n at args.e (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:203:21)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:756:24). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = e(from).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
16893
|
+
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:387:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:16)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:14)\n at async Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:1009:22)\n at async Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:731:24)\n at async Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:5). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, async ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = (await e(from)).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = await e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, async ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = await e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
18032
16894
|
],
|
18033
16895
|
"evalue": "That is not known because there is no conversion between a1 and b1",
|
18034
16896
|
"isResponse": true,
|
@@ -18360,31 +17222,6 @@
|
|
18360
17222
|
},
|
18361
17223
|
{
|
18362
17224
|
"counter": 5,
|
18363
|
-
"op": [
|
18364
|
-
"list",
|
18365
|
-
1
|
18366
|
-
],
|
18367
|
-
"ops": [
|
18368
|
-
[
|
18369
|
-
"is",
|
18370
|
-
0
|
18371
|
-
],
|
18372
|
-
[
|
18373
|
-
"list",
|
18374
|
-
1
|
18375
|
-
],
|
18376
|
-
[
|
18377
|
-
"propertyOf",
|
18378
|
-
0
|
18379
|
-
],
|
18380
|
-
[
|
18381
|
-
"unit",
|
18382
|
-
0
|
18383
|
-
]
|
18384
|
-
]
|
18385
|
-
},
|
18386
|
-
{
|
18387
|
-
"counter": 6,
|
18388
17225
|
"op": [
|
18389
17226
|
"unit",
|
18390
17227
|
0
|
@@ -18405,7 +17242,7 @@
|
|
18405
17242
|
]
|
18406
17243
|
},
|
18407
17244
|
{
|
18408
|
-
"counter":
|
17245
|
+
"counter": 6,
|
18409
17246
|
"op": [
|
18410
17247
|
"propertyOf",
|
18411
17248
|
0
|
@@ -18422,7 +17259,7 @@
|
|
18422
17259
|
]
|
18423
17260
|
},
|
18424
17261
|
{
|
18425
|
-
"counter":
|
17262
|
+
"counter": 7,
|
18426
17263
|
"op": [
|
18427
17264
|
"propertyOf",
|
18428
17265
|
1
|
@@ -18439,7 +17276,7 @@
|
|
18439
17276
|
]
|
18440
17277
|
},
|
18441
17278
|
{
|
18442
|
-
"counter":
|
17279
|
+
"counter": 8,
|
18443
17280
|
"op": [
|
18444
17281
|
"is",
|
18445
17282
|
0
|
@@ -18452,7 +17289,7 @@
|
|
18452
17289
|
]
|
18453
17290
|
},
|
18454
17291
|
{
|
18455
|
-
"counter":
|
17292
|
+
"counter": 9,
|
18456
17293
|
"op": [
|
18457
17294
|
"is",
|
18458
17295
|
1
|
@@ -18696,6 +17533,7 @@
|
|
18696
17533
|
"hierarchy": "hierarchy2",
|
18697
17534
|
"math": "math2",
|
18698
17535
|
"meta": "meta2",
|
17536
|
+
"negation": "negation2",
|
18699
17537
|
"numbers": "numbers2",
|
18700
17538
|
"pos": "pos2",
|
18701
17539
|
"properties": "properties2",
|
@@ -18737,6 +17575,8 @@
|
|
18737
17575
|
},
|
18738
17576
|
"meta2": {
|
18739
17577
|
},
|
17578
|
+
"negation2": {
|
17579
|
+
},
|
18740
17580
|
"numbers2": {
|
18741
17581
|
},
|
18742
17582
|
"pos2": {
|
@@ -18768,15 +17608,6 @@
|
|
18768
17608
|
"ifAble": [
|
18769
17609
|
"orAble"
|
18770
17610
|
],
|
18771
|
-
"mathematical_operator": [
|
18772
|
-
"*",
|
18773
|
-
"+",
|
18774
|
-
"/",
|
18775
|
-
"-"
|
18776
|
-
],
|
18777
|
-
"notAble": [
|
18778
|
-
"unknown"
|
18779
|
-
],
|
18780
17611
|
"object": [
|
18781
17612
|
"unknown",
|
18782
17613
|
"what",
|
@@ -18867,7 +17698,6 @@
|
|
18867
17698
|
"a",
|
18868
17699
|
"articlePOS",
|
18869
17700
|
"the",
|
18870
|
-
"notAble",
|
18871
17701
|
"whatAble",
|
18872
17702
|
"is",
|
18873
17703
|
"toAble",
|
@@ -18879,11 +17709,6 @@
|
|
18879
17709
|
"number",
|
18880
17710
|
"orAble",
|
18881
17711
|
"ifAble",
|
18882
|
-
"*",
|
18883
|
-
"mathematical_operator",
|
18884
|
-
"+",
|
18885
|
-
"/",
|
18886
|
-
"-",
|
18887
17712
|
"formula",
|
18888
17713
|
"dimension",
|
18889
17714
|
"unit",
|
@@ -18892,18 +17717,6 @@
|
|
18892
17717
|
"b1"
|
18893
17718
|
],
|
18894
17719
|
"parents": {
|
18895
|
-
"*": [
|
18896
|
-
"mathematical_operator"
|
18897
|
-
],
|
18898
|
-
"+": [
|
18899
|
-
"mathematical_operator"
|
18900
|
-
],
|
18901
|
-
"-": [
|
18902
|
-
"mathematical_operator"
|
18903
|
-
],
|
18904
|
-
"/": [
|
18905
|
-
"mathematical_operator"
|
18906
|
-
],
|
18907
17720
|
"a": [
|
18908
17721
|
"articlePOS"
|
18909
17722
|
],
|
@@ -19003,7 +17816,6 @@
|
|
19003
17816
|
"unknown": [
|
19004
17817
|
"hierarchyAble",
|
19005
17818
|
"object",
|
19006
|
-
"notAble",
|
19007
17819
|
"theAble",
|
19008
17820
|
"queryable"
|
19009
17821
|
],
|
@@ -19027,14 +17839,6 @@
|
|
19027
17839
|
"initHandlers": [
|
19028
17840
|
],
|
19029
17841
|
"root": {
|
19030
|
-
"*": {
|
19031
|
-
},
|
19032
|
-
"+": {
|
19033
|
-
},
|
19034
|
-
"-": {
|
19035
|
-
},
|
19036
|
-
"/": {
|
19037
|
-
},
|
19038
17842
|
"a": {
|
19039
17843
|
},
|
19040
17844
|
"a1": {
|
@@ -19069,12 +17873,8 @@
|
|
19069
17873
|
},
|
19070
17874
|
"it": {
|
19071
17875
|
},
|
19072
|
-
"mathematical_operator": {
|
19073
|
-
},
|
19074
17876
|
"modifies": {
|
19075
17877
|
},
|
19076
|
-
"notAble": {
|
19077
|
-
},
|
19078
17878
|
"noun": {
|
19079
17879
|
},
|
19080
17880
|
"number": {
|
@@ -19375,7 +18175,7 @@
|
|
19375
18175
|
"word": "are"
|
19376
18176
|
},
|
19377
18177
|
"error": [
|
19378
|
-
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:733'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:345:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:10)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:35)\n at Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:19)\n at args.s (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:192:47)\n at Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:978:22)\n at args.e (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:203:21)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:756:24). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = e(from).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
18178
|
+
"ERROR while applying (dialogues/#4) KM 'dialogues' ordinal: 4 where: \"/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708\"\n to\n {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"text\": \"what are 10 a1 in b1\",\n \"marker\": \"is\",\n \"word\": \"are\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"one\": {\n \"query\": [\n \"what\"\n ],\n \"number\": \"many\",\n \"marker\": \"what\",\n \"value\": \"what\",\n \"default\": true,\n \"text\": \"what\",\n \"word\": \"what\",\n \"range\": {\n \"start\": 0,\n \"end\": 19\n },\n \"dead\": true,\n \"determined\": true,\n \"types\": [\n \"what\"\n ],\n \"level\": 1\n },\n \"two\": {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1\n },\n \"dead\": true,\n \"level\": 2,\n \"topLevel\": true\n}.\nError applying semantics 'what x is y?/home/dev/code/theprogrammablemind/kms/common/dialogues.js:708'. Error is ERROR while applying (dimension/#0) KM 'dimension' ordinal: 0 where: \"/home/dev/code/theprogrammablemind/kms/common/dimension.js:117\"\n to\n {\n \"marker\": \"convertToUnits\",\n \"default\": true,\n \"word\": \"in\",\n \"text\": \"10 a1 in b1\",\n \"range\": {\n \"start\": 9,\n \"end\": 19\n },\n \"dead\": true,\n \"from\": {\n \"marker\": \"dimension\",\n \"unit\": {\n \"value\": \"a1\",\n \"number\": \"one\",\n \"text\": \"a1\",\n \"marker\": \"a1\",\n \"word\": \"a1\",\n \"range\": {\n \"start\": 12,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"a1\"\n ],\n \"level\": 1\n },\n \"value\": 10,\n \"amount\": {\n \"value\": 10,\n \"instance\": true,\n \"text\": \"10\",\n \"marker\": \"number\",\n \"word\": \"10\",\n \"range\": {\n \"start\": 9,\n \"end\": 10\n },\n \"dead\": true,\n \"types\": [\n \"number\"\n ],\n \"level\": 1\n },\n \"text\": \"10 a1\",\n \"range\": {\n \"start\": 9,\n \"end\": 13\n },\n \"dead\": true,\n \"types\": [\n \"dimension\"\n ],\n \"level\": 1\n },\n \"to\": {\n \"value\": \"b1\",\n \"number\": \"one\",\n \"text\": \"b1\",\n \"marker\": \"b1\",\n \"word\": \"b1\",\n \"range\": {\n \"start\": 18,\n \"end\": 19\n },\n \"dead\": true,\n \"types\": [\n \"b1\"\n ],\n \"level\": 1\n },\n \"types\": [\n \"convertToUnits\"\n ],\n \"level\": 1,\n \"evaluate\": true\n}.\nError applying semantics '/home/dev/code/theprogrammablemind/kms/common/dimension.js:117'. Error is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true} stack is Error: {\"marker\":\"reason\",\"focusableForPhrase\":true,\"evalue\":{\"marker\":\"noconversion\",\"from\":{\"value\":\"a1\",\"number\":\"one\",\"text\":\"a1\",\"marker\":\"a1\",\"word\":\"a1\",\"range\":{\"start\":12,\"end\":13},\"dead\":true,\"types\":[\"a1\"],\"level\":1},\"to\":{\"value\":\"b1\",\"number\":\"one\",\"text\":\"b1\",\"marker\":\"b1\",\"word\":\"b1\",\"range\":{\"start\":18,\"end\":19},\"dead\":true,\"types\":[\"b1\"],\"level\":1}},\"pullFromContext\":false,\"fromSTM\":true}\n at args.error (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/client.js:169:11)\n at Object.evaluator (/home/dev/code/theprogrammablemind/kms/common/dimension.js:144:13)\n at Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:387:35)\n at Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:16)\n at Semantics.applyToContext (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:207:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Semantics.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:325:14)\n at async Config.getEvaluator (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/config.js:1009:22)\n at async Semantic.apply [as _apply] (/home/dev/code/theprogrammablemind/kms/common/dialogues.js:731:24)\n at async Semantic.apply (/home/dev/code/theprogrammablemind/kms/node_modules/theprogrammablemind/src/semantics.js:127:5). Semantic is Semantic(({ context }) => bridge.id == context.marker && context.evaluate, async ({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = (await e(from)).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = await e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n })\nsee the evaluator property. The error has a retryCall property that will recall the function that failed.'. Semantic is Semantic(({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.query, async ({context, s, log, km, objects, e}) => {\n const one = context.one;\n const two = context.two;\n let concept, value;\n if (one.query) {\n concept = one;\n value = two;\n } else {\n concept = two;\n value = one;\n }\n // km('dialogues').api.mentioned(concept)\n // TODO wtf is the next line?\n value = JSON.parse(JSON.stringify(value))\n let instance = await e(value)\n if (false && instance.evalue) {\n km('stm').api.mentioned(value)\n }\n if (instance.verbatim) {\n context.evalue = { verbatim: instance.verbatim }\n context.isResponse = true\n return\n }\n // instance.focusable = ['one', 'two']\n // concept = JSON.parse(JSON.stringify(value)) \n concept = _.cloneDeep(value) \n concept.isQuery = undefined\n // greg101\n // instance.focusableForPhrase = true\n instance.focus = true\n if (concept.hierarchy) {\n concept.focusableForPhrase = true\n }\n // concept.focus = true\n\n const many = isMany(concept) || isMany(instance)\n const evalue = {\n \"default\": true,\n \"marker\": \"is\",\n \"one\": concept,\n \"two\": instance,\n \"focusable\": ['two', 'one'],\n \"word\": many ? \"are\" : \"is\",\n \"number\": many ? \"many\" : undefined,\n }\n context.evalue = evalue\n context.isResponse = true\n }). The error has a retryCall property that will recall the function that failed.'"
|
19379
18179
|
],
|
19380
18180
|
"evalue": "That is not known because there is no conversion between a1 and b1",
|
19381
18181
|
"isResponse": true,
|
@@ -19440,6 +18240,8 @@
|
|
19440
18240
|
"marker": "is",
|
19441
18241
|
"number": "many",
|
19442
18242
|
"one": {
|
18243
|
+
"default": true,
|
18244
|
+
"isList": true,
|
19443
18245
|
"level": 1,
|
19444
18246
|
"listable": true,
|
19445
18247
|
"marker": "list",
|
@@ -19448,7 +18250,7 @@
|
|
19448
18250
|
"end": 24,
|
19449
18251
|
"start": 0
|
19450
18252
|
},
|
19451
|
-
"text": "a1 and b1
|
18253
|
+
"text": "a1 and b1",
|
19452
18254
|
"types": [
|
19453
18255
|
"list",
|
19454
18256
|
"unknown"
|
@@ -19456,7 +18258,7 @@
|
|
19456
18258
|
"value": [
|
19457
18259
|
{
|
19458
18260
|
"dead": true,
|
19459
|
-
"level":
|
18261
|
+
"level": 1,
|
19460
18262
|
"marker": "unknown",
|
19461
18263
|
"range": {
|
19462
18264
|
"end": 1,
|
@@ -19469,7 +18271,7 @@
|
|
19469
18271
|
},
|
19470
18272
|
{
|
19471
18273
|
"dead": true,
|
19472
|
-
"level":
|
18274
|
+
"level": 1,
|
19473
18275
|
"marker": "unknown",
|
19474
18276
|
"range": {
|
19475
18277
|
"end": 8,
|
@@ -19480,7 +18282,8 @@
|
|
19480
18282
|
"value": "b1",
|
19481
18283
|
"word": "b1"
|
19482
18284
|
}
|
19483
|
-
]
|
18285
|
+
],
|
18286
|
+
"word": "and"
|
19484
18287
|
},
|
19485
18288
|
"range": {
|
19486
18289
|
"end": 24,
|
@@ -19648,6 +18451,8 @@
|
|
19648
18451
|
"marker": "is",
|
19649
18452
|
"number": "many",
|
19650
18453
|
"one": {
|
18454
|
+
"default": true,
|
18455
|
+
"isList": true,
|
19651
18456
|
"level": 1,
|
19652
18457
|
"listable": true,
|
19653
18458
|
"marker": "list",
|
@@ -19656,7 +18461,7 @@
|
|
19656
18461
|
"end": 30,
|
19657
18462
|
"start": 0
|
19658
18463
|
},
|
19659
|
-
"text": "dimension and unit
|
18464
|
+
"text": "dimension and unit",
|
19660
18465
|
"types": [
|
19661
18466
|
"list",
|
19662
18467
|
"unknown"
|
@@ -19664,7 +18469,7 @@
|
|
19664
18469
|
"value": [
|
19665
18470
|
{
|
19666
18471
|
"dead": true,
|
19667
|
-
"level":
|
18472
|
+
"level": 1,
|
19668
18473
|
"marker": "unknown",
|
19669
18474
|
"range": {
|
19670
18475
|
"end": 8,
|
@@ -19677,7 +18482,7 @@
|
|
19677
18482
|
},
|
19678
18483
|
{
|
19679
18484
|
"dead": true,
|
19680
|
-
"level":
|
18485
|
+
"level": 1,
|
19681
18486
|
"marker": "unknown",
|
19682
18487
|
"range": {
|
19683
18488
|
"end": 17,
|
@@ -19688,7 +18493,8 @@
|
|
19688
18493
|
"value": "unit",
|
19689
18494
|
"word": "unit"
|
19690
18495
|
}
|
19691
|
-
]
|
18496
|
+
],
|
18497
|
+
"word": "and"
|
19692
18498
|
},
|
19693
18499
|
"range": {
|
19694
18500
|
"end": 30,
|