This commit is contained in:
parent
cd64d08151
commit
4f7e85c89a
|
@ -29,7 +29,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 114,
|
"execution_count": 119,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 115,
|
"execution_count": 120,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
"<IPython.core.display.Image object>"
|
"<IPython.core.display.Image object>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 115,
|
"execution_count": 120,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 116,
|
"execution_count": 121,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -161,7 +161,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 117,
|
"execution_count": 122,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -228,7 +228,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 118,
|
"execution_count": 123,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -237,6 +237,9 @@
|
||||||
"text": [
|
"text": [
|
||||||
"The lattice top element, every word has every tag:\n",
|
"The lattice top element, every word has every tag:\n",
|
||||||
"Start size = 32\n",
|
"Start size = 32\n",
|
||||||
|
"Calling with noun_immediately_precedes_verb\n",
|
||||||
|
"noun_immediately_precedes_verb removed 0 elements\n",
|
||||||
|
"set()\n",
|
||||||
"Calling with remove_noun_nodoubles\n",
|
"Calling with remove_noun_nodoubles\n",
|
||||||
"remove_noun_nodoubles removed 0 elements\n",
|
"remove_noun_nodoubles removed 0 elements\n",
|
||||||
"set()\n",
|
"set()\n",
|
||||||
|
@ -275,26 +278,26 @@
|
||||||
" ('the', 'NOUN(OBJ)'),\n",
|
" ('the', 'NOUN(OBJ)'),\n",
|
||||||
" ('the', 'NOUN(SUBJECT)'),\n",
|
" ('the', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('the', 'VERB')}\n",
|
" ('the', 'VERB')}\n",
|
||||||
|
"Calling with noun_immediately_precedes_verb\n",
|
||||||
|
"noun_immediately_precedes_verb removed 2 elements\n",
|
||||||
|
"{('fox', 'VERB'), ('fox', 'DET')}\n",
|
||||||
"Calling with remove_noun_nodoubles\n",
|
"Calling with remove_noun_nodoubles\n",
|
||||||
"remove_noun_nodoubles removed 0 elements\n",
|
"remove_noun_nodoubles removed 2 elements\n",
|
||||||
"set()\n",
|
"{('brown', 'NOUN(SUBJECT)'), ('brown', 'NOUN(OBJ)')}\n",
|
||||||
"Calling with remove_det_nonoun\n",
|
"Calling with remove_det_nonoun\n",
|
||||||
"remove_det_nonoun removed 1 elements\n",
|
"remove_det_nonoun removed 1 elements\n",
|
||||||
"{('fox', 'DET')}\n",
|
"{('quick', 'DET')}\n",
|
||||||
"Calling with jumps_is_verb\n",
|
"Calling with jumps_is_verb\n",
|
||||||
"jumps_is_verb removed 0 elements\n",
|
"jumps_is_verb removed 0 elements\n",
|
||||||
"set()\n",
|
"set()\n",
|
||||||
"Iteration 1 size = 27\n",
|
"Iteration 1 size = 23\n",
|
||||||
"{('brown', 'DET'),\n",
|
"{('brown', 'DET'),\n",
|
||||||
" ('brown', 'NOUN(OBJ)'),\n",
|
|
||||||
" ('brown', 'NOUN(SUBJECT)'),\n",
|
|
||||||
" ('brown', 'VERB'),\n",
|
" ('brown', 'VERB'),\n",
|
||||||
" ('dog', 'NOUN(OBJ)'),\n",
|
" ('dog', 'NOUN(OBJ)'),\n",
|
||||||
" ('dog', 'NOUN(SUBJECT)'),\n",
|
" ('dog', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('dog', 'VERB'),\n",
|
" ('dog', 'VERB'),\n",
|
||||||
" ('fox', 'NOUN(OBJ)'),\n",
|
" ('fox', 'NOUN(OBJ)'),\n",
|
||||||
" ('fox', 'NOUN(SUBJECT)'),\n",
|
" ('fox', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('fox', 'VERB'),\n",
|
|
||||||
" ('jumps', 'VERB'),\n",
|
" ('jumps', 'VERB'),\n",
|
||||||
" ('lazy', 'DET'),\n",
|
" ('lazy', 'DET'),\n",
|
||||||
" ('lazy', 'NOUN(OBJ)'),\n",
|
" ('lazy', 'NOUN(OBJ)'),\n",
|
||||||
|
@ -304,7 +307,6 @@
|
||||||
" ('over', 'NOUN(OBJ)'),\n",
|
" ('over', 'NOUN(OBJ)'),\n",
|
||||||
" ('over', 'NOUN(SUBJECT)'),\n",
|
" ('over', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('over', 'VERB'),\n",
|
" ('over', 'VERB'),\n",
|
||||||
" ('quick', 'DET'),\n",
|
|
||||||
" ('quick', 'NOUN(OBJ)'),\n",
|
" ('quick', 'NOUN(OBJ)'),\n",
|
||||||
" ('quick', 'NOUN(SUBJECT)'),\n",
|
" ('quick', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('quick', 'VERB'),\n",
|
" ('quick', 'VERB'),\n",
|
||||||
|
@ -312,6 +314,9 @@
|
||||||
" ('the', 'NOUN(OBJ)'),\n",
|
" ('the', 'NOUN(OBJ)'),\n",
|
||||||
" ('the', 'NOUN(SUBJECT)'),\n",
|
" ('the', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('the', 'VERB')}\n",
|
" ('the', 'VERB')}\n",
|
||||||
|
"Calling with noun_immediately_precedes_verb\n",
|
||||||
|
"noun_immediately_precedes_verb removed 0 elements\n",
|
||||||
|
"set()\n",
|
||||||
"Calling with remove_noun_nodoubles\n",
|
"Calling with remove_noun_nodoubles\n",
|
||||||
"remove_noun_nodoubles removed 0 elements\n",
|
"remove_noun_nodoubles removed 0 elements\n",
|
||||||
"set()\n",
|
"set()\n",
|
||||||
|
@ -328,15 +333,12 @@
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"{('brown', 'DET'),\n",
|
"{('brown', 'DET'),\n",
|
||||||
" ('brown', 'NOUN(OBJ)'),\n",
|
|
||||||
" ('brown', 'NOUN(SUBJECT)'),\n",
|
|
||||||
" ('brown', 'VERB'),\n",
|
" ('brown', 'VERB'),\n",
|
||||||
" ('dog', 'NOUN(OBJ)'),\n",
|
" ('dog', 'NOUN(OBJ)'),\n",
|
||||||
" ('dog', 'NOUN(SUBJECT)'),\n",
|
" ('dog', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('dog', 'VERB'),\n",
|
" ('dog', 'VERB'),\n",
|
||||||
" ('fox', 'NOUN(OBJ)'),\n",
|
" ('fox', 'NOUN(OBJ)'),\n",
|
||||||
" ('fox', 'NOUN(SUBJECT)'),\n",
|
" ('fox', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('fox', 'VERB'),\n",
|
|
||||||
" ('jumps', 'VERB'),\n",
|
" ('jumps', 'VERB'),\n",
|
||||||
" ('lazy', 'DET'),\n",
|
" ('lazy', 'DET'),\n",
|
||||||
" ('lazy', 'NOUN(OBJ)'),\n",
|
" ('lazy', 'NOUN(OBJ)'),\n",
|
||||||
|
@ -346,7 +348,6 @@
|
||||||
" ('over', 'NOUN(OBJ)'),\n",
|
" ('over', 'NOUN(OBJ)'),\n",
|
||||||
" ('over', 'NOUN(SUBJECT)'),\n",
|
" ('over', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('over', 'VERB'),\n",
|
" ('over', 'VERB'),\n",
|
||||||
" ('quick', 'DET'),\n",
|
|
||||||
" ('quick', 'NOUN(OBJ)'),\n",
|
" ('quick', 'NOUN(OBJ)'),\n",
|
||||||
" ('quick', 'NOUN(SUBJECT)'),\n",
|
" ('quick', 'NOUN(SUBJECT)'),\n",
|
||||||
" ('quick', 'VERB'),\n",
|
" ('quick', 'VERB'),\n",
|
||||||
|
@ -356,7 +357,7 @@
|
||||||
" ('the', 'VERB')}"
|
" ('the', 'VERB')}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 118,
|
"execution_count": 123,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue