|
@@ -53,7 +53,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 4,
|
|
+ "execution_count": 8,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [
|
|
"outputs": [
|
|
{
|
|
{
|
|
@@ -63,7 +63,7 @@
|
|
" <iframe\n",
|
|
" <iframe\n",
|
|
" width=\"100%\"\n",
|
|
" width=\"100%\"\n",
|
|
" height=\"475\"\n",
|
|
" height=\"475\"\n",
|
|
- " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/6\"\n",
|
|
+ " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/10\"\n",
|
|
" frameborder=\"0\"\n",
|
|
" frameborder=\"0\"\n",
|
|
" allowfullscreen\n",
|
|
" allowfullscreen\n",
|
|
" \n",
|
|
" \n",
|
|
@@ -71,7 +71,7 @@
|
|
" "
|
|
" "
|
|
],
|
|
],
|
|
"text/plain": [
|
|
"text/plain": [
|
|
- "<IPython.lib.display.IFrame at 0x1682b3b80>"
|
|
+ "<IPython.lib.display.IFrame at 0x167eb02e0>"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"metadata": {},
|
|
"metadata": {},
|
|
@@ -81,7 +81,7 @@
|
|
"data": {
|
|
"data": {
|
|
"text/plain": []
|
|
"text/plain": []
|
|
},
|
|
},
|
|
- "execution_count": 4,
|
|
+ "execution_count": 8,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
"output_type": "execute_result"
|
|
}
|
|
}
|
|
@@ -95,7 +95,7 @@
|
|
"search=ricercaforme(interpreter(parola), path, 0, 0)\n",
|
|
"search=ricercaforme(interpreter(parola), path, 0, 0)\n",
|
|
"textlist=findtexts(type, search, listOcc, path)\n",
|
|
"textlist=findtexts(type, search, listOcc, path)\n",
|
|
"contexts = findcontexts(textlist, 30, 0, listOcc, path)\n",
|
|
"contexts = findcontexts(textlist, 30, 0, listOcc, path)\n",
|
|
- "context = singlecontexts(contexts, 0, 0, 3, 0, listOcc, path)\n",
|
|
+ "context = singlecontexts(contexts, 0, 0, 0, 4, listOcc, path)\n",
|
|
"links = findlinks(context, path)\n",
|
|
"links = findlinks(context, path)\n",
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
"dtale.show(bibliocontext)"
|
|
"dtale.show(bibliocontext)"
|
|
@@ -121,39 +121,9 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 14,
|
|
+ "execution_count": null,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
- "outputs": [
|
|
+ "outputs": [],
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/html": [
|
|
|
|
- "\n",
|
|
|
|
- " <iframe\n",
|
|
|
|
- " width=\"100%\"\n",
|
|
|
|
- " height=\"475\"\n",
|
|
|
|
- " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/14\"\n",
|
|
|
|
- " frameborder=\"0\"\n",
|
|
|
|
- " allowfullscreen\n",
|
|
|
|
- " \n",
|
|
|
|
- " ></iframe>\n",
|
|
|
|
- " "
|
|
|
|
- ],
|
|
|
|
- "text/plain": [
|
|
|
|
- "<IPython.lib.display.IFrame at 0x1613e5c00>"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "display_data"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/plain": []
|
|
|
|
- },
|
|
|
|
- "execution_count": 14,
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "execute_result"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
"source": [
|
|
"source": [
|
|
"parola = \"tarda\"\n",
|
|
"parola = \"tarda\"\n",
|
|
"path = \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\"\n",
|
|
"path = \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\"\n",
|
|
@@ -179,7 +149,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 15,
|
|
+ "execution_count": 4,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [
|
|
"outputs": [
|
|
{
|
|
{
|
|
@@ -189,7 +159,7 @@
|
|
" <iframe\n",
|
|
" <iframe\n",
|
|
" width=\"100%\"\n",
|
|
" width=\"100%\"\n",
|
|
" height=\"475\"\n",
|
|
" height=\"475\"\n",
|
|
- " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/15\"\n",
|
|
+ " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/6\"\n",
|
|
" frameborder=\"0\"\n",
|
|
" frameborder=\"0\"\n",
|
|
" allowfullscreen\n",
|
|
" allowfullscreen\n",
|
|
" \n",
|
|
" \n",
|
|
@@ -197,7 +167,7 @@
|
|
" "
|
|
" "
|
|
],
|
|
],
|
|
"text/plain": [
|
|
"text/plain": [
|
|
- "<IPython.lib.display.IFrame at 0x1619c97b0>"
|
|
+ "<IPython.lib.display.IFrame at 0x16a4b65c0>"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"metadata": {},
|
|
"metadata": {},
|
|
@@ -207,7 +177,7 @@
|
|
"data": {
|
|
"data": {
|
|
"text/plain": []
|
|
"text/plain": []
|
|
},
|
|
},
|
|
- "execution_count": 15,
|
|
+ "execution_count": 4,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
"output_type": "execute_result"
|
|
}
|
|
}
|
|
@@ -221,7 +191,7 @@
|
|
"search=ricercaforme(interpreter(parola), path, 0, 0)\n",
|
|
"search=ricercaforme(interpreter(parola), path, 0, 0)\n",
|
|
"textlist=findtexts(type, search, listOcc, path)\n",
|
|
"textlist=findtexts(type, search, listOcc, path)\n",
|
|
"contexts = findcontexts(textlist, 30, 0, listOcc, path)\n",
|
|
"contexts = findcontexts(textlist, 30, 0, listOcc, path)\n",
|
|
- "context = singlecontexts(contexts, 28, 30, 0, 0, listOcc, path)\n",
|
|
+ "context = singlecontexts(contexts, 28, 0, 0, 1, listOcc, path)\n",
|
|
"links = findlinks(context, path)\n",
|
|
"links = findlinks(context, path)\n",
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
"dtale.show(bibliocontext)"
|
|
"dtale.show(bibliocontext)"
|
|
@@ -245,39 +215,9 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 16,
|
|
+ "execution_count": null,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
- "outputs": [
|
|
+ "outputs": [],
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/html": [
|
|
|
|
- "\n",
|
|
|
|
- " <iframe\n",
|
|
|
|
- " width=\"100%\"\n",
|
|
|
|
- " height=\"475\"\n",
|
|
|
|
- " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/16\"\n",
|
|
|
|
- " frameborder=\"0\"\n",
|
|
|
|
- " allowfullscreen\n",
|
|
|
|
- " \n",
|
|
|
|
- " ></iframe>\n",
|
|
|
|
- " "
|
|
|
|
- ],
|
|
|
|
- "text/plain": [
|
|
|
|
- "<IPython.lib.display.IFrame at 0x1619e5c00>"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "display_data"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/plain": []
|
|
|
|
- },
|
|
|
|
- "execution_count": 16,
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "execute_result"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
"source": [
|
|
"source": [
|
|
"parola = \"orgoglia\"\n",
|
|
"parola = \"orgoglia\"\n",
|
|
"path = \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\"\n",
|
|
"path = \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\"\n",
|
|
@@ -303,7 +243,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 17,
|
|
+ "execution_count": null,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
"source": [
|
|
"source": [
|
|
@@ -318,7 +258,7 @@
|
|
"context = singlecontexts(contexts, 0, 30, 0, 0, listOcc, path)\n",
|
|
"context = singlecontexts(contexts, 0, 30, 0, 0, listOcc, path)\n",
|
|
"links = findlinks(context, path)\n",
|
|
"links = findlinks(context, path)\n",
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
- "dtale.show(bibliocontext).open_browser()"
|
|
+ "dtale.show(bibliocontext)"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -332,39 +272,9 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 18,
|
|
+ "execution_count": null,
|
|
"metadata": {},
|
|
"metadata": {},
|
|
- "outputs": [
|
|
+ "outputs": [],
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/html": [
|
|
|
|
- "\n",
|
|
|
|
- " <iframe\n",
|
|
|
|
- " width=\"100%\"\n",
|
|
|
|
- " height=\"475\"\n",
|
|
|
|
- " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/18\"\n",
|
|
|
|
- " frameborder=\"0\"\n",
|
|
|
|
- " allowfullscreen\n",
|
|
|
|
- " \n",
|
|
|
|
- " ></iframe>\n",
|
|
|
|
- " "
|
|
|
|
- ],
|
|
|
|
- "text/plain": [
|
|
|
|
- "<IPython.lib.display.IFrame at 0x161845600>"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "display_data"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/plain": []
|
|
|
|
- },
|
|
|
|
- "execution_count": 18,
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "execute_result"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
"source": [
|
|
"source": [
|
|
"parola = \"pennace\"\n",
|
|
"parola = \"pennace\"\n",
|
|
"path = \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\"\n",
|
|
"path = \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\"\n",
|
|
@@ -379,123 +289,6 @@
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
"bibliocontext = singlefindbib(links, path)\n",
|
|
"dtale.show(bibliocontext)"
|
|
"dtale.show(bibliocontext)"
|
|
]
|
|
]
|
|
- },
|
|
|
|
- {
|
|
|
|
- "attachments": {},
|
|
|
|
- "cell_type": "markdown",
|
|
|
|
- "metadata": {},
|
|
|
|
- "source": [
|
|
|
|
- "ricerca di: “Ldovere Lavere” (per L vedi l’esempio che Lquesto anche se non ho mai capito a cosa serva, secondo me è funzionale solo la ricerca con G)\n",
|
|
|
|
- "\n",
|
|
|
|
- "\n",
|
|
|
|
- "\n",
|
|
|
|
- ""
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "cell_type": "code",
|
|
|
|
- "execution_count": 19,
|
|
|
|
- "metadata": {},
|
|
|
|
- "outputs": [
|
|
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/html": [
|
|
|
|
- "\n",
|
|
|
|
- " <iframe\n",
|
|
|
|
- " width=\"100%\"\n",
|
|
|
|
- " height=\"475\"\n",
|
|
|
|
- " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/19\"\n",
|
|
|
|
- " frameborder=\"0\"\n",
|
|
|
|
- " allowfullscreen\n",
|
|
|
|
- " \n",
|
|
|
|
- " ></iframe>\n",
|
|
|
|
- " "
|
|
|
|
- ],
|
|
|
|
- "text/plain": [
|
|
|
|
- "<IPython.lib.display.IFrame at 0x161a14250>"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "display_data"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/plain": []
|
|
|
|
- },
|
|
|
|
- "execution_count": 19,
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "execute_result"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- "source": [
|
|
|
|
- "ricerca = [[\"dovere\", \"1\", 0, 0], [\"avere\", \"1\", 0, 0]]\n",
|
|
|
|
- "cooccorrenze = ricerca_cooccorrenze(ricerca, 1, 1, 0, \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\")\n",
|
|
|
|
- "dtale.show(cooccorrenze)"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "cell_type": "code",
|
|
|
|
- "execution_count": 20,
|
|
|
|
- "metadata": {},
|
|
|
|
- "outputs": [
|
|
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/html": [
|
|
|
|
- "\n",
|
|
|
|
- " <iframe\n",
|
|
|
|
- " width=\"100%\"\n",
|
|
|
|
- " height=\"475\"\n",
|
|
|
|
- " src=\"http://MacBook-Air-di-Leonardo-2.local:40000/dtale/iframe/20\"\n",
|
|
|
|
- " frameborder=\"0\"\n",
|
|
|
|
- " allowfullscreen\n",
|
|
|
|
- " \n",
|
|
|
|
- " ></iframe>\n",
|
|
|
|
- " "
|
|
|
|
- ],
|
|
|
|
- "text/plain": [
|
|
|
|
- "<IPython.lib.display.IFrame at 0x161a452a0>"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "display_data"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "data": {
|
|
|
|
- "text/plain": []
|
|
|
|
- },
|
|
|
|
- "execution_count": 20,
|
|
|
|
- "metadata": {},
|
|
|
|
- "output_type": "execute_result"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- "source": [
|
|
|
|
- "ricerca = [[\"dovere\", \"1\", 0, 0], [\"avere\", \"1\", 0, 0]]\n",
|
|
|
|
- "cooccorrenze = ricerca_cooccorrenze(ricerca, 1, 1, 0, \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\")\n",
|
|
|
|
- "dtale.show(cooccorrenze)"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "attachments": {},
|
|
|
|
- "cell_type": "markdown",
|
|
|
|
- "metadata": {},
|
|
|
|
- "source": [
|
|
|
|
- "ricerca di: \"Gdovere Gavere\"\n",
|
|
|
|
- "\n",
|
|
|
|
- "\n",
|
|
|
|
- "\n",
|
|
|
|
- ""
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "cell_type": "code",
|
|
|
|
- "execution_count": 21,
|
|
|
|
- "metadata": {},
|
|
|
|
- "outputs": [],
|
|
|
|
- "source": [
|
|
|
|
- "ricerca = [[\"dovere\", \"2\", 0, 0], [\"avere\", \"2\", 0, 0]]\n",
|
|
|
|
- "cooccorrenze = ricerca_cooccorrenze(ricerca, 1, 1, 0, \"/Users/leonardocanova/Library/CloudStorage/OneDrive-ConsiglioNazionaledelleRicerche/TIGRO/Ricerche/db/first_db\")\n",
|
|
|
|
- "dtale.show(cooccorrenze)"
|
|
|
|
- ]
|
|
|
|
}
|
|
}
|
|
],
|
|
],
|
|
"metadata": {
|
|
"metadata": {
|