updated Tagging
This commit is contained in:
parent
79358eaf71
commit
cbccf169bb
151
Tagging/90ManualTagger.ipynb
Normal file
151
Tagging/90ManualTagger.ipynb
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"# Manual Tagger Tool"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 1,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"import ipywidgets as widgets"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 10,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"application/vnd.jupyter.widget-view+json": {
|
||||||
|
"model_id": "c7413a7a695a4770a65e4da2b6e11899",
|
||||||
|
"version_major": 2,
|
||||||
|
"version_minor": 0
|
||||||
|
},
|
||||||
|
"text/plain": [
|
||||||
|
"ToggleButtons(options=('Slow', 'Regular', 'Fast', 'Slow', 'Regular', 'Fast', 'Slow', 'Regular', 'Fast', 'Slow'…"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "display_data"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"widgets.ToggleButtons(\n",
|
||||||
|
" options=['Slow', 'Regular', 'Fast','Slow', 'Regular', 'Fast','Slow', 'Regular', 'Fast','Slow', 'Regular', 'Fast','Slow', 'Regular', 'Fast'],\n",
|
||||||
|
" disabled=False,\n",
|
||||||
|
" button_style='',#'success', #, 'info', 'warning', 'danger' or ''\n",
|
||||||
|
" tooltips=['Description of slow', 'Description of regular', 'Description of fast'],\n",
|
||||||
|
"# icons=['check'] * 3\n",
|
||||||
|
")\n",
|
||||||
|
"\n",
|
||||||
|
"\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 12,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"food_labels = ['0','action','ingredient','tool','container']"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 44,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def create_label_layout_for_sent(sentence, labels):\n",
|
||||||
|
" assert len(sentence) == len(labels)\n",
|
||||||
|
" n = len(labels)\n",
|
||||||
|
" \n",
|
||||||
|
" token_containers = []\n",
|
||||||
|
" label_containers = []\n",
|
||||||
|
" \n",
|
||||||
|
" style = widgets.ToggleButtonsStyle()\n",
|
||||||
|
" style.button_width = \"80px\"\n",
|
||||||
|
" \n",
|
||||||
|
" for i in range(n):\n",
|
||||||
|
" text = widgets.Label(sentence[i])\n",
|
||||||
|
" label = widgets.ToggleButtons(options=food_labels, style=style)\n",
|
||||||
|
" label.value = labels[i]\n",
|
||||||
|
" \n",
|
||||||
|
" label_containers.append(label)\n",
|
||||||
|
" \n",
|
||||||
|
" token_containers.append(widgets.VBox([text,label]))\n",
|
||||||
|
" \n",
|
||||||
|
" \n",
|
||||||
|
" main_container = widgets.HBox(token_containers)\n",
|
||||||
|
" \n",
|
||||||
|
" display(main_container)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"### single sentence test"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 46,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"application/vnd.jupyter.widget-view+json": {
|
||||||
|
"model_id": "3806cdff0a0c4984a1aadfc94f8229df",
|
||||||
|
"version_major": 2,
|
||||||
|
"version_minor": 0
|
||||||
|
},
|
||||||
|
"text/plain": [
|
||||||
|
"HBox(children=(VBox(children=(Label(value='this'), ToggleButtons(options=('0', 'action', 'ingredient', 'tool',…"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "display_data"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"create_label_layout_for_sent([\"this\", \"is\", \"a\", \"very\", \"very\", \"very\", \"long\", \"sentence\"], [\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"ingredient\"])"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Python 3",
|
||||||
|
"language": "python",
|
||||||
|
"name": "python3"
|
||||||
|
},
|
||||||
|
"language_info": {
|
||||||
|
"codemirror_mode": {
|
||||||
|
"name": "ipython",
|
||||||
|
"version": 3
|
||||||
|
},
|
||||||
|
"file_extension": ".py",
|
||||||
|
"mimetype": "text/x-python",
|
||||||
|
"name": "python",
|
||||||
|
"nbconvert_exporter": "python",
|
||||||
|
"pygments_lexer": "ipython3",
|
||||||
|
"version": "3.7.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 4
|
||||||
|
}
|
@ -31,7 +31,8 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"data = cdg.ConlluCRFReader(\"../\" + settings.gzipped_conllu_data_root + \"recipes2.conllu.gz\")\n",
|
"#data = cdg.ConlluCRFReader(\"../\" + settings.gzipped_conllu_data_root + \"recipes2.conllu.gz\")\n",
|
||||||
|
"data = cdg.ConlluCRFReader(\"recipes2.conllu\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"data_iterator = iter(data)"
|
"data_iterator = iter(data)"
|
||||||
]
|
]
|
||||||
@ -71,7 +72,7 @@
|
|||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"<contextlib.closing at 0x7f41527f5d30>"
|
"<contextlib.closing at 0x7fcf88625a58>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 4,
|
"execution_count": 4,
|
||||||
@ -120,7 +121,7 @@
|
|||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"643993"
|
"652706"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 6,
|
"execution_count": 6,
|
||||||
@ -146,25 +147,25 @@
|
|||||||
"data": {
|
"data": {
|
||||||
"text/markdown": [
|
"text/markdown": [
|
||||||
"\n",
|
"\n",
|
||||||
"* **\\# all tokens**: 643993\n",
|
"* **\\# all tokens**: 652706\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* **\\# real actions**: 81325\n",
|
"* **\\# real actions**: 80604\n",
|
||||||
"* **\\# predicted actions**: 82965\n",
|
"* **\\# predicted actions**: 81590\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* **\\# real ingredients**: 73596\n",
|
"* **\\# real ingredients**: 69379\n",
|
||||||
"* **\\# predicted ingredients**: 72526 \n",
|
"* **\\# predicted ingredients**: 69002 \n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* **action error**: 0.028323289228299076\n",
|
"* **action error**: 0.024752338725245404\n",
|
||||||
"* **ingredient error**: 0.028953730863534255\n",
|
"* **ingredient error**: 0.02536670415163944\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* **action true positives**: 73025 of 81325 (0.8979403627420842)\n",
|
"* **action true positives**: 73019 of 80604 (0.9058979703240534)\n",
|
||||||
"* **ingredient true positives**: 63738 of 73596 (0.866052502853416)\n",
|
"* **ingredient true positives**: 60912 of 69379 (0.877960189682757)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* **action false positives**: 9940 of 81325 (0.12222563787273286)\n",
|
"* **action false positives**: 8571 of 80604 (0.10633467321721006)\n",
|
||||||
"* **ingredient false positives**: 8788 of 73596 (0.11940866351432143)\n",
|
"* **ingredient false positives**: 8090 of 69379 (0.11660588939016128)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n"
|
"\n"
|
||||||
@ -229,9 +230,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Preheat</th><th>oven</th><th>to</th><th>350</th><th>degrees</th><th>F</th><th>and</th><th>lightly</th><th>spray</th><th>a</th><th>9x13</th><th>baking</th><th>dish</th><th>with</th><th>baking_spray</th><th>(</th><th>I</th><th>use</th><th>my</th><th>Misto</th><th>)</th><th>.</th><tr>\n",
|
"<th>Preheat</th><th>oven</th><th>to</th><th>350</th><th>degrees</th><th>F</th><th>and</th><th>lightly</th><th>spray</th><th>a</th><th>9x13</th><th>baking</th><th>dish</th><th>with</th><th>baking</th><th>spray</th><th>(</th><th>I</th><th>use</th><th>my</th><th>Misto</th><th>)</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -249,7 +250,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>In</th><th>a</th><th>large</th><th>bag</th><th>(</th><th>I</th><th>use</th><th>a</th><th>produce</th><th>bag</th><th>)</th><th>,</th><th>crush</th><th>the</th><th>crackers</th><th>into</th><th>small</th><th>pieces</th><th>and</th><th>season</th><th>with</th><th>the</th><th>kosher_salt</th><th>.</th><tr>\n",
|
"<th>In</th><th>a</th><th>large</th><th>bag</th><th>(</th><th>I</th><th>use</th><th>a</th><th>produce</th><th>bag</th><th>)</th><th>,</th><th>crush</th><th>the</th><th>crackers</th><th>into</th><th>small</th><th>pieces</th><th>and</th><th>season</th><th>with</th><th>the</th><th>kosher_salt</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -283,9 +284,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Dip</th><th>the</th><th>chicken_breast_halves</th><th>in</th><th>one</th><th>at</th><th>a</th><th>time</th><th>coating</th><th>both</th><th>sides</th><th>and</th><th>drip</th><th>any</th><th>excess</th><th>egg</th><th>back</th><th>into</th><th>the</th><th>dish</th><th>.</th><tr>\n",
|
"<th>Dip</th><th>the</th><th>chicken_breast</th><th>halves</th><th>in</th><th>one</th><th>at</th><th>a</th><th>time</th><th>coating</th><th>both</th><th>sides</th><th>and</th><th>drip</th><th>any</th><th>excess</th><th>egg</th><th>back</th><th>into</th><th>the</th><th>dish</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -319,9 +320,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Repeat</th><th>with</th><th>the</th><th>remaining</th><th>chicken</th><th>until</th><th>all</th><th>of</th><th>the</th><th>chicken_breast_halves</th><th>are</th><th>coated</th><th>.</th><tr>\n",
|
"<th>Repeat</th><th>with</th><th>the</th><th>remaining</th><th>chicken</th><th>until</th><th>all</th><th>of</th><th>the</th><th>chicken_breast</th><th>halves</th><th>are</th><th>coated</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -337,9 +338,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>In</th><th>a</th><th>large</th><th>10-inch</th><th>nonstick</th><th>skillet</th><th>,</th><th>heat</th><th>the</th><th>olive_oil</th><th>over</th><th>medium-high</th><th>heat</th><th>.</th><tr>\n",
|
"<th>In</th><th>a</th><th>large</th><th>10-inch</th><th>nonstick</th><th>skillet</th><th>,</th><th>heat</th><th>the</th><th>olive</th><th>oil</th><th>over</th><th>medium-high</th><th>heat</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -355,9 +356,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Once</th><th>hot</th><th>,</th><th>work</th><th>in</th><th>batches</th><th>,</th><th>adding</th><th>2</th><th>of</th><th>the</th><th>chicken_breast_halves</th><th>at</th><th>a</th><th>time</th><th>,</th><th>and</th><th>cook</th><th>for</th><th>3-4</th><th>minutes</th><th>per</th><th>side</th><th>.</th><tr>\n",
|
"<th>Once</th><th>hot</th><th>,</th><th>work</th><th>in</th><th>batches</th><th>,</th><th>adding</th><th>2</th><th>of</th><th>the</th><th>chicken_breast</th><th>halves</th><th>at</th><th>a</th><th>time</th><th>,</th><th>and</th><th>cook</th><th>for</th><th>3-4</th><th>minutes</th><th>per</th><th>side</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -375,7 +376,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Flip</th><th>when</th><th>you</th><th>notice</th><th>the</th><th>edges</th><th>of</th><th>the</th><th>chicken</th><th>are</th><th>a</th><th>deep</th><th>golden</th><th>and</th><th>cook</th><th>for</th><th>another</th><th>3-4</th><th>minutes</th><th>.</th><tr>\n",
|
"<th>Flip</th><th>when</th><th>you</th><th>notice</th><th>the</th><th>edges</th><th>of</th><th>the</th><th>chicken</th><th>are</th><th>a</th><th>deep</th><th>golden</th><th>and</th><th>cook</th><th>for</th><th>another</th><th>3-4</th><th>minutes</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -392,7 +393,7 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>After</th><th>each</th><th>batch</th><th>,</th><th>remove</th><th>to</th><th>a</th><th>paper</th><th>towel-lined</th><th>plate</th><th>to</th><th>absorb</th><th>any</th><th>excess</th><th>oil</th><th>and</th><th>then</th><th>arrange</th><th>in</th><th>the</th><th>prepared</th><th>9x13</th><th>baking</th><th>dish</th><th>.</th><tr>\n",
|
"<th>After</th><th>each</th><th>batch</th><th>,</th><th>remove</th><th>to</th><th>a</th><th>paper</th><th>towel-lined</th><th>plate</th><th>to</th><th>absorb</th><th>any</th><th>excess</th><th>oil</th><th>and</th><th>then</th><th>arrange</th><th>in</th><th>the</th><th>prepared</th><th>9x13</th><th>baking</th><th>dish</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
@ -428,8 +429,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Once</th><th>all</th><th>of</th><th>the</th><th>chicken</th><th>has</th><th>been</th><th>cooked</th><th>,</th><th>reduce</th><th>the</th><th>heat</th><th>to</th><th>medium</th><th>and</th><th>wipe</th><th>the</th><th>pan</th><th>out</th><th>with</th><th>paper</th><th>towel</th><th>so</th><th>only</th><th>a</th><th>trace</th><th>of</th><th>oil</th><th>is</th><th>left</th><th>in</th><th>the</th><th>pan</th><th>.</th><tr>\n",
|
"<th>Once</th><th>all</th><th>of</th><th>the</th><th>chicken</th><th>has</th><th>been</th><th>cooked</th><th>,</th><th>reduce</th><th>the</th><th>heat</th><th>to</th><th>medium</th><th>and</th><th>wipe</th><th>the</th><th>pan</th><th>out</th><th>with</th><th>paper</th><th>towel</th><th>so</th><th>only</th><th>a</th><th>trace</th><th>of</th><th>oil</th><th>is</th><th>left</th><th>in</th><th>the</th><th>pan</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -463,9 +464,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Slowly</th><th>add</th><th>in</th><th>the</th><th>tomato_sauce</th><th>and</th><th>dried_basil</th><th>.</th><tr>\n",
|
"<th>Slowly</th><th>add</th><th>in</th><th>the</th><th>tomato</th><th>sauce</th><th>and</th><th>dried</th><th>basil</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -500,8 +501,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Pour</th><th>1/3</th><th>of</th><th>the</th><th>sauce</th><th>over</th><th>top</th><th>of</th><th>the</th><th>chicken</th><th>,</th><th>leaving</th><th>pieces</th><th>exposed</th><th>.</th><tr>\n",
|
"<th>Pour</th><th>1/3</th><th>of</th><th>the</th><th>sauce</th><th>over</th><th>top</th><th>of</th><th>the</th><th>chicken</th><th>,</th><th>leaving</th><th>pieces</th><th>exposed</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -554,8 +555,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>In</th><th>the</th><th>meantime</th><th>,</th><th>bring</th><th>a</th><th>pot</th><th>of</th><th>water</th><th>to</th><th>boil</th><th>.</th><tr>\n",
|
"<th>In</th><th>the</th><th>meantime</th><th>,</th><th>bring</th><th>a</th><th>pot</th><th>of</th><th>water</th><th>to</th><th>boil</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -608,8 +609,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>After</th><th>the</th><th>30</th><th>minutes</th><th>,</th><th>remove</th><th>top</th><th>with</th><th>mozzarella</th><th>slices</th><th>and</th><th>pop</th><th>the</th><th>pan</th><th>back</th><th>into</th><th>the</th><th>oven</th><th>for</th><th>10-15</th><th>more</th><th>minutes</th><th>more</th><th>until</th><th>the</th><th>cheese</th><th>is</th><th>melted</th><th>and</th><th>bubbly</th><th>.</th><tr>\n",
|
"<th>After</th><th>the</th><th>30</th><th>minutes</th><th>,</th><th>remove</th><th>top</th><th>with</th><th>mozzarella</th><th>slices</th><th>and</th><th>pop</th><th>the</th><th>pan</th><th>back</th><th>into</th><th>the</th><th>oven</th><th>for</th><th>10-15</th><th>more</th><th>minutes</th><th>more</th><th>until</th><th>the</th><th>cheese</th><th>is</th><th>melted</th><th>and</th><th>bubbly</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -626,8 +627,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Dish</th><th>out</th><th>spaghetti</th><th>into</th><th>bowls</th><th>and</th><th>top</th><th>with</th><th>the</th><th>Parmesan</th><th>chicken</th><th>.</th><tr>\n",
|
"<th>Dish</th><th>out</th><th>spaghetti</th><th>into</th><th>bowls</th><th>and</th><th>top</th><th>with</th><th>the</th><th>Parmesan</th><th>chicken</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -662,8 +663,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Heat</th><th>the</th><th>oven</th><th>to</th><th>425</th><th>degrees</th><th>F</th><th>.</th><tr>\n",
|
"<th>Heat</th><th>the</th><th>oven</th><th>to</th><th>425</th><th>degrees</th><th>F</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -680,8 +681,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>In</th><th>a</th><th>medium</th><th>frying</th><th>pan</th><th>,</th><th>heat</th><th>the</th><th>oil</th><th>over</th><th>moderate</th><th>heat</th><th>.</th><tr>\n",
|
"<th>In</th><th>a</th><th>medium</th><th>frying</th><th>pan</th><th>,</th><th>heat</th><th>the</th><th>oil</th><th>over</th><th>moderate</th><th>heat</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>action</th><th>containers</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>action</th><th>containers</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -733,9 +734,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Mix</th><th>the</th><th>vegetables</th><th>with</th><th>the</th><th>cream_cheese</th><th>,</th><th>3/4</th><th>teaspoon</th><th>of</th><th>the</th><th>salt</th><th>,</th><th>1/4</th><th>teaspoon</th><th>of</th><th>the</th><th>black_pepper</th><th>and</th><th>dill</th><th>.</th><tr>\n",
|
"<th>Mix</th><th>the</th><th>vegetables</th><th>with</th><th>the</th><th>cream</th><th>cheese</th><th>,</th><th>3/4</th><th>teaspoon</th><th>of</th><th>the</th><th>salt</th><th>,</th><th>1/4</th><th>teaspoon</th><th>of</th><th>the</th><th>black_pepper</th><th>and</th><th>dill</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -769,9 +770,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Put</th><th>the</th><th>breasts</th><th>in</th><th>a</th><th>roasting</th><th>pan</th><th>and</th><th>spread</th><th>them</th><th>with</th><th>the</th><th>vegetable</th><th>cream_cheese</th><th>.</th><tr>\n",
|
"<th>Put</th><th>the</th><th>breasts</th><th>in</th><th>a</th><th>roasting</th><th>pan</th><th>and</th><th>spread</th><th>them</th><th>with</th><th>the</th><th>vegetable</th><th>cream</th><th>cheese</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -841,9 +842,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>In</th><th>a</th><th>heavy</th><th>saucepan</th><th>,</th><th>combine</th><th>chips</th><th>,</th><th>1/4</th><th>c</th><th>milk</th><th>and</th><th>the</th><th>whipping_cream</th><th>.</th><tr>\n",
|
"<th>In</th><th>a</th><th>heavy</th><th>saucepan</th><th>,</th><th>combine</th><th>chips</th><th>,</th><th>1/4</th><th>c</th><th>milk</th><th>and</th><th>the</th><th>whipping</th><th>cream</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -861,7 +862,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Cook</th><th>and</th><th>stir</th><th>over</th><th>low</th><th>heat</th><th>until</th><th>chips</th><th>are</th><th>melted</th><th>.</th><tr>\n",
|
"<th>Cook</th><th>and</th><th>stir</th><th>over</th><th>low</th><th>heat</th><th>until</th><th>chips</th><th>are</th><th>melted</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -896,8 +897,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>(</th><th>If</th><th>you</th><th>do</th><th>n't</th><th>melt</th><th>the</th><th>chips</th><th>on</th><th>high</th><th>heat</th><th>,</th><th>it</th><th>will</th><th>only</th><th>take</th><th>a</th><th>1/2</th><th>hour</th><th>to</th><th>cool</th><th>)</th><th>Place</th><th>the</th><th>remaining</th><th>milk</th><th>in</th><th>a</th><th>mixing</th><th>bowl</th><th>;</th><th>beat</th><th>in</th><th>the</th><th>pudding</th><th>mixes</th><th>on</th><th>low</th><th>speed</th><th>for</th><th>2</th><th>minutes</th><th>.</th><tr>\n",
|
"<th>(</th><th>If</th><th>you</th><th>do</th><th>n't</th><th>melt</th><th>the</th><th>chips</th><th>on</th><th>high</th><th>heat</th><th>,</th><th>it</th><th>will</th><th>only</th><th>take</th><th>a</th><th>1/2</th><th>hour</th><th>to</th><th>cool</th><th>)</th><th>Place</th><th>the</th><th>remaining</th><th>milk</th><th>in</th><th>a</th><th>mixing</th><th>bowl</th><th>;</th><th>beat</th><th>in</th><th>the</th><th>pudding</th><th>mixes</th><th>on</th><th>low</th><th>speed</th><th>for</th><th>2</th><th>minutes</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -914,8 +915,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>To</th><th>assemble</th><th>,</th><th>crumble</th><th>half</th><th>the</th><th>cake</th><th>into</th><th>a</th><th>4</th><th>qt</th><th>trifle</th><th>bowl</th><th>or</th><th>large</th><th>bowl</th><th>.</th><tr>\n",
|
"<th>To</th><th>assemble</th><th>,</th><th>crumble</th><th>half</th><th>the</th><th>cake</th><th>into</th><th>a</th><th>4</th><th>qt</th><th>trifle</th><th>bowl</th><th>or</th><th>large</th><th>bowl</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -931,9 +932,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Layer</th><th>with</th><th>1/2</th><th>the</th><th>peanut_butter</th><th>sauce</th><th>,</th><th>pudding</th><th>,</th><th>whipped_topping</th><th>and</th><th>then</th><th>repeat</th><th>layers</th><th>.</th><tr>\n",
|
"<th>Layer</th><th>with</th><th>1/2</th><th>the</th><th>peanut_butter</th><th>sauce</th><th>,</th><th>pudding</th><th>,</th><th>whipped</th><th>topping</th><th>and</th><th>then</th><th>repeat</th><th>layers</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -950,8 +951,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>At</th><th>the</th><th>end</th><th>,</th><th>add</th><th>the</th><th>crumbled</th><th>peanut_butter</th><th>cups</th><th>.</th><tr>\n",
|
"<th>At</th><th>the</th><th>end</th><th>,</th><th>add</th><th>the</th><th>crumbled</th><th>peanut_butter</th><th>cups</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1004,8 +1005,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Heat</th><th>the</th><th>oven</th><th>to</th><th>400</th><th>.</th><tr>\n",
|
"<th>Heat</th><th>the</th><th>oven</th><th>to</th><th>400</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1040,8 +1041,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Put</th><th>them</th><th>on</th><th>a</th><th>rimmed</th><th>baking</th><th>sheet</th><th>and</th><th>cook</th><th>,</th><th>undisturbed</th><th>,</th><th>until</th><th>you</th><th>can</th><th>pierce</th><th>them</th><th>easily</th><th>with</th><th>a</th><th>thin-bladed</th><th>knife</th><th>,</th><th>60</th><th>to</th><th>90</th><th>minutes</th><th>.</th><tr>\n",
|
"<th>Put</th><th>them</th><th>on</th><th>a</th><th>rimmed</th><th>baking</th><th>sheet</th><th>and</th><th>cook</th><th>,</th><th>undisturbed</th><th>,</th><th>until</th><th>you</th><th>can</th><th>pierce</th><th>them</th><th>easily</th><th>with</th><th>a</th><th>thin-bladed</th><th>knife</th><th>,</th><th>60</th><th>to</th><th>90</th><th>minutes</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1059,7 +1060,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Once</th><th>the</th><th>beets</th><th>have</th><th>cooled</th><th>,</th><th>peel</th><th>them</th><th>(</th><th>I</th><th>like</th><th>to</th><th>rub</th><th>the</th><th>skin</th><th>off</th><th>under</th><th>running</th><th>water</th><th>)</th><th>,</th><th>and</th><th>cut</th><th>them</th><th>into</th><th>chunks</th><th>.</th><tr>\n",
|
"<th>Once</th><th>the</th><th>beets</th><th>have</th><th>cooled</th><th>,</th><th>peel</th><th>them</th><th>(</th><th>I</th><th>like</th><th>to</th><th>rub</th><th>the</th><th>skin</th><th>off</th><th>under</th><th>running</th><th>water</th><th>)</th><th>,</th><th>and</th><th>cut</th><th>them</th><th>into</th><th>chunks</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1076,8 +1077,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Put</th><th>the</th><th>walnuts</th><th>in</th><th>a</th><th>dry</th><th>skillet</th><th>over</th><th>medium</th><th>heat</th><th>and</th><th>cook</th><th>,</th><th>shaking</th><th>the</th><th>pan</th><th>frequently</th><th>,</th><th>until</th><th>fragrant</th><th>and</th><th>beginning</th><th>to</th><th>darken</th><th>,</th><th>3</th><th>to</th><th>5</th><th>minutes</th><th>.</th><tr>\n",
|
"<th>Put</th><th>the</th><th>walnuts</th><th>in</th><th>a</th><th>dry</th><th>skillet</th><th>over</th><th>medium</th><th>heat</th><th>and</th><th>cook</th><th>,</th><th>shaking</th><th>the</th><th>pan</th><th>frequently</th><th>,</th><th>until</th><th>fragrant</th><th>and</th><th>beginning</th><th>to</th><th>darken</th><th>,</th><th>3</th><th>to</th><th>5</th><th>minutes</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1112,8 +1113,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Combine</th><th>the</th><th>oil</th><th>,</th><th>vinegar</th><th>,</th><th>shallot</th><th>and</th><th>Dijon</th><th>in</th><th>a</th><th>jar</th><th>with</th><th>a</th><th>sprinkle</th><th>of</th><th>salt</th><th>and</th><th>pepper</th><th>.</th><tr>\n",
|
"<th>Combine</th><th>the</th><th>oil</th><th>,</th><th>vinegar</th><th>,</th><th>shallot</th><th>and</th><th>Dijon</th><th>in</th><th>a</th><th>jar</th><th>with</th><th>a</th><th>sprinkle</th><th>of</th><th>salt</th><th>and</th><th>pepper</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1131,7 +1132,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Screw</th><th>the</th><th>lid</th><th>on</th><th>tightly</th><th>and</th><th>shake</th><th>vigorously</th><th>until</th><th>the</th><th>dressing</th><th>becomes</th><th>thick</th><th>and</th><th>creamy</th><th>.</th><tr>\n",
|
"<th>Screw</th><th>the</th><th>lid</th><th>on</th><th>tightly</th><th>and</th><th>shake</th><th>vigorously</th><th>until</th><th>the</th><th>dressing</th><th>becomes</th><th>thick</th><th>and</th><th>creamy</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1148,8 +1149,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Taste</th><th>and</th><th>adjust</th><th>the</th><th>seasoning</th><th>.</th><tr>\n",
|
"<th>Taste</th><th>and</th><th>adjust</th><th>the</th><th>seasoning</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1184,8 +1185,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Put</th><th>the</th><th>beets</th><th>in</th><th>the</th><th>bowl</th><th>,</th><th>toss</th><th>with</th><th>some</th><th>of</th><th>the</th><th>dressing</th><th>and</th><th>arrange</th><th>them</th><th>on</th><th>top</th><th>of</th><th>or</th><th>around</th><th>the</th><th>greens</th><th>.</th><tr>\n",
|
"<th>Put</th><th>the</th><th>beets</th><th>in</th><th>the</th><th>bowl</th><th>,</th><th>toss</th><th>with</th><th>some</th><th>of</th><th>the</th><th>dressing</th><th>and</th><th>arrange</th><th>them</th><th>on</th><th>top</th><th>of</th><th>or</th><th>around</th><th>the</th><th>greens</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1201,9 +1202,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Crumble</th><th>the</th><th>goat_cheese</th><th>on</th><th>top</th><th>,</th><th>and</th><th>serve</th><th>.</th><tr>\n",
|
"<th>Crumble</th><th>the</th><th>goat</th><th>cheese</th><th>on</th><th>top</th><th>,</th><th>and</th><th>serve</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1238,8 +1239,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Turn</th><th>the</th><th>heat</th><th>to</th><th>medium-high</th><th>under</th><th>a</th><th>casserole</th><th>or</th><th>deep</th><th>skillet</th><th>at</th><th>least</th><th>12</th><th>inches</th><th>across</th><th>;</th><th>a</th><th>minute</th><th>later</th><th>,</th><th>add</th><th>the</th><th>goose</th><th>pieces</th><th>,</th><th>skin</th><th>side</th><th>down</th><th>.</th><tr>\n",
|
"<th>Turn</th><th>the</th><th>heat</th><th>to</th><th>medium-high</th><th>under</th><th>a</th><th>casserole</th><th>or</th><th>deep</th><th>skillet</th><th>at</th><th>least</th><th>12</th><th>inches</th><th>across</th><th>;</th><th>a</th><th>minute</th><th>later</th><th>,</th><th>add</th><th>the</th><th>goose</th><th>pieces</th><th>,</th><th>skin</th><th>side</th><th>down</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1257,7 +1258,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Cook</th><th>,</th><th>rearranging</th><th>the</th><th>pieces</th><th>now</th><th>and</th><th>then</th><th>so</th><th>that</th><th>they</th><th>brown</th><th>evenly</th><th>,</th><th>until</th><th>nicely</th><th>browned</th><th>and</th><th>rendered</th><th>of</th><th>fat</th><th>,</th><th>10</th><th>to</th><th>15</th><th>minutes</th><th>.</th><tr>\n",
|
"<th>Cook</th><th>,</th><th>rearranging</th><th>the</th><th>pieces</th><th>now</th><th>and</th><th>then</th><th>so</th><th>that</th><th>they</th><th>brown</th><th>evenly</th><th>,</th><th>until</th><th>nicely</th><th>browned</th><th>and</th><th>rendered</th><th>of</th><th>fat</th><th>,</th><th>10</th><th>to</th><th>15</th><th>minutes</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1327,9 +1328,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Add</th><th>the</th><th>onions</th><th>,</th><th>bay_leaves</th><th>,</th><th>and</th><th>thyme</th><th>and</th><th>cook</th><th>,</th><th>stirring</th><th>occasionally</th><th>and</th><th>seasoning</th><th>with</th><th>salt</th><th>and</th><th>pepper</th><th>,</th><th>until</th><th>the</th><th>onions</th><th>are</th><th>softened</th><th>,</th><th>about</th><th>10</th><th>minutes</th><th>.</th><tr>\n",
|
"<th>Add</th><th>the</th><th>onions</th><th>,</th><th>bay</th><th>leaves</th><th>,</th><th>and</th><th>thyme</th><th>and</th><th>cook</th><th>,</th><th>stirring</th><th>occasionally</th><th>and</th><th>seasoning</th><th>with</th><th>salt</th><th>and</th><th>pepper</th><th>,</th><th>until</th><th>the</th><th>onions</th><th>are</th><th>softened</th><th>,</th><th>about</th><th>10</th><th>minutes</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1345,9 +1346,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Add</th><th>the</th><th>dried_fruit</th><th>and</th><th>cook</th><th>for</th><th>another</th><th>minute</th><th>or</th><th>two</th><th>,</th><th>stirring</th><th>occasionally</th><th>.</th><tr>\n",
|
"<th>Add</th><th>the</th><th>dried</th><th>fruit</th><th>and</th><th>cook</th><th>for</th><th>another</th><th>minute</th><th>or</th><th>two</th><th>,</th><th>stirring</th><th>occasionally</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1401,7 +1402,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Cover</th><th>and</th><th>cook</th><th>(</th><th>the</th><th>mixture</th><th>should</th><th>be</th><th>bubbling</th><th>,</th><th>but</th><th>barely</th><th>)</th><th>for</th><th>at</th><th>least</th><th>2</th><th>hours</th><th>,</th><th>turning</th><th>only</th><th>once</th><th>or</th><th>twice</th><th>,</th><th>until</th><th>the</th><th>goose</th><th>is</th><th>very</th><th>tender</th><th>.</th><tr>\n",
|
"<th>Cover</th><th>and</th><th>cook</th><th>(</th><th>the</th><th>mixture</th><th>should</th><th>be</th><th>bubbling</th><th>,</th><th>but</th><th>barely</th><th>)</th><th>for</th><th>at</th><th>least</th><th>2</th><th>hours</th><th>,</th><th>turning</th><th>only</th><th>once</th><th>or</th><th>twice</th><th>,</th><th>until</th><th>the</th><th>goose</th><th>is</th><th>very</th><th>tender</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1418,7 +1419,7 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Add</th><th>the</th><th>vinegar</th><th>,</th><th>sliced</th><th>fruit</th><th>,</th><th>and</th><th>a</th><th>good</th><th>grinding</th><th>of</th><th>black_pepper</th><th>and</th><th>cook</th><th>,</th><th>stirring</th><th>occasionally</th><th>,</th><th>until</th><th>the</th><th>fruit</th><th>is</th><th>tender</th><th>,</th><th>10</th><th>to</th><th>15</th><th>minutes</th><th>.</th><tr>\n",
|
"<th>Add</th><th>the</th><th>vinegar</th><th>,</th><th>sliced</th><th>fruit</th><th>,</th><th>and</th><th>a</th><th>good</th><th>grinding</th><th>of</th><th>black_pepper</th><th>and</th><th>cook</th><th>,</th><th>stirring</th><th>occasionally</th><th>,</th><th>until</th><th>the</th><th>fruit</th><th>is</th><th>tender</th><th>,</th><th>10</th><th>to</th><th>15</th><th>minutes</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
@ -1436,8 +1437,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Taste</th><th>and</th><th>adjust</th><th>the</th><th>seasoning</th><th>.</th><tr>\n",
|
"<th>Taste</th><th>and</th><th>adjust</th><th>the</th><th>seasoning</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1472,8 +1473,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Oven</th><th>at</th><th>350</th><th>degrees</th><th>.</th><tr>\n",
|
"<th>Oven</th><th>at</th><th>350</th><th>degrees</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1489,9 +1490,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Slice_apples</th><th>into</th><th>medium</th><th>saucepan</th><th>.</th><tr>\n",
|
"<th>Slice</th><th>apples</th><th>into</th><th>medium</th><th>saucepan</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1507,9 +1508,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Mix</th><th>cornstarch</th><th>and</th><th>apple_juice</th><th>.</th><tr>\n",
|
"<th>Mix</th><th>cornstarch</th><th>and</th><th>apple</th><th>juice</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1544,7 +1545,7 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Mix</th><th>should</th><th>be</th><th>at</th><th>a</th><th>slightly</th><th>lower</th><th>level</th><th>than</th><th>apples</th><th>(</th><th>about</th><th>1/4</th><th>)</th><th>.</th><tr>\n",
|
"<th>Mix</th><th>should</th><th>be</th><th>at</th><th>a</th><th>slightly</th><th>lower</th><th>level</th><th>than</th><th>apples</th><th>(</th><th>about</th><th>1/4</th><th>)</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
@ -1561,9 +1562,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Cook_apples</th><th>and</th><th>juice</th><th>mix</th><th>over</th><th>medium</th><th>high</th><th>heat</th><th>till</th><th>liquid</th><th>is</th><th>thick</th><th>.</th><tr>\n",
|
"<th>Cook</th><th>apples</th><th>and</th><th>juice</th><th>mix</th><th>over</th><th>medium</th><th>high</th><th>heat</th><th>till</th><th>liquid</th><th>is</th><th>thick</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>ingredient</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>ingredient</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>ingredient</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>ingredient</th><th>0</th><th>ingredient</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>containers</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1598,8 +1599,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Prepare</th><th>topping</th><th>by</th><th>combining</th><th>dry</th><th>ingredients</th><th>first</th><th>(</th><th>except</th><th>for</th><th>nutmeg</th><th>and</th><th>cinnamon</th><th>)</th><th>then</th><th>mixing</th><th>with</th><th>butter</th><th>till</th><th>topping</th><th>resembles</th><th>coarse</th><th>crumbs</th><th>.</th><tr>\n",
|
"<th>Prepare</th><th>topping</th><th>by</th><th>combining</th><th>dry</th><th>ingredients</th><th>first</th><th>(</th><th>except</th><th>for</th><th>nutmeg</th><th>and</th><th>cinnamon</th><th>)</th><th>then</th><th>mixing</th><th>with</th><th>butter</th><th>till</th><th>topping</th><th>resembles</th><th>coarse</th><th>crumbs</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1615,9 +1616,9 @@
|
|||||||
"<table>\n",
|
"<table>\n",
|
||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Place</th><th>cooked_apples</th><th>in</th><th>a</th><th>shallow</th><th>casserole</th><th>dish</th><th>or</th><th>possibly</th><th>a</th><th>square</th><th>8</th><th>x</th><th>8</th><th>x</th><th>2</th><th>or</th><th>possibly</th><th>9</th><th>x</th><th>9</th><th>x</th><th>2</th><th>inch</th><th>baking</th><th>pan</th><th>.</th><tr>\n",
|
"<th>Place</th><th>cooked</th><th>apples</th><th>in</th><th>a</th><th>shallow</th><th>casserole</th><th>dish</th><th>or</th><th>possibly</th><th>a</th><th>square</th><th>8</th><th>x</th><th>8</th><th>x</th><th>2</th><th>or</th><th>possibly</th><th>9</th><th>x</th><th>9</th><th>x</th><th>2</th><th>inch</th><th>baking</th><th>pan</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>containers</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>containers</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1652,7 +1653,7 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Cover</th><th>with</th><th>topping</th><th>and</th><th>sprinkle</th><th>nutmeg</th><th>in</th><th>desired</th><th>amount</th><th>over</th><th>topping</th><th>.</th><tr>\n",
|
"<th>Cover</th><th>with</th><th>topping</th><th>and</th><th>sprinkle</th><th>nutmeg</th><th>in</th><th>desired</th><th>amount</th><th>over</th><th>topping</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
@ -1670,8 +1671,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Sprinkle</th><th>nuts</th><th>over</th><th>topping</th><th>if</th><th>you</th><th>like</th><th>.</th><tr>\n",
|
"<th>Sprinkle</th><th>nuts</th><th>over</th><th>topping</th><th>if</th><th>you</th><th>like</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>ingredient</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1760,8 +1761,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Transfer</th><th>to</th><th>a</th><th>mixing</th><th>bowl</th><th>;</th><th>then</th><th>gradually</th><th>add</th><th>flour</th><th>while</th><th>mixing</th><th>with</th><th>fingers</th><th>,</th><th>until</th><th>a</th><th>smooth</th><th>dough</th><th>is</th><th>formed</th><th>.</th><tr>\n",
|
"<th>Transfer</th><th>to</th><th>a</th><th>mixing</th><th>bowl</th><th>;</th><th>then</th><th>gradually</th><th>add</th><th>flour</th><th>while</th><th>mixing</th><th>with</th><th>fingers</th><th>,</th><th>until</th><th>a</th><th>smooth</th><th>dough</th><th>is</th><th>formed</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>action</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>action</th><th>0</th><th>action</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1778,8 +1779,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Form</th><th>dough</th><th>into</th><th>40</th><th>balls</th><th>,</th><th>a</th><th>little</th><th>smaller</th><th>than</th><th>walnuts</th><th>;</th><th>then</th><th>place</th><th>on</th><th>a</th><th>ungreased</th><th>cookie</th><th>sheet</th><th>and</th><th>flatten</th><th>slightly</th><th>to</th><th>about</th><th>1/2-inch</th><th>thickness</th><th>.</th><tr>\n",
|
"<th>Form</th><th>dough</th><th>into</th><th>40</th><th>balls</th><th>,</th><th>a</th><th>little</th><th>smaller</th><th>than</th><th>walnuts</th><th>;</th><th>then</th><th>place</th><th>on</th><th>a</th><th>ungreased</th><th>cookie</th><th>sheet</th><th>and</th><th>flatten</th><th>slightly</th><th>to</th><th>about</th><th>1/2-inch</th><th>thickness</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1814,8 +1815,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Bake</th><th>in</th><th>an</th><th>oven</th><th>preheated</th><th>to</th><th>300</th><th>degrees</th><th>F.</th><th>for</th><th>20</th><th>minutes</th><th>or</th><th>until</th><th>bottoms</th><th>turn</th><th>light</th><th>brown</th><th>.</th><tr>\n",
|
"<th>Bake</th><th>in</th><th>an</th><th>oven</th><th>preheated</th><th>to</th><th>300</th><th>degrees</th><th>F.</th><th>for</th><th>20</th><th>minutes</th><th>or</th><th>until</th><th>bottoms</th><th>turn</th><th>light</th><th>brown</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1832,8 +1833,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Remove</th><th>from</th><th>oven</th><th>and</th><th>allow</th><th>to</th><th>cool</th><th>.</th><tr>\n",
|
"<th>Remove</th><th>from</th><th>oven</th><th>and</th><th>allow</th><th>to</th><th>cool</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>containers</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1868,8 +1869,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>The</th><th>ghurayba</th><th>may</th><th>feel</th><th>soft</th><th>at</th><th>the</th><th>end</th><th>of</th><th>baking</th><th>time</th><th>,</th><th>but</th><th>they</th><th>will</th><th>harden</th><th>as</th><th>they</th><th>cool</th><th>.</th><tr>\n",
|
"<th>The</th><th>ghurayba</th><th>may</th><th>feel</th><th>soft</th><th>at</th><th>the</th><th>end</th><th>of</th><th>baking</th><th>time</th><th>,</th><th>but</th><th>they</th><th>will</th><th>harden</th><th>as</th><th>they</th><th>cool</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>ingredient</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1887,7 +1888,7 @@
|
|||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Makes</th><th>40</th><th>pieces</th><th>.</th><tr>\n",
|
"<th>Makes</th><th>40</th><th>pieces</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>action</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -1922,8 +1923,8 @@
|
|||||||
"<tr>\n",
|
"<tr>\n",
|
||||||
"<th>Sentence:</th>\n",
|
"<th>Sentence:</th>\n",
|
||||||
"<th>Combine</th><th>all</th><th>ingredients</th><th>in</th><th>3-quart</th><th>saucepan</th><th>.</th><tr>\n",
|
"<th>Combine</th><th>all</th><th>ingredients</th><th>in</th><th>3-quart</th><th>saucepan</th><th>.</th><tr>\n",
|
||||||
"<th>labels:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>labels:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"<th>Predicitions:</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
"<th>Predicitions:</th><th>action</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th><th>0</th></tr>\n",
|
||||||
"</table>\n"
|
"</table>\n"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
|
@ -15,16 +15,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"cr = cbg.ConlluReader(\"recipes0.conllu\")"
|
"cr = cbg.ConlluReader(\"filtered_recipes.conllu\")"
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 3,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"t = cr.__iter__().__next__()"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -35,16 +26,7 @@
|
|||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"OrderedDict([('id', 2),\n",
|
"TokenList<Dissolve, Jello, in, boiling, water, .>"
|
||||||
" ('form', 'oven'),\n",
|
|
||||||
" ('lemma', 'oven'),\n",
|
|
||||||
" ('upostag', 'ADV'),\n",
|
|
||||||
" ('xpostag', 'RB'),\n",
|
|
||||||
" ('feats', None),\n",
|
|
||||||
" ('head', None),\n",
|
|
||||||
" ('deprel', '_'),\n",
|
|
||||||
" ('deps', None),\n",
|
|
||||||
" ('misc', None)])"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 4,
|
"execution_count": 4,
|
||||||
@ -53,7 +35,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"t[0][1]"
|
"next(iter(cr))[0]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -199,7 +181,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 12,
|
"execution_count": 14,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -215,9 +197,11 @@
|
|||||||
"t_test = []\n",
|
"t_test = []\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"i = 0\n",
|
||||||
"for i,sample in enumerate(cr):\n",
|
"for sample in cr:\n",
|
||||||
" \n",
|
" if len(sample) == 0:\n",
|
||||||
|
" continue\n",
|
||||||
|
" i += 1\n",
|
||||||
" if i < n_train:\n",
|
" if i < n_train:\n",
|
||||||
" X_train.append(sent2features(sample[0]))\n",
|
" X_train.append(sent2features(sample[0]))\n",
|
||||||
" Y_train.append(sent2labels(sample[0]))\n",
|
" Y_train.append(sent2labels(sample[0]))\n",
|
||||||
@ -232,6 +216,26 @@
|
|||||||
"\n"
|
"\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 15,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"45442"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 15,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"len(X_train)"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@ -241,7 +245,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 13,
|
"execution_count": 16,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -250,7 +254,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 14,
|
"execution_count": 17,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -262,7 +266,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 15,
|
"execution_count": 18,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -278,7 +282,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 16,
|
"execution_count": 19,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
@ -298,7 +302,7 @@
|
|||||||
" 'max_linesearch']"
|
" 'max_linesearch']"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 16,
|
"execution_count": 19,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@ -309,7 +313,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 17,
|
"execution_count": 20,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -318,24 +322,24 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 21,
|
"execution_count": 20,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"{'num': 688,\n",
|
"{'num': 455,\n",
|
||||||
" 'scores': {},\n",
|
" 'scores': {},\n",
|
||||||
" 'loss': 72969.779861,\n",
|
" 'loss': 110.581675,\n",
|
||||||
" 'feature_norm': 130.969535,\n",
|
" 'feature_norm': 8.594619,\n",
|
||||||
" 'error_norm': 157.007119,\n",
|
" 'error_norm': 0.214403,\n",
|
||||||
" 'active_features': 8435,\n",
|
" 'active_features': 87,\n",
|
||||||
" 'linesearch_trials': 1,\n",
|
" 'linesearch_trials': 2,\n",
|
||||||
" 'linesearch_step': 1.0,\n",
|
" 'linesearch_step': 0.5,\n",
|
||||||
" 'time': 0.346}"
|
" 'time': 0.001}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 21,
|
"execution_count": 20,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@ -353,16 +357,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 22,
|
"execution_count": 21,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"<contextlib.closing at 0x7f347332cc88>"
|
"<contextlib.closing at 0x7f056bc6d828>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 22,
|
"execution_count": 21,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@ -374,163 +378,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 23,
|
"execution_count": 22,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"ename": "IndexError",
|
||||||
"output_type": "stream",
|
"evalue": "list index out of range",
|
||||||
"text": [
|
"output_type": "error",
|
||||||
"\n",
|
"traceback": [
|
||||||
"Predicted: \n",
|
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
||||||
"Correct: \n",
|
"\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)",
|
||||||
"\n",
|
"\u001b[0;32m<ipython-input-22-a88100b49642>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m100\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m130\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m' '\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mt_test\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3\u001b[0m \u001b[0;31m#print(' '.join(feature2tokens(X_test[i])), end='\\n\\n')\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Predicted:\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m' '\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtagger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtag\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX_test\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Correct: \"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m' '\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mY_test\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
||||||
"\n",
|
"\u001b[0;31mIndexError\u001b[0m: list index out of range"
|
||||||
"Prepare mudding as directed on package using 3 cups milk .\n",
|
|
||||||
"Predicted: action ingredient 0 0 0 0 0 0 0 ingredient 0\n",
|
|
||||||
"Correct: action 0 0 0 0 0 0 0 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Remove from heat ; stir in orange_peel .\n",
|
|
||||||
"Predicted: action 0 action 0 action 0 ingredient 0\n",
|
|
||||||
"Correct: action 0 action 0 action 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Cover surface of pudding with waxed paper or plastic wrap and cool 15 minutes .\n",
|
|
||||||
"Predicted: action action 0 0 0 0 0 0 0 0 0 action 0 0 0\n",
|
|
||||||
"Correct: action 0 0 ingredient 0 0 0 0 0 0 0 action 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Line bottom of trifle dish or glass bowl with 1/3 of the cake cubes ; .\n",
|
|
||||||
"Predicted: 0 0 0 0 0 0 0 0 0 0 0 0 ingredient 0 0 0\n",
|
|
||||||
"Correct: 0 0 0 0 0 0 0 0 0 0 0 0 ingredient 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Drizzle with 1 tablespoon of the orange_juice_concentrate .\n",
|
|
||||||
"Predicted: 0 0 0 0 0 0 ingredient 0\n",
|
|
||||||
"Correct: 0 0 0 0 0 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Spoon 1/3 of pudding over top .\n",
|
|
||||||
"Predicted: action 0 0 0 0 ingredient 0\n",
|
|
||||||
"Correct: action 0 0 ingredient 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Spoon 1/3 of strawberry filling over pudding .\n",
|
|
||||||
"Predicted: action 0 0 ingredient 0 0 ingredient 0\n",
|
|
||||||
"Correct: action 0 0 ingredient ingredient 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Top with 1/3 of orange_segments .\n",
|
|
||||||
"Predicted: ingredient 0 0 0 0 0\n",
|
|
||||||
"Correct: ingredient 0 0 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Repeat layers 2 more times .\n",
|
|
||||||
"Predicted: 0 0 0 0 0 0\n",
|
|
||||||
"Correct: 0 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Cover and refrigerate 3 hours or overnight .\n",
|
|
||||||
"Predicted: action 0 action 0 0 0 0 0\n",
|
|
||||||
"Correct: action 0 action 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Store in refrigerator .\n",
|
|
||||||
"Predicted: 0 0 action 0\n",
|
|
||||||
"Correct: 0 0 action 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Predicted: \n",
|
|
||||||
"Correct: \n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Meanwhile , whisk the vinegar , lemon_zest and juice , honey , dried_oregano , 1/2 teaspoon salt and 1/4 teaspoon pepper in a large bowl .\n",
|
|
||||||
"Predicted: 0 0 action 0 action 0 ingredient 0 ingredient 0 ingredient 0 ingredient 0 0 0 action 0 0 0 ingredient 0 0 0 0 0\n",
|
|
||||||
"Correct: 0 0 action 0 ingredient 0 ingredient 0 ingredient 0 ingredient 0 ingredient 0 0 0 action 0 0 0 ingredient 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Whisk in the olive_oil in a slow , steady stream until emulsified .\n",
|
|
||||||
"Predicted: action 0 0 ingredient 0 0 0 0 0 0 0 0 0\n",
|
|
||||||
"Correct: action 0 0 ingredient 0 0 0 0 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Add the tomatoes and olives and toss .\n",
|
|
||||||
"Predicted: action 0 ingredient 0 ingredient 0 0 0\n",
|
|
||||||
"Correct: action 0 ingredient 0 ingredient 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Peel the cucumbers , leaving alternating strips of green peel .\n",
|
|
||||||
"Predicted: action 0 ingredient 0 0 0 0 0 ingredient action 0\n",
|
|
||||||
"Correct: action 0 ingredient 0 ingredient 0 0 0 ingredient action 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Trim the ends , halve lengthwise and slice crosswise , about 1/2 inch thick ; add to the bowl with the tomatoes .\n",
|
|
||||||
"Predicted: 0 0 ingredient 0 0 0 0 action 0 0 0 0 0 0 0 action 0 0 0 0 0 ingredient 0\n",
|
|
||||||
"Correct: 0 0 0 0 0 0 0 action ingredient 0 0 0 0 0 0 action 0 0 0 0 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Drain the red onion , add to the bowl and toss .\n",
|
|
||||||
"Predicted: action 0 ingredient ingredient 0 action 0 0 0 0 0 0\n",
|
|
||||||
"Correct: action 0 ingredient ingredient 0 action 0 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Drain the feta and slice horizontally into 4 even rectangles .\n",
|
|
||||||
"Predicted: action 0 0 0 ingredient 0 0 0 0 0 0\n",
|
|
||||||
"Correct: action 0 0 0 action 0 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Divide the salad among plates .\n",
|
|
||||||
"Predicted: 0 0 ingredient 0 0 0\n",
|
|
||||||
"Correct: 0 0 ingredient 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Top with the feta and oregano ; drizzle with olive_oil and season with pepper .\n",
|
|
||||||
"Predicted: ingredient 0 0 ingredient 0 ingredient 0 0 0 ingredient 0 action 0 ingredient 0\n",
|
|
||||||
"Correct: ingredient 0 0 0 0 ingredient 0 0 0 ingredient 0 action 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Photograph by Johnny Miller\n",
|
|
||||||
"Predicted: 0 0 0 0\n",
|
|
||||||
"Correct: 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Predicted: \n",
|
|
||||||
"Correct: \n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Put the potatoes in a large saucepan and cover with water .\n",
|
|
||||||
"Predicted: action 0 ingredient 0 0 0 0 0 action 0 ingredient 0\n",
|
|
||||||
"Correct: action 0 ingredient 0 0 0 0 0 action 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Add 1 teaspoon salt to the water .\n",
|
|
||||||
"Predicted: action 0 0 action 0 0 ingredient 0\n",
|
|
||||||
"Correct: action 0 0 action 0 0 ingredient 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Bring to a boil over high heat , reduce to a simmer and cook the potatoes until they are very tender but not overcooked , about 10 minutes .\n",
|
|
||||||
"Predicted: 0 0 0 action 0 0 action 0 ingredient 0 0 action 0 action 0 ingredient 0 0 0 0 0 0 0 action 0 0 0 0 0\n",
|
|
||||||
"Correct: 0 0 0 action 0 0 action 0 action 0 0 action 0 action 0 ingredient 0 0 0 0 0 0 0 0 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Remove the potatoes from the water and let them drain on a dishtowel , gently patting to dry .\n",
|
|
||||||
"Predicted: action 0 ingredient 0 0 ingredient 0 0 0 action 0 0 0 0 0 0 0 0 0\n",
|
|
||||||
"Correct: action 0 ingredient 0 0 ingredient 0 0 0 action 0 0 0 0 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Allow to cool .\n",
|
|
||||||
"Predicted: 0 0 action 0\n",
|
|
||||||
"Correct: 0 0 action 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Gently press down on one potato with a spatula to gently flatten it to about 1/2 inch thick .\n",
|
|
||||||
"Predicted: 0 0 0 0 0 ingredient 0 0 0 0 0 0 0 0 0 0 0 0 0\n",
|
|
||||||
"Correct: 0 0 0 0 0 ingredient 0 0 0 0 0 0 0 0 0 0 0 0 0\n",
|
|
||||||
"\n",
|
|
||||||
"\n"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 1,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -67,9 +67,9 @@
|
|||||||
" line = self._nextline()\n",
|
" line = self._nextline()\n",
|
||||||
" if line == \"\":\n",
|
" if line == \"\":\n",
|
||||||
" break\n",
|
" break\n",
|
||||||
" data += line\n",
|
" if line == \"\\n\" and len(data) > 0:\n",
|
||||||
" if line == \"\\n\":\n",
|
|
||||||
" break\n",
|
" break\n",
|
||||||
|
" data += line\n",
|
||||||
"\n",
|
"\n",
|
||||||
" if data == \"\":\n",
|
" if data == \"\":\n",
|
||||||
" return None\n",
|
" return None\n",
|
||||||
@ -77,7 +77,7 @@
|
|||||||
" if data[-1] != \"\\n\":\n",
|
" if data[-1] != \"\\n\":\n",
|
||||||
" data += \"\\n\"\n",
|
" data += \"\\n\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
" conllu_obj = parse(data)\n",
|
" conllu_obj = parse(data + \"\\n\")\n",
|
||||||
" return conllu_obj"
|
" return conllu_obj"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -88,10 +88,11 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"class ConlluDocumentIterator(object):\n",
|
"class ConlluDocumentIterator(object):\n",
|
||||||
" def __init__(self, conllu_reader):\n",
|
" def __init__(self, conllu_reader, return_recipe_ids = False):\n",
|
||||||
" self.conllu_reader = conllu_reader\n",
|
" self.conllu_reader = conllu_reader\n",
|
||||||
" self._fileobj = None\n",
|
" self._fileobj = None\n",
|
||||||
" self._open()\n",
|
" self._open()\n",
|
||||||
|
" self._return_recipe_ids = return_recipe_ids\n",
|
||||||
" \n",
|
" \n",
|
||||||
" def _open(self):\n",
|
" def _open(self):\n",
|
||||||
" if self.conllu_reader._path.endswith(\".gz\"):\n",
|
" if self.conllu_reader._path.endswith(\".gz\"):\n",
|
||||||
@ -108,19 +109,29 @@
|
|||||||
" return self._fileobj.readline().decode(\"utf-8\")\n",
|
" return self._fileobj.readline().decode(\"utf-8\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def next_document(self):\n",
|
" def next_document(self):\n",
|
||||||
|
" doc_id = None\n",
|
||||||
" data = \"\"\n",
|
" data = \"\"\n",
|
||||||
" last_line_empty = False\n",
|
" last_line_empty = False\n",
|
||||||
" while True:\n",
|
" while True:\n",
|
||||||
" line = self._nextline()\n",
|
" line = self._nextline()\n",
|
||||||
|
" if line.startswith('#'):\n",
|
||||||
|
" # looking for an recipe id:\n",
|
||||||
|
" comment = line.replace('#', '')\n",
|
||||||
|
" splitted = comment.split(':')\n",
|
||||||
|
" if len(splitted) == 2:\n",
|
||||||
|
" if splitted[0].strip() == \"id\":\n",
|
||||||
|
" doc_id = splitted[1].strip()\n",
|
||||||
|
" continue\n",
|
||||||
|
" \n",
|
||||||
" if line == \"\":\n",
|
" if line == \"\":\n",
|
||||||
" break\n",
|
" break\n",
|
||||||
" data += line\n",
|
" if line == \"\\n\" and len(data) > 0:\n",
|
||||||
" if line == \"\\n\":\n",
|
|
||||||
" if last_line_empty:\n",
|
" if last_line_empty:\n",
|
||||||
" break\n",
|
" break\n",
|
||||||
" last_line_empty = True\n",
|
" last_line_empty = True\n",
|
||||||
" else:\n",
|
" else:\n",
|
||||||
" last_line_empty = False\n",
|
" last_line_empty = False\n",
|
||||||
|
" data += line\n",
|
||||||
"\n",
|
"\n",
|
||||||
" if data == \"\":\n",
|
" if data == \"\":\n",
|
||||||
" return None\n",
|
" return None\n",
|
||||||
@ -128,7 +139,10 @@
|
|||||||
" if data[-1] != \"\\n\":\n",
|
" if data[-1] != \"\\n\":\n",
|
||||||
" data += \"\\n\"\n",
|
" data += \"\\n\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
" conllu_obj = parse(data)\n",
|
" conllu_obj = parse(data + \"\\n\")\n",
|
||||||
|
" \n",
|
||||||
|
" if self._return_recipe_ids:\n",
|
||||||
|
" return conllu_obj, doc_id\n",
|
||||||
" return conllu_obj\n",
|
" return conllu_obj\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def __next__(self):\n",
|
" def __next__(self):\n",
|
||||||
@ -145,12 +159,13 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"class ConlluReader(object):\n",
|
"class ConlluReader(object):\n",
|
||||||
" def __init__(self, path, iter_documents=False):\n",
|
" def __init__(self, path, iter_documents=False, return_recipe_ids = False):\n",
|
||||||
" self._path = path\n",
|
" self._path = path\n",
|
||||||
" self.iter_documents = iter_documents\n",
|
" self.iter_documents = iter_documents\n",
|
||||||
|
" self.return_recipe_ids = return_recipe_ids\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def __iter__(self):\n",
|
" def __iter__(self):\n",
|
||||||
" return ConlluDocumentIterator(self) if self.iter_documents else ConlluSentenceIterator(self)"
|
" return ConlluDocumentIterator(self, self.return_recipe_ids) if self.iter_documents else ConlluSentenceIterator(self)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -51,9 +51,9 @@ class ConlluSentenceIterator(object):
|
|||||||
line = self._nextline()
|
line = self._nextline()
|
||||||
if line == "":
|
if line == "":
|
||||||
break
|
break
|
||||||
data += line
|
if line == "\n" and len(data) > 0:
|
||||||
if line == "\n":
|
|
||||||
break
|
break
|
||||||
|
data += line
|
||||||
|
|
||||||
if data == "":
|
if data == "":
|
||||||
return None
|
return None
|
||||||
@ -61,15 +61,16 @@ class ConlluSentenceIterator(object):
|
|||||||
if data[-1] != "\n":
|
if data[-1] != "\n":
|
||||||
data += "\n"
|
data += "\n"
|
||||||
|
|
||||||
conllu_obj = parse(data)
|
conllu_obj = parse(data + "\n")
|
||||||
return conllu_obj
|
return conllu_obj
|
||||||
|
|
||||||
|
|
||||||
class ConlluDocumentIterator(object):
|
class ConlluDocumentIterator(object):
|
||||||
def __init__(self, conllu_reader):
|
def __init__(self, conllu_reader, return_recipe_ids = False):
|
||||||
self.conllu_reader = conllu_reader
|
self.conllu_reader = conllu_reader
|
||||||
self._fileobj = None
|
self._fileobj = None
|
||||||
self._open()
|
self._open()
|
||||||
|
self._return_recipe_ids = return_recipe_ids
|
||||||
|
|
||||||
def _open(self):
|
def _open(self):
|
||||||
if self.conllu_reader._path.endswith(".gz"):
|
if self.conllu_reader._path.endswith(".gz"):
|
||||||
@ -86,19 +87,29 @@ class ConlluDocumentIterator(object):
|
|||||||
return self._fileobj.readline().decode("utf-8")
|
return self._fileobj.readline().decode("utf-8")
|
||||||
|
|
||||||
def next_document(self):
|
def next_document(self):
|
||||||
|
doc_id = None
|
||||||
data = ""
|
data = ""
|
||||||
last_line_empty = False
|
last_line_empty = False
|
||||||
while True:
|
while True:
|
||||||
line = self._nextline()
|
line = self._nextline()
|
||||||
|
if line.startswith('#'):
|
||||||
|
# looking for an recipe id:
|
||||||
|
comment = line.replace('#', '')
|
||||||
|
splitted = comment.split(':')
|
||||||
|
if len(splitted) == 2:
|
||||||
|
if splitted[0].strip() == "id":
|
||||||
|
doc_id = splitted[1].strip()
|
||||||
|
continue
|
||||||
|
|
||||||
if line == "":
|
if line == "":
|
||||||
break
|
break
|
||||||
data += line
|
if line == "\n" and len(data) > 0:
|
||||||
if line == "\n":
|
|
||||||
if last_line_empty:
|
if last_line_empty:
|
||||||
break
|
break
|
||||||
last_line_empty = True
|
last_line_empty = True
|
||||||
else:
|
else:
|
||||||
last_line_empty = False
|
last_line_empty = False
|
||||||
|
data += line
|
||||||
|
|
||||||
if data == "":
|
if data == "":
|
||||||
return None
|
return None
|
||||||
@ -106,7 +117,10 @@ class ConlluDocumentIterator(object):
|
|||||||
if data[-1] != "\n":
|
if data[-1] != "\n":
|
||||||
data += "\n"
|
data += "\n"
|
||||||
|
|
||||||
conllu_obj = parse(data)
|
conllu_obj = parse(data + "\n")
|
||||||
|
|
||||||
|
if self._return_recipe_ids:
|
||||||
|
return conllu_obj, doc_id
|
||||||
return conllu_obj
|
return conllu_obj
|
||||||
|
|
||||||
def __next__(self):
|
def __next__(self):
|
||||||
@ -117,12 +131,13 @@ class ConlluDocumentIterator(object):
|
|||||||
|
|
||||||
|
|
||||||
class ConlluReader(object):
|
class ConlluReader(object):
|
||||||
def __init__(self, path, iter_documents=False):
|
def __init__(self, path, iter_documents=False, return_recipe_ids = False):
|
||||||
self._path = path
|
self._path = path
|
||||||
self.iter_documents = iter_documents
|
self.iter_documents = iter_documents
|
||||||
|
self.return_recipe_ids = return_recipe_ids
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return ConlluDocumentIterator(self) if self.iter_documents else ConlluSentenceIterator(self)
|
return ConlluDocumentIterator(self, self.return_recipe_ids) if self.iter_documents else ConlluSentenceIterator(self)
|
||||||
|
|
||||||
|
|
||||||
class SlidingWindowListIterator(object):
|
class SlidingWindowListIterator(object):
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": 1,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -29,12 +29,13 @@
|
|||||||
"from nltk.tag import pos_tag, map_tag\n",
|
"from nltk.tag import pos_tag, map_tag\n",
|
||||||
"from nltk.stem import PorterStemmer\n",
|
"from nltk.stem import PorterStemmer\n",
|
||||||
"from nltk.corpus import stopwords as nltk_stopwords\n",
|
"from nltk.corpus import stopwords as nltk_stopwords\n",
|
||||||
"from stemmed_mwe_tokenizer import StemmedMWETokenizer"
|
"from stemmed_mwe_tokenizer import StemmedMWETokenizer\n",
|
||||||
|
"from nltk.stem import WordNetLemmatizer"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 3,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -52,6 +53,30 @@
|
|||||||
"]"
|
"]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"* default stemming and lemmatization functions"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 3,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"porter_stemmer = PorterStemmer()\n",
|
||||||
|
"wordnet_lemmatizer = WordNetLemmatizer()\n",
|
||||||
|
"\n",
|
||||||
|
"def stem(token, stemmer = porter_stemmer):\n",
|
||||||
|
" return stemmer.stem(token)\n",
|
||||||
|
"\n",
|
||||||
|
"def lemmatize(token, lemmatizer = wordnet_lemmatizer, pos = 'n'):\n",
|
||||||
|
" return lemmatizer.lemmatize(token, pos)\n",
|
||||||
|
"\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": 4,
|
||||||
@ -127,7 +152,7 @@
|
|||||||
" self,\n",
|
" self,\n",
|
||||||
" id: int,\n",
|
" id: int,\n",
|
||||||
" form: str,\n",
|
" form: str,\n",
|
||||||
" lemma: str,\n",
|
" lemma: str = \"_\",\n",
|
||||||
" upos: str = \"_\",\n",
|
" upos: str = \"_\",\n",
|
||||||
" xpos: str = \"_\",\n",
|
" xpos: str = \"_\",\n",
|
||||||
" feats: str = \"_\",\n",
|
" feats: str = \"_\",\n",
|
||||||
@ -240,22 +265,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": 9,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"ename": "NameError",
|
|
||||||
"evalue": "name 'PorterStemmer' is not defined",
|
|
||||||
"output_type": "error",
|
|
||||||
"traceback": [
|
|
||||||
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
|
||||||
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
|
|
||||||
"\u001b[0;32m<ipython-input-1-dcd3e28a755b>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mclass\u001b[0m \u001b[0mConlluGenerator\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__init__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdocuments\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstemmed_multi_word_tokens\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstemmer\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mPorterStemmer\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mids\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdocuments\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdocuments\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstemmed_multi_word_tokens\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mstemmed_multi_word_tokens\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m self.mwe_tokenizer = StemmedMWETokenizer(\n",
|
|
||||||
"\u001b[0;32m<ipython-input-1-dcd3e28a755b>\u001b[0m in \u001b[0;36mConlluGenerator\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mclass\u001b[0m \u001b[0mConlluGenerator\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0;32mdef\u001b[0m \u001b[0m__init__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdocuments\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstemmed_multi_word_tokens\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstemmer\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mPorterStemmer\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mids\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdocuments\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdocuments\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstemmed_multi_word_tokens\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mstemmed_multi_word_tokens\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m self.mwe_tokenizer = StemmedMWETokenizer(\n",
|
|
||||||
"\u001b[0;31mNameError\u001b[0m: name 'PorterStemmer' is not defined"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"class ConlluGenerator(object):\n",
|
"class ConlluGenerator(object):\n",
|
||||||
" def __init__(self, documents: list, stemmed_multi_word_tokens, stemmer=PorterStemmer(), ids=None):\n",
|
" def __init__(self, documents: list, stemmed_multi_word_tokens, stemmer=PorterStemmer(), ids=None):\n",
|
||||||
@ -270,8 +282,8 @@
|
|||||||
" self.conllu_documents = []\n",
|
" self.conllu_documents = []\n",
|
||||||
"\n",
|
"\n",
|
||||||
" self.ids = ids\n",
|
" self.ids = ids\n",
|
||||||
"\n",
|
" \n",
|
||||||
" def tokenize_and_stem(self):\n",
|
" def tokenize(self):\n",
|
||||||
" tokenized_documents = []\n",
|
" tokenized_documents = []\n",
|
||||||
"\n",
|
"\n",
|
||||||
" i = 0\n",
|
" i = 0\n",
|
||||||
@ -284,34 +296,28 @@
|
|||||||
" tokenized_sentences.append(\n",
|
" tokenized_sentences.append(\n",
|
||||||
" self.mwe_tokenizer.tokenize(simple_tokenized))\n",
|
" self.mwe_tokenizer.tokenize(simple_tokenized))\n",
|
||||||
" tokenized_documents.append(tokenized_sentences)\n",
|
" tokenized_documents.append(tokenized_sentences)\n",
|
||||||
"\n",
|
" \n",
|
||||||
" # now create initial colln-u elemnts\n",
|
" # now create initial colln-u elemnts\n",
|
||||||
" for doc in tokenized_documents:\n",
|
" for doc in tokenized_documents:\n",
|
||||||
" if self.ids:\n",
|
" if self.ids:\n",
|
||||||
" conllu_doc = ConlluDocument(self.ids[i])\n",
|
" conllu_doc = ConlluDocument(self.ids[i])\n",
|
||||||
" else:\n",
|
" else:\n",
|
||||||
" conllu_doc = ConlluDocument()\n",
|
" conllu_doc = ConlluDocument()\n",
|
||||||
" self.id_counter = 0\n",
|
|
||||||
" for sent in doc:\n",
|
" for sent in doc:\n",
|
||||||
" conllu_sent = ConlluSentence()\n",
|
" conllu_sent = ConlluSentence()\n",
|
||||||
" for token in sent:\n",
|
" for token in sent:\n",
|
||||||
" stemmed_token = None\n",
|
|
||||||
" if \"_\" in token:\n",
|
|
||||||
" stemmed_token = \"_\".join(\n",
|
|
||||||
" [self.stemmer.stem(part) for part in token.split(\"_\")])\n",
|
|
||||||
" else:\n",
|
|
||||||
" stemmed_token = self.stemmer.stem(token)\n",
|
|
||||||
" conllu_sent.add(ConlluElement(\n",
|
" conllu_sent.add(ConlluElement(\n",
|
||||||
" id=self.id_counter + 1,\n",
|
" id=self.id_counter + 1,\n",
|
||||||
" form=token,\n",
|
" form=token,\n",
|
||||||
" lemma=stemmed_token\n",
|
|
||||||
" ))\n",
|
" ))\n",
|
||||||
" self.id_counter += 1\n",
|
" self.id_counter += 1\n",
|
||||||
" conllu_doc.add(conllu_sent)\n",
|
" conllu_doc.add(conllu_sent)\n",
|
||||||
" self.conllu_documents.append(conllu_doc)\n",
|
" self.conllu_documents.append(conllu_doc)\n",
|
||||||
" i += 1\n",
|
" i += 1\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def pos_tagging(self):\n",
|
"\n",
|
||||||
|
" def pos_tagging_and_lemmatization(self, stem_function = lemmatize):\n",
|
||||||
|
" pos_dict = {'ADJ': 'a', 'ADJ_SAT': 's', 'ADV': 'r', 'NOUN': 'n', 'VERB': 'v'}\n",
|
||||||
" for conllu_document in self.conllu_documents:\n",
|
" for conllu_document in self.conllu_documents:\n",
|
||||||
" for conllu_sent in conllu_document.conllu_sentences:\n",
|
" for conllu_sent in conllu_document.conllu_sentences:\n",
|
||||||
" tokens = [x.form for x in conllu_sent.conllu_elements]\n",
|
" tokens = [x.form for x in conllu_sent.conllu_elements]\n",
|
||||||
@ -323,6 +329,10 @@
|
|||||||
" conllu_elem = conllu_sent.conllu_elements[i]\n",
|
" conllu_elem = conllu_sent.conllu_elements[i]\n",
|
||||||
" conllu_elem.upos = simplified_tags[i]\n",
|
" conllu_elem.upos = simplified_tags[i]\n",
|
||||||
" conllu_elem.xpos = pos_tags[i][1]\n",
|
" conllu_elem.xpos = pos_tags[i][1]\n",
|
||||||
|
" p = 'n'\n",
|
||||||
|
" if conllu_elem.upos in pos_dict:\n",
|
||||||
|
" p = pos_dict[conllu_elem.upos]\n",
|
||||||
|
" conllu_elem.lemma = stem_function(conllu_elem.form, pos=p).lower()\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def add_misc_value_by_list(self, key, value, stemmed_keyword_list):\n",
|
" def add_misc_value_by_list(self, key, value, stemmed_keyword_list):\n",
|
||||||
" for conllu_document in self.conllu_documents:\n",
|
" for conllu_document in self.conllu_documents:\n",
|
||||||
@ -340,13 +350,6 @@
|
|||||||
" def __str__(self):\n",
|
" def __str__(self):\n",
|
||||||
" return self.__repr__()"
|
" return self.__repr__()"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
@ -15,6 +15,7 @@ from nltk.tag import pos_tag, map_tag
|
|||||||
from nltk.stem import PorterStemmer
|
from nltk.stem import PorterStemmer
|
||||||
from nltk.corpus import stopwords as nltk_stopwords
|
from nltk.corpus import stopwords as nltk_stopwords
|
||||||
from stemmed_mwe_tokenizer import StemmedMWETokenizer
|
from stemmed_mwe_tokenizer import StemmedMWETokenizer
|
||||||
|
from nltk.stem import WordNetLemmatizer
|
||||||
|
|
||||||
|
|
||||||
CONLLU_ATTRIBUTES = [
|
CONLLU_ATTRIBUTES = [
|
||||||
@ -31,6 +32,18 @@ CONLLU_ATTRIBUTES = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# * default stemming and lemmatization functions
|
||||||
|
|
||||||
|
porter_stemmer = PorterStemmer()
|
||||||
|
wordnet_lemmatizer = WordNetLemmatizer()
|
||||||
|
|
||||||
|
def stem(token, stemmer = porter_stemmer):
|
||||||
|
return stemmer.stem(token)
|
||||||
|
|
||||||
|
def lemmatize(token, lemmatizer = wordnet_lemmatizer, pos = 'n'):
|
||||||
|
return lemmatizer.lemmatize(token, pos)
|
||||||
|
|
||||||
|
|
||||||
# took from: https://stackoverflow.com/a/16053211
|
# took from: https://stackoverflow.com/a/16053211
|
||||||
|
|
||||||
|
|
||||||
@ -78,7 +91,7 @@ class ConlluElement(object):
|
|||||||
self,
|
self,
|
||||||
id: int,
|
id: int,
|
||||||
form: str,
|
form: str,
|
||||||
lemma: str,
|
lemma: str = "_",
|
||||||
upos: str = "_",
|
upos: str = "_",
|
||||||
xpos: str = "_",
|
xpos: str = "_",
|
||||||
feats: str = "_",
|
feats: str = "_",
|
||||||
@ -175,8 +188,8 @@ class ConlluGenerator(object):
|
|||||||
self.conllu_documents = []
|
self.conllu_documents = []
|
||||||
|
|
||||||
self.ids = ids
|
self.ids = ids
|
||||||
|
|
||||||
def tokenize_and_stem(self):
|
def tokenize(self):
|
||||||
tokenized_documents = []
|
tokenized_documents = []
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
@ -189,34 +202,28 @@ class ConlluGenerator(object):
|
|||||||
tokenized_sentences.append(
|
tokenized_sentences.append(
|
||||||
self.mwe_tokenizer.tokenize(simple_tokenized))
|
self.mwe_tokenizer.tokenize(simple_tokenized))
|
||||||
tokenized_documents.append(tokenized_sentences)
|
tokenized_documents.append(tokenized_sentences)
|
||||||
|
|
||||||
# now create initial colln-u elemnts
|
# now create initial colln-u elemnts
|
||||||
for doc in tokenized_documents:
|
for doc in tokenized_documents:
|
||||||
if self.ids:
|
if self.ids:
|
||||||
conllu_doc = ConlluDocument(self.ids[i])
|
conllu_doc = ConlluDocument(self.ids[i])
|
||||||
else:
|
else:
|
||||||
conllu_doc = ConlluDocument()
|
conllu_doc = ConlluDocument()
|
||||||
self.id_counter = 0
|
|
||||||
for sent in doc:
|
for sent in doc:
|
||||||
conllu_sent = ConlluSentence()
|
conllu_sent = ConlluSentence()
|
||||||
for token in sent:
|
for token in sent:
|
||||||
stemmed_token = None
|
|
||||||
if "_" in token:
|
|
||||||
stemmed_token = "_".join(
|
|
||||||
[self.stemmer.stem(part) for part in token.split("_")])
|
|
||||||
else:
|
|
||||||
stemmed_token = self.stemmer.stem(token)
|
|
||||||
conllu_sent.add(ConlluElement(
|
conllu_sent.add(ConlluElement(
|
||||||
id=self.id_counter + 1,
|
id=self.id_counter + 1,
|
||||||
form=token,
|
form=token,
|
||||||
lemma=stemmed_token
|
|
||||||
))
|
))
|
||||||
self.id_counter += 1
|
self.id_counter += 1
|
||||||
conllu_doc.add(conllu_sent)
|
conllu_doc.add(conllu_sent)
|
||||||
self.conllu_documents.append(conllu_doc)
|
self.conllu_documents.append(conllu_doc)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
def pos_tagging(self):
|
|
||||||
|
def pos_tagging_and_lemmatization(self, stem_function = lemmatize):
|
||||||
|
pos_dict = {'ADJ': 'a', 'ADJ_SAT': 's', 'ADV': 'r', 'NOUN': 'n', 'VERB': 'v'}
|
||||||
for conllu_document in self.conllu_documents:
|
for conllu_document in self.conllu_documents:
|
||||||
for conllu_sent in conllu_document.conllu_sentences:
|
for conllu_sent in conllu_document.conllu_sentences:
|
||||||
tokens = [x.form for x in conllu_sent.conllu_elements]
|
tokens = [x.form for x in conllu_sent.conllu_elements]
|
||||||
@ -228,6 +235,10 @@ class ConlluGenerator(object):
|
|||||||
conllu_elem = conllu_sent.conllu_elements[i]
|
conllu_elem = conllu_sent.conllu_elements[i]
|
||||||
conllu_elem.upos = simplified_tags[i]
|
conllu_elem.upos = simplified_tags[i]
|
||||||
conllu_elem.xpos = pos_tags[i][1]
|
conllu_elem.xpos = pos_tags[i][1]
|
||||||
|
p = 'n'
|
||||||
|
if conllu_elem.upos in pos_dict:
|
||||||
|
p = pos_dict[conllu_elem.upos]
|
||||||
|
conllu_elem.lemma = stem_function(conllu_elem.form, pos=p).lower()
|
||||||
|
|
||||||
def add_misc_value_by_list(self, key, value, stemmed_keyword_list):
|
def add_misc_value_by_list(self, key, value, stemmed_keyword_list):
|
||||||
for conllu_document in self.conllu_documents:
|
for conllu_document in self.conllu_documents:
|
||||||
@ -245,6 +256,3 @@ class ConlluGenerator(object):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.__repr__()
|
return self.__repr__()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,8 +74,10 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" cg = ConlluGenerator(\n",
|
" cg = ConlluGenerator(\n",
|
||||||
" conllu_input_docs, ingredients.multi_word_ingredients_stemmed, ids=document_ids)\n",
|
" conllu_input_docs, ingredients.multi_word_ingredients_stemmed, ids=document_ids)\n",
|
||||||
" cg.tokenize_and_stem()\n",
|
" cg.tokenize()\n",
|
||||||
" cg.pos_tagging()\n",
|
" cg.pos_tagging_and_lemmatization()\n",
|
||||||
|
" \n",
|
||||||
|
" \n",
|
||||||
" cg.add_misc_value_by_list(\"food_type\", \"ingredient\", [w.replace(\" \",\"_\") for w in ingredients.multi_word_ingredients_stemmed] + ingredients.ingredients_stemmed)\n",
|
" cg.add_misc_value_by_list(\"food_type\", \"ingredient\", [w.replace(\" \",\"_\") for w in ingredients.multi_word_ingredients_stemmed] + ingredients.ingredients_stemmed)\n",
|
||||||
" cg.add_misc_value_by_list(\"food_type\", \"action\", actions.stemmed_cooking_verbs)\n",
|
" cg.add_misc_value_by_list(\"food_type\", \"action\", actions.stemmed_cooking_verbs)\n",
|
||||||
" cg.add_misc_value_by_list(\"food_type\", \"containers\", containers.containers)\n",
|
" cg.add_misc_value_by_list(\"food_type\", \"containers\", containers.containers)\n",
|
||||||
|
@ -52,8 +52,10 @@ def process_instructions(instructions: list, document_ids=None):
|
|||||||
|
|
||||||
cg = ConlluGenerator(
|
cg = ConlluGenerator(
|
||||||
conllu_input_docs, ingredients.multi_word_ingredients_stemmed, ids=document_ids)
|
conllu_input_docs, ingredients.multi_word_ingredients_stemmed, ids=document_ids)
|
||||||
cg.tokenize_and_stem()
|
cg.tokenize()
|
||||||
cg.pos_tagging()
|
cg.pos_tagging_and_lemmatization()
|
||||||
|
|
||||||
|
|
||||||
cg.add_misc_value_by_list("food_type", "ingredient", [w.replace(" ","_") for w in ingredients.multi_word_ingredients_stemmed] + ingredients.ingredients_stemmed)
|
cg.add_misc_value_by_list("food_type", "ingredient", [w.replace(" ","_") for w in ingredients.multi_word_ingredients_stemmed] + ingredients.ingredients_stemmed)
|
||||||
cg.add_misc_value_by_list("food_type", "action", actions.stemmed_cooking_verbs)
|
cg.add_misc_value_by_list("food_type", "action", actions.stemmed_cooking_verbs)
|
||||||
cg.add_misc_value_by_list("food_type", "containers", containers.containers)
|
cg.add_misc_value_by_list("food_type", "containers", containers.containers)
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user