State lecture agreement criteria in the text notebook
Browse files- MANIFEST.json +2 -2
- notebooks/text.ipynb +115 -102
- text_annotation_submission_2026-11-18.zip +2 -2
MANIFEST.json
CHANGED
|
@@ -51,8 +51,8 @@
|
|
| 51 |
},
|
| 52 |
{
|
| 53 |
"path": "notebooks/text.ipynb",
|
| 54 |
-
"sha256": "
|
| 55 |
-
"bytes":
|
| 56 |
},
|
| 57 |
{
|
| 58 |
"path": "pyproject.toml",
|
|
|
|
| 51 |
},
|
| 52 |
{
|
| 53 |
"path": "notebooks/text.ipynb",
|
| 54 |
+
"sha256": "bb091c86633d874e423ff962488ed21cc766b49740d80295a3e4734263b92dc8",
|
| 55 |
+
"bytes": 395307
|
| 56 |
},
|
| 57 |
{
|
| 58 |
"path": "pyproject.toml",
|
notebooks/text.ipynb
CHANGED
|
@@ -45,7 +45,7 @@
|
|
| 45 |
},
|
| 46 |
{
|
| 47 |
"cell_type": "code",
|
| 48 |
-
"execution_count":
|
| 49 |
"id": "text-dependencies",
|
| 50 |
"metadata": {
|
| 51 |
"ExecuteTime": {
|
|
@@ -53,10 +53,10 @@
|
|
| 53 |
"start_time": "2026-11-18T14:21:19.627668Z"
|
| 54 |
},
|
| 55 |
"execution": {
|
| 56 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 57 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 58 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 59 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 60 |
}
|
| 61 |
},
|
| 62 |
"outputs": [
|
|
@@ -64,7 +64,7 @@
|
|
| 64 |
"name": "stdout",
|
| 65 |
"output_type": "stream",
|
| 66 |
"text": [
|
| 67 |
-
"Все зависимости уже установлены в подходящих версиях.\n"
|
| 68 |
]
|
| 69 |
}
|
| 70 |
],
|
|
@@ -92,7 +92,7 @@
|
|
| 92 |
},
|
| 93 |
{
|
| 94 |
"cell_type": "code",
|
| 95 |
-
"execution_count":
|
| 96 |
"id": "text-download",
|
| 97 |
"metadata": {
|
| 98 |
"ExecuteTime": {
|
|
@@ -100,10 +100,10 @@
|
|
| 100 |
"start_time": "2026-11-18T14:21:20.009341Z"
|
| 101 |
},
|
| 102 |
"execution": {
|
| 103 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 104 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 105 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 106 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 107 |
}
|
| 108 |
},
|
| 109 |
"outputs": [
|
|
@@ -111,7 +111,13 @@
|
|
| 111 |
"name": "stdout",
|
| 112 |
"output_type": "stream",
|
| 113 |
"text": [
|
| 114 |
-
"RuSpellGold уже скачан.\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
"Записей: 1711\n"
|
| 116 |
]
|
| 117 |
},
|
|
@@ -221,7 +227,7 @@
|
|
| 221 |
},
|
| 222 |
{
|
| 223 |
"cell_type": "code",
|
| 224 |
-
"execution_count":
|
| 225 |
"id": "eda-imports",
|
| 226 |
"metadata": {
|
| 227 |
"ExecuteTime": {
|
|
@@ -229,10 +235,10 @@
|
|
| 229 |
"start_time": "2026-11-18T14:21:20.640535Z"
|
| 230 |
},
|
| 231 |
"execution": {
|
| 232 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 233 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 234 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 235 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 236 |
}
|
| 237 |
},
|
| 238 |
"outputs": [
|
|
@@ -278,7 +284,7 @@
|
|
| 278 |
},
|
| 279 |
{
|
| 280 |
"cell_type": "code",
|
| 281 |
-
"execution_count":
|
| 282 |
"id": "eda-quality",
|
| 283 |
"metadata": {
|
| 284 |
"ExecuteTime": {
|
|
@@ -286,10 +292,10 @@
|
|
| 286 |
"start_time": "2026-11-18T14:21:20.670072Z"
|
| 287 |
},
|
| 288 |
"execution": {
|
| 289 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 290 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 291 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 292 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 293 |
}
|
| 294 |
},
|
| 295 |
"outputs": [
|
|
@@ -452,7 +458,7 @@
|
|
| 452 |
},
|
| 453 |
{
|
| 454 |
"cell_type": "code",
|
| 455 |
-
"execution_count":
|
| 456 |
"id": "eda-normalize",
|
| 457 |
"metadata": {
|
| 458 |
"ExecuteTime": {
|
|
@@ -460,10 +466,10 @@
|
|
| 460 |
"start_time": "2026-11-18T14:21:20.711378Z"
|
| 461 |
},
|
| 462 |
"execution": {
|
| 463 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 464 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 465 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 466 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 467 |
}
|
| 468 |
},
|
| 469 |
"outputs": [],
|
|
@@ -486,7 +492,7 @@
|
|
| 486 |
},
|
| 487 |
{
|
| 488 |
"cell_type": "code",
|
| 489 |
-
"execution_count":
|
| 490 |
"id": "eda-domains",
|
| 491 |
"metadata": {
|
| 492 |
"ExecuteTime": {
|
|
@@ -494,10 +500,10 @@
|
|
| 494 |
"start_time": "2026-11-18T14:21:20.724731Z"
|
| 495 |
},
|
| 496 |
"execution": {
|
| 497 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 498 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 499 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 500 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 501 |
}
|
| 502 |
},
|
| 503 |
"outputs": [
|
|
@@ -546,7 +552,7 @@
|
|
| 546 |
},
|
| 547 |
{
|
| 548 |
"cell_type": "code",
|
| 549 |
-
"execution_count":
|
| 550 |
"id": "eda-length-stats",
|
| 551 |
"metadata": {
|
| 552 |
"ExecuteTime": {
|
|
@@ -554,10 +560,10 @@
|
|
| 554 |
"start_time": "2026-11-18T14:21:20.806289Z"
|
| 555 |
},
|
| 556 |
"execution": {
|
| 557 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 558 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 559 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 560 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 561 |
}
|
| 562 |
},
|
| 563 |
"outputs": [
|
|
@@ -655,7 +661,7 @@
|
|
| 655 |
},
|
| 656 |
{
|
| 657 |
"cell_type": "code",
|
| 658 |
-
"execution_count":
|
| 659 |
"id": "eda-length-plots",
|
| 660 |
"metadata": {
|
| 661 |
"ExecuteTime": {
|
|
@@ -663,10 +669,10 @@
|
|
| 663 |
"start_time": "2026-11-18T14:21:20.829965Z"
|
| 664 |
},
|
| 665 |
"execution": {
|
| 666 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 667 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 668 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 669 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 670 |
}
|
| 671 |
},
|
| 672 |
"outputs": [
|
|
@@ -717,7 +723,7 @@
|
|
| 717 |
},
|
| 718 |
{
|
| 719 |
"cell_type": "code",
|
| 720 |
-
"execution_count":
|
| 721 |
"id": "eda-domain-lengths",
|
| 722 |
"metadata": {
|
| 723 |
"ExecuteTime": {
|
|
@@ -725,10 +731,10 @@
|
|
| 725 |
"start_time": "2026-11-18T14:21:20.981271Z"
|
| 726 |
},
|
| 727 |
"execution": {
|
| 728 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 729 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 730 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 731 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 732 |
}
|
| 733 |
},
|
| 734 |
"outputs": [
|
|
@@ -844,7 +850,7 @@
|
|
| 844 |
},
|
| 845 |
{
|
| 846 |
"cell_type": "code",
|
| 847 |
-
"execution_count":
|
| 848 |
"id": "eda-features",
|
| 849 |
"metadata": {
|
| 850 |
"ExecuteTime": {
|
|
@@ -852,10 +858,10 @@
|
|
| 852 |
"start_time": "2026-11-18T14:21:21.114924Z"
|
| 853 |
},
|
| 854 |
"execution": {
|
| 855 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 856 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 857 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 858 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 859 |
}
|
| 860 |
},
|
| 861 |
"outputs": [
|
|
@@ -944,7 +950,7 @@
|
|
| 944 |
},
|
| 945 |
{
|
| 946 |
"cell_type": "code",
|
| 947 |
-
"execution_count":
|
| 948 |
"id": "eda-changes",
|
| 949 |
"metadata": {
|
| 950 |
"ExecuteTime": {
|
|
@@ -952,10 +958,10 @@
|
|
| 952 |
"start_time": "2026-11-18T14:21:21.160416Z"
|
| 953 |
},
|
| 954 |
"execution": {
|
| 955 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 956 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 957 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 958 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 959 |
}
|
| 960 |
},
|
| 961 |
"outputs": [
|
|
@@ -1025,7 +1031,7 @@
|
|
| 1025 |
},
|
| 1026 |
{
|
| 1027 |
"cell_type": "code",
|
| 1028 |
-
"execution_count":
|
| 1029 |
"id": "eda-domain-changes",
|
| 1030 |
"metadata": {
|
| 1031 |
"ExecuteTime": {
|
|
@@ -1033,10 +1039,10 @@
|
|
| 1033 |
"start_time": "2026-11-18T14:21:21.336010Z"
|
| 1034 |
},
|
| 1035 |
"execution": {
|
| 1036 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 1037 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 1038 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 1039 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 1040 |
}
|
| 1041 |
},
|
| 1042 |
"outputs": [
|
|
@@ -1086,7 +1092,7 @@
|
|
| 1086 |
},
|
| 1087 |
{
|
| 1088 |
"cell_type": "code",
|
| 1089 |
-
"execution_count":
|
| 1090 |
"id": "eda-distance",
|
| 1091 |
"metadata": {
|
| 1092 |
"ExecuteTime": {
|
|
@@ -1094,10 +1100,10 @@
|
|
| 1094 |
"start_time": "2026-11-18T14:21:21.440089Z"
|
| 1095 |
},
|
| 1096 |
"execution": {
|
| 1097 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 1098 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 1099 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 1100 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 1101 |
}
|
| 1102 |
},
|
| 1103 |
"outputs": [
|
|
@@ -1218,7 +1224,7 @@
|
|
| 1218 |
},
|
| 1219 |
{
|
| 1220 |
"cell_type": "code",
|
| 1221 |
-
"execution_count":
|
| 1222 |
"id": "eda-operations",
|
| 1223 |
"metadata": {
|
| 1224 |
"ExecuteTime": {
|
|
@@ -1226,10 +1232,10 @@
|
|
| 1226 |
"start_time": "2026-11-18T14:21:21.578871Z"
|
| 1227 |
},
|
| 1228 |
"execution": {
|
| 1229 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 1230 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 1231 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 1232 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 1233 |
}
|
| 1234 |
},
|
| 1235 |
"outputs": [
|
|
@@ -1341,7 +1347,7 @@
|
|
| 1341 |
},
|
| 1342 |
{
|
| 1343 |
"cell_type": "code",
|
| 1344 |
-
"execution_count":
|
| 1345 |
"id": "eda-examples",
|
| 1346 |
"metadata": {
|
| 1347 |
"ExecuteTime": {
|
|
@@ -1349,10 +1355,10 @@
|
|
| 1349 |
"start_time": "2026-11-18T14:21:21.741134Z"
|
| 1350 |
},
|
| 1351 |
"execution": {
|
| 1352 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 1353 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 1354 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 1355 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 1356 |
}
|
| 1357 |
},
|
| 1358 |
"outputs": [
|
|
@@ -1496,23 +1502,23 @@
|
|
| 1496 |
"source": [
|
| 1497 |
"## Разметка текста\n",
|
| 1498 |
"\n",
|
| 1499 |
-
"
|
| 1500 |
]
|
| 1501 |
},
|
| 1502 |
{
|
| 1503 |
"cell_type": "code",
|
| 1504 |
-
"execution_count":
|
| 1505 |
"id": "pilot-load",
|
| 1506 |
"metadata": {
|
| 1507 |
"ExecuteTime": {
|
| 1508 |
-
"end_time": "2026-11-18T14:
|
| 1509 |
-
"start_time": "2026-11-18T14:
|
| 1510 |
},
|
| 1511 |
"execution": {
|
| 1512 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 1513 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 1514 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 1515 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 1516 |
}
|
| 1517 |
},
|
| 1518 |
"outputs": [],
|
|
@@ -1553,14 +1559,20 @@
|
|
| 1553 |
"id": "pilot-method",
|
| 1554 |
"metadata": {},
|
| 1555 |
"source": [
|
| 1556 |
-
"### Согласованность\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1557 |
"\n",
|
| 1558 |
-
"
|
|
|
|
|
|
|
| 1559 |
]
|
| 1560 |
},
|
| 1561 |
{
|
| 1562 |
"cell_type": "code",
|
| 1563 |
-
"execution_count":
|
| 1564 |
"id": "pilot-agreement",
|
| 1565 |
"metadata": {
|
| 1566 |
"ExecuteTime": {
|
|
@@ -1568,10 +1580,10 @@
|
|
| 1568 |
"start_time": "2026-11-18T14:21:21.791872Z"
|
| 1569 |
},
|
| 1570 |
"execution": {
|
| 1571 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 1572 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 1573 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 1574 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 1575 |
}
|
| 1576 |
},
|
| 1577 |
"outputs": [
|
|
@@ -1579,8 +1591,9 @@
|
|
| 1579 |
"name": "stdout",
|
| 1580 |
"output_type": "stream",
|
| 1581 |
"text": [
|
| 1582 |
-
"
|
| 1583 |
-
"
|
|
|
|
| 1584 |
]
|
| 1585 |
},
|
| 1586 |
{
|
|
@@ -1658,8 +1671,9 @@
|
|
| 1658 |
"expected = (matrix.sum(axis=0) * matrix.sum(axis=1)).sum() / n**2\n",
|
| 1659 |
"kappa = (observed - expected) / (1 - expected)\n",
|
| 1660 |
"\n",
|
| 1661 |
-
"print(f'
|
| 1662 |
-
"print(f'
|
|
|
|
| 1663 |
"display(matrix.set_axis(['Без правки', 'С правкой']).set_axis(\n",
|
| 1664 |
" ['Без правки', 'С правкой'], axis='columns').rename_axis(\n",
|
| 1665 |
" index='Фёдор', columns='Юлия'))\n",
|
|
@@ -1679,7 +1693,7 @@
|
|
| 1679 |
},
|
| 1680 |
{
|
| 1681 |
"cell_type": "code",
|
| 1682 |
-
"execution_count":
|
| 1683 |
"id": "pilot-export",
|
| 1684 |
"metadata": {
|
| 1685 |
"ExecuteTime": {
|
|
@@ -1687,10 +1701,10 @@
|
|
| 1687 |
"start_time": "2026-11-18T14:21:21.834254Z"
|
| 1688 |
},
|
| 1689 |
"execution": {
|
| 1690 |
-
"iopub.execute_input": "2026-11-18T14:
|
| 1691 |
-
"iopub.status.busy": "2026-11-18T14:
|
| 1692 |
-
"iopub.status.idle": "2026-11-18T14:
|
| 1693 |
-
"shell.execute_reply": "2026-11-18T14:
|
| 1694 |
}
|
| 1695 |
},
|
| 1696 |
"outputs": [
|
|
@@ -1703,7 +1717,6 @@
|
|
| 1703 |
}
|
| 1704 |
],
|
| 1705 |
"source": [
|
| 1706 |
-
"# Разбор относится к этим конкретным исходным ответам.\n",
|
| 1707 |
"input_manifest = [\n",
|
| 1708 |
" {'role': role, 'file': f'originals/{path.name}',\n",
|
| 1709 |
" 'sha256': hashlib.sha256(path.read_bytes()).hexdigest(), 'bytes': path.stat().st_size}\n",
|
|
|
|
| 45 |
},
|
| 46 |
{
|
| 47 |
"cell_type": "code",
|
| 48 |
+
"execution_count": 1,
|
| 49 |
"id": "text-dependencies",
|
| 50 |
"metadata": {
|
| 51 |
"ExecuteTime": {
|
|
|
|
| 53 |
"start_time": "2026-11-18T14:21:19.627668Z"
|
| 54 |
},
|
| 55 |
"execution": {
|
| 56 |
+
"iopub.execute_input": "2026-11-18T14:25:23.280353Z",
|
| 57 |
+
"iopub.status.busy": "2026-11-18T14:25:23.280200Z",
|
| 58 |
+
"iopub.status.idle": "2026-11-18T14:25:23.557586Z",
|
| 59 |
+
"shell.execute_reply": "2026-11-18T14:25:23.556825Z"
|
| 60 |
}
|
| 61 |
},
|
| 62 |
"outputs": [
|
|
|
|
| 64 |
"name": "stdout",
|
| 65 |
"output_type": "stream",
|
| 66 |
"text": [
|
| 67 |
+
"Все зависимости уже установлены в подходящих версиях.\r\n"
|
| 68 |
]
|
| 69 |
}
|
| 70 |
],
|
|
|
|
| 92 |
},
|
| 93 |
{
|
| 94 |
"cell_type": "code",
|
| 95 |
+
"execution_count": 2,
|
| 96 |
"id": "text-download",
|
| 97 |
"metadata": {
|
| 98 |
"ExecuteTime": {
|
|
|
|
| 100 |
"start_time": "2026-11-18T14:21:20.009341Z"
|
| 101 |
},
|
| 102 |
"execution": {
|
| 103 |
+
"iopub.execute_input": "2026-11-18T14:25:23.559424Z",
|
| 104 |
+
"iopub.status.busy": "2026-11-18T14:25:23.559314Z",
|
| 105 |
+
"iopub.status.idle": "2026-11-18T14:25:24.204988Z",
|
| 106 |
+
"shell.execute_reply": "2026-11-18T14:25:24.204542Z"
|
| 107 |
}
|
| 108 |
},
|
| 109 |
"outputs": [
|
|
|
|
| 111 |
"name": "stdout",
|
| 112 |
"output_type": "stream",
|
| 113 |
"text": [
|
| 114 |
+
"RuSpellGold уже скачан.\r\n"
|
| 115 |
+
]
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name": "stdout",
|
| 119 |
+
"output_type": "stream",
|
| 120 |
+
"text": [
|
| 121 |
"Записей: 1711\n"
|
| 122 |
]
|
| 123 |
},
|
|
|
|
| 227 |
},
|
| 228 |
{
|
| 229 |
"cell_type": "code",
|
| 230 |
+
"execution_count": 3,
|
| 231 |
"id": "eda-imports",
|
| 232 |
"metadata": {
|
| 233 |
"ExecuteTime": {
|
|
|
|
| 235 |
"start_time": "2026-11-18T14:21:20.640535Z"
|
| 236 |
},
|
| 237 |
"execution": {
|
| 238 |
+
"iopub.execute_input": "2026-11-18T14:25:24.206089Z",
|
| 239 |
+
"iopub.status.busy": "2026-11-18T14:25:24.206021Z",
|
| 240 |
+
"iopub.status.idle": "2026-11-18T14:25:24.415514Z",
|
| 241 |
+
"shell.execute_reply": "2026-11-18T14:25:24.415046Z"
|
| 242 |
}
|
| 243 |
},
|
| 244 |
"outputs": [
|
|
|
|
| 284 |
},
|
| 285 |
{
|
| 286 |
"cell_type": "code",
|
| 287 |
+
"execution_count": 4,
|
| 288 |
"id": "eda-quality",
|
| 289 |
"metadata": {
|
| 290 |
"ExecuteTime": {
|
|
|
|
| 292 |
"start_time": "2026-11-18T14:21:20.670072Z"
|
| 293 |
},
|
| 294 |
"execution": {
|
| 295 |
+
"iopub.execute_input": "2026-11-18T14:25:24.416739Z",
|
| 296 |
+
"iopub.status.busy": "2026-11-18T14:25:24.416624Z",
|
| 297 |
+
"iopub.status.idle": "2026-11-18T14:25:24.430157Z",
|
| 298 |
+
"shell.execute_reply": "2026-11-18T14:25:24.429753Z"
|
| 299 |
}
|
| 300 |
},
|
| 301 |
"outputs": [
|
|
|
|
| 458 |
},
|
| 459 |
{
|
| 460 |
"cell_type": "code",
|
| 461 |
+
"execution_count": 5,
|
| 462 |
"id": "eda-normalize",
|
| 463 |
"metadata": {
|
| 464 |
"ExecuteTime": {
|
|
|
|
| 466 |
"start_time": "2026-11-18T14:21:20.711378Z"
|
| 467 |
},
|
| 468 |
"execution": {
|
| 469 |
+
"iopub.execute_input": "2026-11-18T14:25:24.431222Z",
|
| 470 |
+
"iopub.status.busy": "2026-11-18T14:25:24.431159Z",
|
| 471 |
+
"iopub.status.idle": "2026-11-18T14:25:24.433203Z",
|
| 472 |
+
"shell.execute_reply": "2026-11-18T14:25:24.432924Z"
|
| 473 |
}
|
| 474 |
},
|
| 475 |
"outputs": [],
|
|
|
|
| 492 |
},
|
| 493 |
{
|
| 494 |
"cell_type": "code",
|
| 495 |
+
"execution_count": 6,
|
| 496 |
"id": "eda-domains",
|
| 497 |
"metadata": {
|
| 498 |
"ExecuteTime": {
|
|
|
|
| 500 |
"start_time": "2026-11-18T14:21:20.724731Z"
|
| 501 |
},
|
| 502 |
"execution": {
|
| 503 |
+
"iopub.execute_input": "2026-11-18T14:25:24.434301Z",
|
| 504 |
+
"iopub.status.busy": "2026-11-18T14:25:24.434244Z",
|
| 505 |
+
"iopub.status.idle": "2026-11-18T14:25:24.512088Z",
|
| 506 |
+
"shell.execute_reply": "2026-11-18T14:25:24.511537Z"
|
| 507 |
}
|
| 508 |
},
|
| 509 |
"outputs": [
|
|
|
|
| 552 |
},
|
| 553 |
{
|
| 554 |
"cell_type": "code",
|
| 555 |
+
"execution_count": 7,
|
| 556 |
"id": "eda-length-stats",
|
| 557 |
"metadata": {
|
| 558 |
"ExecuteTime": {
|
|
|
|
| 560 |
"start_time": "2026-11-18T14:21:20.806289Z"
|
| 561 |
},
|
| 562 |
"execution": {
|
| 563 |
+
"iopub.execute_input": "2026-11-18T14:25:24.512992Z",
|
| 564 |
+
"iopub.status.busy": "2026-11-18T14:25:24.512920Z",
|
| 565 |
+
"iopub.status.idle": "2026-11-18T14:25:24.524215Z",
|
| 566 |
+
"shell.execute_reply": "2026-11-18T14:25:24.523695Z"
|
| 567 |
}
|
| 568 |
},
|
| 569 |
"outputs": [
|
|
|
|
| 661 |
},
|
| 662 |
{
|
| 663 |
"cell_type": "code",
|
| 664 |
+
"execution_count": 8,
|
| 665 |
"id": "eda-length-plots",
|
| 666 |
"metadata": {
|
| 667 |
"ExecuteTime": {
|
|
|
|
| 669 |
"start_time": "2026-11-18T14:21:20.829965Z"
|
| 670 |
},
|
| 671 |
"execution": {
|
| 672 |
+
"iopub.execute_input": "2026-11-18T14:25:24.525118Z",
|
| 673 |
+
"iopub.status.busy": "2026-11-18T14:25:24.525053Z",
|
| 674 |
+
"iopub.status.idle": "2026-11-18T14:25:24.653664Z",
|
| 675 |
+
"shell.execute_reply": "2026-11-18T14:25:24.653334Z"
|
| 676 |
}
|
| 677 |
},
|
| 678 |
"outputs": [
|
|
|
|
| 723 |
},
|
| 724 |
{
|
| 725 |
"cell_type": "code",
|
| 726 |
+
"execution_count": 9,
|
| 727 |
"id": "eda-domain-lengths",
|
| 728 |
"metadata": {
|
| 729 |
"ExecuteTime": {
|
|
|
|
| 731 |
"start_time": "2026-11-18T14:21:20.981271Z"
|
| 732 |
},
|
| 733 |
"execution": {
|
| 734 |
+
"iopub.execute_input": "2026-11-18T14:25:24.654799Z",
|
| 735 |
+
"iopub.status.busy": "2026-11-18T14:25:24.654718Z",
|
| 736 |
+
"iopub.status.idle": "2026-11-18T14:25:24.719829Z",
|
| 737 |
+
"shell.execute_reply": "2026-11-18T14:25:24.719405Z"
|
| 738 |
}
|
| 739 |
},
|
| 740 |
"outputs": [
|
|
|
|
| 850 |
},
|
| 851 |
{
|
| 852 |
"cell_type": "code",
|
| 853 |
+
"execution_count": 10,
|
| 854 |
"id": "eda-features",
|
| 855 |
"metadata": {
|
| 856 |
"ExecuteTime": {
|
|
|
|
| 858 |
"start_time": "2026-11-18T14:21:21.114924Z"
|
| 859 |
},
|
| 860 |
"execution": {
|
| 861 |
+
"iopub.execute_input": "2026-11-18T14:25:24.720810Z",
|
| 862 |
+
"iopub.status.busy": "2026-11-18T14:25:24.720746Z",
|
| 863 |
+
"iopub.status.idle": "2026-11-18T14:25:24.729692Z",
|
| 864 |
+
"shell.execute_reply": "2026-11-18T14:25:24.729370Z"
|
| 865 |
}
|
| 866 |
},
|
| 867 |
"outputs": [
|
|
|
|
| 950 |
},
|
| 951 |
{
|
| 952 |
"cell_type": "code",
|
| 953 |
+
"execution_count": 11,
|
| 954 |
"id": "eda-changes",
|
| 955 |
"metadata": {
|
| 956 |
"ExecuteTime": {
|
|
|
|
| 958 |
"start_time": "2026-11-18T14:21:21.160416Z"
|
| 959 |
},
|
| 960 |
"execution": {
|
| 961 |
+
"iopub.execute_input": "2026-11-18T14:25:24.730760Z",
|
| 962 |
+
"iopub.status.busy": "2026-11-18T14:25:24.730695Z",
|
| 963 |
+
"iopub.status.idle": "2026-11-18T14:25:24.873361Z",
|
| 964 |
+
"shell.execute_reply": "2026-11-18T14:25:24.872911Z"
|
| 965 |
}
|
| 966 |
},
|
| 967 |
"outputs": [
|
|
|
|
| 1031 |
},
|
| 1032 |
{
|
| 1033 |
"cell_type": "code",
|
| 1034 |
+
"execution_count": 12,
|
| 1035 |
"id": "eda-domain-changes",
|
| 1036 |
"metadata": {
|
| 1037 |
"ExecuteTime": {
|
|
|
|
| 1039 |
"start_time": "2026-11-18T14:21:21.336010Z"
|
| 1040 |
},
|
| 1041 |
"execution": {
|
| 1042 |
+
"iopub.execute_input": "2026-11-18T14:25:24.874384Z",
|
| 1043 |
+
"iopub.status.busy": "2026-11-18T14:25:24.874324Z",
|
| 1044 |
+
"iopub.status.idle": "2026-11-18T14:25:24.958634Z",
|
| 1045 |
+
"shell.execute_reply": "2026-11-18T14:25:24.958296Z"
|
| 1046 |
}
|
| 1047 |
},
|
| 1048 |
"outputs": [
|
|
|
|
| 1092 |
},
|
| 1093 |
{
|
| 1094 |
"cell_type": "code",
|
| 1095 |
+
"execution_count": 13,
|
| 1096 |
"id": "eda-distance",
|
| 1097 |
"metadata": {
|
| 1098 |
"ExecuteTime": {
|
|
|
|
| 1100 |
"start_time": "2026-11-18T14:21:21.440089Z"
|
| 1101 |
},
|
| 1102 |
"execution": {
|
| 1103 |
+
"iopub.execute_input": "2026-11-18T14:25:24.959773Z",
|
| 1104 |
+
"iopub.status.busy": "2026-11-18T14:25:24.959709Z",
|
| 1105 |
+
"iopub.status.idle": "2026-11-18T14:25:25.061675Z",
|
| 1106 |
+
"shell.execute_reply": "2026-11-18T14:25:25.061324Z"
|
| 1107 |
}
|
| 1108 |
},
|
| 1109 |
"outputs": [
|
|
|
|
| 1224 |
},
|
| 1225 |
{
|
| 1226 |
"cell_type": "code",
|
| 1227 |
+
"execution_count": 14,
|
| 1228 |
"id": "eda-operations",
|
| 1229 |
"metadata": {
|
| 1230 |
"ExecuteTime": {
|
|
|
|
| 1232 |
"start_time": "2026-11-18T14:21:21.578871Z"
|
| 1233 |
},
|
| 1234 |
"execution": {
|
| 1235 |
+
"iopub.execute_input": "2026-11-18T14:25:25.062905Z",
|
| 1236 |
+
"iopub.status.busy": "2026-11-18T14:25:25.062823Z",
|
| 1237 |
+
"iopub.status.idle": "2026-11-18T14:25:25.176245Z",
|
| 1238 |
+
"shell.execute_reply": "2026-11-18T14:25:25.175814Z"
|
| 1239 |
}
|
| 1240 |
},
|
| 1241 |
"outputs": [
|
|
|
|
| 1347 |
},
|
| 1348 |
{
|
| 1349 |
"cell_type": "code",
|
| 1350 |
+
"execution_count": 15,
|
| 1351 |
"id": "eda-examples",
|
| 1352 |
"metadata": {
|
| 1353 |
"ExecuteTime": {
|
|
|
|
| 1355 |
"start_time": "2026-11-18T14:21:21.741134Z"
|
| 1356 |
},
|
| 1357 |
"execution": {
|
| 1358 |
+
"iopub.execute_input": "2026-11-18T14:25:25.177401Z",
|
| 1359 |
+
"iopub.status.busy": "2026-11-18T14:25:25.177339Z",
|
| 1360 |
+
"iopub.status.idle": "2026-11-18T14:25:25.183296Z",
|
| 1361 |
+
"shell.execute_reply": "2026-11-18T14:25:25.182925Z"
|
| 1362 |
}
|
| 1363 |
},
|
| 1364 |
"outputs": [
|
|
|
|
| 1502 |
"source": [
|
| 1503 |
"## Разметка текста\n",
|
| 1504 |
"\n",
|
| 1505 |
+
"Правила исправления описаны в [codebook](https://docs.google.com/document/d/1lx5aaPe3wv-ph6kmOpC8_nrCsd7wjaRdiBpKLUwXsyA/edit)."
|
| 1506 |
]
|
| 1507 |
},
|
| 1508 |
{
|
| 1509 |
"cell_type": "code",
|
| 1510 |
+
"execution_count": 16,
|
| 1511 |
"id": "pilot-load",
|
| 1512 |
"metadata": {
|
| 1513 |
"ExecuteTime": {
|
| 1514 |
+
"end_time": "2026-11-18T14:22:46.256433Z",
|
| 1515 |
+
"start_time": "2026-11-18T14:22:46.212687Z"
|
| 1516 |
},
|
| 1517 |
"execution": {
|
| 1518 |
+
"iopub.execute_input": "2026-11-18T14:25:25.184432Z",
|
| 1519 |
+
"iopub.status.busy": "2026-11-18T14:25:25.184371Z",
|
| 1520 |
+
"iopub.status.idle": "2026-11-18T14:25:25.191219Z",
|
| 1521 |
+
"shell.execute_reply": "2026-11-18T14:25:25.190581Z"
|
| 1522 |
}
|
| 1523 |
},
|
| 1524 |
"outputs": [],
|
|
|
|
| 1559 |
"id": "pilot-method",
|
| 1560 |
"metadata": {},
|
| 1561 |
"source": [
|
| 1562 |
+
"### Согласованность по критериям лекции\n",
|
| 1563 |
+
"\n",
|
| 1564 |
+
"Для каждого фрагмента метка — «с правкой» или «без правки». Процент согласия\n",
|
| 1565 |
+
"$P_o$ — доля одинаковых меток. $P_e$ — ожидаемая доля совпадений при независимом\n",
|
| 1566 |
+
"выборе с теми же частотами меток. Каппа Коэна: $\\kappa = (P_o - P_e) / (1 - P_e)$.\n",
|
| 1567 |
"\n",
|
| 1568 |
+
"Для этого пилота κ = 0,94 соответствует почти полному согласию по шкале лекции.\n",
|
| 1569 |
+
"Совпадение полного исправленного текста проверяем отдельно, символ в символ.\n",
|
| 1570 |
+
"Источник критериев — лекция «Разметка и генерация данных», слайды 17, 19 и 20.\n"
|
| 1571 |
]
|
| 1572 |
},
|
| 1573 |
{
|
| 1574 |
"cell_type": "code",
|
| 1575 |
+
"execution_count": 17,
|
| 1576 |
"id": "pilot-agreement",
|
| 1577 |
"metadata": {
|
| 1578 |
"ExecuteTime": {
|
|
|
|
| 1580 |
"start_time": "2026-11-18T14:21:21.791872Z"
|
| 1581 |
},
|
| 1582 |
"execution": {
|
| 1583 |
+
"iopub.execute_input": "2026-11-18T14:25:25.192481Z",
|
| 1584 |
+
"iopub.status.busy": "2026-11-18T14:25:25.192413Z",
|
| 1585 |
+
"iopub.status.idle": "2026-11-18T14:25:25.199189Z",
|
| 1586 |
+
"shell.execute_reply": "2026-11-18T14:25:25.198776Z"
|
| 1587 |
}
|
| 1588 |
},
|
| 1589 |
"outputs": [
|
|
|
|
| 1591 |
"name": "stdout",
|
| 1592 |
"output_type": "stream",
|
| 1593 |
"text": [
|
| 1594 |
+
"Согласие по меткам: 97%. Ожидаемое случайное согласие: 50%.\n",
|
| 1595 |
+
"Каппа Коэна: 0.94.\n",
|
| 1596 |
+
"Совпадение полных исправлений: 87/100 (87%).\n"
|
| 1597 |
]
|
| 1598 |
},
|
| 1599 |
{
|
|
|
|
| 1671 |
"expected = (matrix.sum(axis=0) * matrix.sum(axis=1)).sum() / n**2\n",
|
| 1672 |
"kappa = (observed - expected) / (1 - expected)\n",
|
| 1673 |
"\n",
|
| 1674 |
+
"print(f'Согласие по меткам: {observed:.0%}. Ожидаемое случайное согласие: {expected:.0%}.')\n",
|
| 1675 |
+
"print(f'Каппа Коэна: {kappa:.2f}.')\n",
|
| 1676 |
+
"print(f'Совпадение полных исправлений: {same.sum()}/{n} ({same.mean():.0%}).')\n",
|
| 1677 |
"display(matrix.set_axis(['Без правки', 'С правкой']).set_axis(\n",
|
| 1678 |
" ['Без правки', 'С правкой'], axis='columns').rename_axis(\n",
|
| 1679 |
" index='Фёдор', columns='Юлия'))\n",
|
|
|
|
| 1693 |
},
|
| 1694 |
{
|
| 1695 |
"cell_type": "code",
|
| 1696 |
+
"execution_count": 18,
|
| 1697 |
"id": "pilot-export",
|
| 1698 |
"metadata": {
|
| 1699 |
"ExecuteTime": {
|
|
|
|
| 1701 |
"start_time": "2026-11-18T14:21:21.834254Z"
|
| 1702 |
},
|
| 1703 |
"execution": {
|
| 1704 |
+
"iopub.execute_input": "2026-11-18T14:25:25.200172Z",
|
| 1705 |
+
"iopub.status.busy": "2026-11-18T14:25:25.200101Z",
|
| 1706 |
+
"iopub.status.idle": "2026-11-18T14:25:25.207188Z",
|
| 1707 |
+
"shell.execute_reply": "2026-11-18T14:25:25.206895Z"
|
| 1708 |
}
|
| 1709 |
},
|
| 1710 |
"outputs": [
|
|
|
|
| 1717 |
}
|
| 1718 |
],
|
| 1719 |
"source": [
|
|
|
|
| 1720 |
"input_manifest = [\n",
|
| 1721 |
" {'role': role, 'file': f'originals/{path.name}',\n",
|
| 1722 |
" 'sha256': hashlib.sha256(path.read_bytes()).hexdigest(), 'bytes': path.stat().st_size}\n",
|
text_annotation_submission_2026-11-18.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65b25120a94de7b169babc121d92e922144b2264381fc2636a57ec828b588b2d
|
| 3 |
+
size 513625
|