{
"cells": [
{
"cell_type": "code",
"execution_count": 20,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:20.473230Z",
"start_time": "2018-02-10T21:56:20.367985Z"
},
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/vnd.plotly.v1+html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#a bunch of import statements for the functions we'll be using\n",
"from sklearn.cluster import KMeans, AgglomerativeClustering\n",
"from scipy.cluster.hierarchy import dendrogram, linkage\n",
"from sklearn.feature_selection import SelectKBest\n",
"from sklearn.feature_extraction.text import CountVectorizer\n",
"from sklearn.metrics import pairwise\n",
"from sklearn.manifold import MDS\n",
"\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"\n",
"import seaborn as sns\n",
"import plotly.offline as py\n",
"import plotly.graph_objs as go\n",
"py.init_notebook_mode()"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:20.985206Z",
"start_time": "2018-02-10T21:56:20.475262Z"
},
"collapsed": false,
"scrolled": true
},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" 1-kam-ma[1st]NU | \n",
" 1/2[1/2]NU | \n",
" 1/3[1/3]NU | \n",
" 10-kam-ma[10th]NU | \n",
" 1000[1000]NU | \n",
" 100[100]NU | \n",
" 108000[108000]NU | \n",
" 1080[1080]NU | \n",
" 108[108]NU | \n",
" 10[10]NU | \n",
" ... | \n",
" šusi[finger]N | \n",
" šute?[accept]V/t | \n",
" šutubur[mixture]N | \n",
" šutug[reed-hut]N | \n",
" šutum[storehouse]N | \n",
" šutur[garment]N | \n",
" šuš[cover]V/t | \n",
" šu?i[barber]N | \n",
" šu?u[stone]N | \n",
" šu?ura[goose]N | \n",
"
\n",
" \n",
" | id_text | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
"
\n",
" \n",
" \n",
" \n",
" | c.0.1.1 | \n",
" 0.22871 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.000000 | \n",
" ... | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" | c.0.1.2 | \n",
" 0.00000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.091941 | \n",
" ... | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" | c.0.2.01 | \n",
" 0.00000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.000000 | \n",
" ... | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" | c.0.2.02 | \n",
" 0.00000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.000000 | \n",
" ... | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" | c.0.2.03 | \n",
" 0.00000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.000000 | \n",
" ... | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
"
\n",
"
5 rows × 4302 columns
\n",
"
"
],
"text/plain": [
" 1-kam-ma[1st]NU 1/2[1/2]NU 1/3[1/3]NU 10-kam-ma[10th]NU \\\n",
"id_text \n",
"c.0.1.1 0.22871 0.0 0.0 0.0 \n",
"c.0.1.2 0.00000 0.0 0.0 0.0 \n",
"c.0.2.01 0.00000 0.0 0.0 0.0 \n",
"c.0.2.02 0.00000 0.0 0.0 0.0 \n",
"c.0.2.03 0.00000 0.0 0.0 0.0 \n",
"\n",
" 1000[1000]NU 100[100]NU 108000[108000]NU 1080[1080]NU \\\n",
"id_text \n",
"c.0.1.1 0.0 0.0 0.0 0.0 \n",
"c.0.1.2 0.0 0.0 0.0 0.0 \n",
"c.0.2.01 0.0 0.0 0.0 0.0 \n",
"c.0.2.02 0.0 0.0 0.0 0.0 \n",
"c.0.2.03 0.0 0.0 0.0 0.0 \n",
"\n",
" 108[108]NU 10[10]NU ... šusi[finger]N \\\n",
"id_text ... \n",
"c.0.1.1 0.0 0.000000 ... 0.0 \n",
"c.0.1.2 0.0 0.091941 ... 0.0 \n",
"c.0.2.01 0.0 0.000000 ... 0.0 \n",
"c.0.2.02 0.0 0.000000 ... 0.0 \n",
"c.0.2.03 0.0 0.000000 ... 0.0 \n",
"\n",
" šute?[accept]V/t šutubur[mixture]N šutug[reed-hut]N \\\n",
"id_text \n",
"c.0.1.1 0.0 0.0 0.0 \n",
"c.0.1.2 0.0 0.0 0.0 \n",
"c.0.2.01 0.0 0.0 0.0 \n",
"c.0.2.02 0.0 0.0 0.0 \n",
"c.0.2.03 0.0 0.0 0.0 \n",
"\n",
" šutum[storehouse]N šutur[garment]N šuš[cover]V/t šu?i[barber]N \\\n",
"id_text \n",
"c.0.1.1 0.0 0.0 0.0 0.0 \n",
"c.0.1.2 0.0 0.0 0.0 0.0 \n",
"c.0.2.01 0.0 0.0 0.0 0.0 \n",
"c.0.2.02 0.0 0.0 0.0 0.0 \n",
"c.0.2.03 0.0 0.0 0.0 0.0 \n",
"\n",
" šu?u[stone]N šu?ura[goose]N \n",
"id_text \n",
"c.0.1.1 0.0 0.0 \n",
"c.0.1.2 0.0 0.0 \n",
"c.0.2.01 0.0 0.0 \n",
"c.0.2.02 0.0 0.0 \n",
"c.0.2.03 0.0 0.0 \n",
"\n",
"[5 rows x 4302 columns]"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"file = pd.read_csv(\"Data/onegramfilteredtfidf.csv\", index_col = 0)\n",
"file.head()"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:20.990210Z",
"start_time": "2018-02-10T21:56:20.986684Z"
},
"collapsed": true
},
"outputs": [],
"source": [
"words = file.columns\n",
"texts = file.index"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:20.997724Z",
"start_time": "2018-02-10T21:56:20.992196Z"
},
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Index(['1-kam-ma[1st]NU', '1/2[1/2]NU', '1/3[1/3]NU', '10-kam-ma[10th]NU',\n",
" '1000[1000]NU', '100[100]NU', '108000[108000]NU', '1080[1080]NU',\n",
" '108[108]NU', '10[10]NU'],\n",
" dtype='object')\n",
"4302\n"
]
}
],
"source": [
"print(words[:10]) #print out the first 10 words as a sanity check\n",
"print(len(words))"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.006236Z",
"start_time": "2018-02-10T21:56:20.999717Z"
},
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0.22870994, 0. , 0. , ..., 0. ,\n",
" 0. , 0. ],\n",
" [ 0. , 0. , 0. , ..., 0. ,\n",
" 0. , 0. ],\n",
" [ 0. , 0. , 0. , ..., 0. ,\n",
" 0. , 0. ],\n",
" ..., \n",
" [ 0. , 0. , 0. , ..., 0. ,\n",
" 0. , 0. ],\n",
" [ 0. , 0. , 0. , ..., 0. ,\n",
" 0. , 0. ],\n",
" [ 0. , 0. , 0. , ..., 0. ,\n",
" 0. , 0. ]])"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dtm = file.as_matrix()\n",
"dtm"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.012752Z",
"start_time": "2018-02-10T21:56:21.008241Z"
},
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"356"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(dtm)"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.074443Z",
"start_time": "2018-02-10T21:56:21.014757Z"
},
"collapsed": false,
"scrolled": true
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | id_text | \n",
" c.0.1.1 | \n",
" c.0.1.2 | \n",
" c.0.2.01 | \n",
" c.0.2.02 | \n",
" c.0.2.03 | \n",
" c.0.2.04 | \n",
" c.0.2.06 | \n",
" c.0.2.07 | \n",
" c.0.2.08 | \n",
" c.0.2.11 | \n",
" ... | \n",
" c.6.1.23 | \n",
" c.6.1.24 | \n",
" c.6.1.25 | \n",
" c.6.1.26 | \n",
" c.6.1.27 | \n",
" c.6.1.28 | \n",
" c.6.2.1 | \n",
" c.6.2.2 | \n",
" c.6.2.3 | \n",
" c.6.2.5 | \n",
"
\n",
" \n",
" | id_text | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
"
\n",
" \n",
" \n",
" \n",
" | c.0.1.1 | \n",
" 0.000000 | \n",
" 0.969666 | \n",
" 0.966844 | \n",
" 0.962367 | \n",
" 0.997159 | \n",
" 0.990801 | \n",
" 0.991764 | \n",
" 0.982808 | \n",
" 0.983839 | \n",
" 1.000000 | \n",
" ... | \n",
" 0.980535 | \n",
" 0.990684 | \n",
" 0.988002 | \n",
" 0.941854 | \n",
" 0.986586 | \n",
" 0.967027 | \n",
" 0.962033 | \n",
" 0.953011 | \n",
" 0.940927 | \n",
" 0.954584 | \n",
"
\n",
" \n",
" | c.0.1.2 | \n",
" 0.969666 | \n",
" 0.000000 | \n",
" 0.784686 | \n",
" 0.711962 | \n",
" 0.885036 | \n",
" 0.692746 | \n",
" 0.776205 | \n",
" 0.983191 | \n",
" 0.839093 | \n",
" 0.852215 | \n",
" ... | \n",
" 0.924037 | \n",
" 0.991376 | \n",
" 0.959502 | \n",
" 0.920016 | \n",
" 0.982423 | \n",
" 0.932179 | \n",
" 0.914273 | \n",
" 0.919923 | \n",
" 0.890635 | \n",
" 0.906842 | \n",
"
\n",
" \n",
" | c.0.2.01 | \n",
" 0.966844 | \n",
" 0.784686 | \n",
" 0.000000 | \n",
" 0.247072 | \n",
" 0.624002 | \n",
" 0.277678 | \n",
" 0.788966 | \n",
" 0.981840 | \n",
" 0.908256 | \n",
" 0.612501 | \n",
" ... | \n",
" 0.924557 | \n",
" 0.984093 | \n",
" 0.958457 | \n",
" 0.942169 | \n",
" 0.960652 | \n",
" 0.929098 | \n",
" 0.888292 | \n",
" 0.904388 | \n",
" 0.868083 | \n",
" 0.890089 | \n",
"
\n",
" \n",
" | c.0.2.02 | \n",
" 0.962367 | \n",
" 0.711962 | \n",
" 0.247072 | \n",
" 0.000000 | \n",
" 0.701013 | \n",
" 0.308537 | \n",
" 0.735413 | \n",
" 0.990235 | \n",
" 0.874896 | \n",
" 0.598098 | \n",
" ... | \n",
" 0.909307 | \n",
" 0.986944 | \n",
" 0.951509 | \n",
" 0.950456 | \n",
" 0.947092 | \n",
" 0.915664 | \n",
" 0.891771 | \n",
" 0.908854 | \n",
" 0.870437 | \n",
" 0.883582 | \n",
"
\n",
" \n",
" | c.0.2.03 | \n",
" 0.997159 | \n",
" 0.885036 | \n",
" 0.624002 | \n",
" 0.701013 | \n",
" 0.000000 | \n",
" 0.618533 | \n",
" 0.847563 | \n",
" 0.994129 | \n",
" 0.953976 | \n",
" 0.747425 | \n",
" ... | \n",
" 0.977511 | \n",
" 0.996946 | \n",
" 0.980530 | \n",
" 0.946146 | \n",
" 0.985379 | \n",
" 0.958533 | \n",
" 0.951213 | \n",
" 0.987310 | \n",
" 0.949105 | \n",
" 0.954732 | \n",
"
\n",
" \n",
"
\n",
"
5 rows × 356 columns
\n",
"
"
],
"text/plain": [
"id_text c.0.1.1 c.0.1.2 c.0.2.01 c.0.2.02 c.0.2.03 c.0.2.04 \\\n",
"id_text \n",
"c.0.1.1 0.000000 0.969666 0.966844 0.962367 0.997159 0.990801 \n",
"c.0.1.2 0.969666 0.000000 0.784686 0.711962 0.885036 0.692746 \n",
"c.0.2.01 0.966844 0.784686 0.000000 0.247072 0.624002 0.277678 \n",
"c.0.2.02 0.962367 0.711962 0.247072 0.000000 0.701013 0.308537 \n",
"c.0.2.03 0.997159 0.885036 0.624002 0.701013 0.000000 0.618533 \n",
"\n",
"id_text c.0.2.06 c.0.2.07 c.0.2.08 c.0.2.11 ... c.6.1.23 \\\n",
"id_text ... \n",
"c.0.1.1 0.991764 0.982808 0.983839 1.000000 ... 0.980535 \n",
"c.0.1.2 0.776205 0.983191 0.839093 0.852215 ... 0.924037 \n",
"c.0.2.01 0.788966 0.981840 0.908256 0.612501 ... 0.924557 \n",
"c.0.2.02 0.735413 0.990235 0.874896 0.598098 ... 0.909307 \n",
"c.0.2.03 0.847563 0.994129 0.953976 0.747425 ... 0.977511 \n",
"\n",
"id_text c.6.1.24 c.6.1.25 c.6.1.26 c.6.1.27 c.6.1.28 c.6.2.1 \\\n",
"id_text \n",
"c.0.1.1 0.990684 0.988002 0.941854 0.986586 0.967027 0.962033 \n",
"c.0.1.2 0.991376 0.959502 0.920016 0.982423 0.932179 0.914273 \n",
"c.0.2.01 0.984093 0.958457 0.942169 0.960652 0.929098 0.888292 \n",
"c.0.2.02 0.986944 0.951509 0.950456 0.947092 0.915664 0.891771 \n",
"c.0.2.03 0.996946 0.980530 0.946146 0.985379 0.958533 0.951213 \n",
"\n",
"id_text c.6.2.2 c.6.2.3 c.6.2.5 \n",
"id_text \n",
"c.0.1.1 0.953011 0.940927 0.954584 \n",
"c.0.1.2 0.919923 0.890635 0.906842 \n",
"c.0.2.01 0.904388 0.868083 0.890089 \n",
"c.0.2.02 0.908854 0.870437 0.883582 \n",
"c.0.2.03 0.987310 0.949105 0.954732 \n",
"\n",
"[5 rows x 356 columns]"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dist_matrix = pairwise.pairwise_distances(dtm, metric='cosine') \n",
"\n",
"pd.DataFrame(dist_matrix, index = file.index, columns = file.index).head()"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.091962Z",
"start_time": "2018-02-10T21:56:21.075919Z"
},
"collapsed": false,
"scrolled": true
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Full title | \n",
" display title | \n",
"
\n",
" \n",
" | text ref | \n",
" | \n",
" | \n",
"
\n",
" \n",
" \n",
" \n",
" | c.4.12.2 | \n",
" A hymn to Martu (Martu B) | \n",
" A hymn to Martu (Martu | \n",
"
\n",
" \n",
" | c.4.12.1 | \n",
" A šir-gida to Martu (Martu A) | \n",
" A šir-gida to Martu (Ma | \n",
"
\n",
" \n",
" | c.4.29.1 | \n",
" A šir-gida to Nuska (Nuska A) | \n",
" A šir-gida to Nuska (Nu | \n",
"
\n",
" \n",
" | c.4.29.2 | \n",
" A šir-gida to Nuska (Nuska B) | \n",
" A šir-gida to Nuska (Nu | \n",
"
\n",
" \n",
" | c.4.08.31 | \n",
" A balbale to Inana (Dumuzid-Inana E1) | \n",
" A balbale to Inana (Dum | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Full title display title\n",
"text ref \n",
"c.4.12.2 A hymn to Martu (Martu B) A hymn to Martu (Martu \n",
"c.4.12.1 A šir-gida to Martu (Martu A) A šir-gida to Martu (Ma\n",
"c.4.29.1 A šir-gida to Nuska (Nuska A) A šir-gida to Nuska (Nu\n",
"c.4.29.2 A šir-gida to Nuska (Nuska B) A šir-gida to Nuska (Nu\n",
"c.4.08.31 A balbale to Inana (Dumuzid-Inana E1) A balbale to Inana (Dum"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names = pd.read_csv('Data/idToTextName.csv', index_col=0, header = None)\n",
"names.columns = [\"Full title\"]\n",
"names.index.name = \"text ref\"\n",
"names[\"display title\"] = names[\"Full title\"].str.slice(0,23)\n",
"names.head()"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.167664Z",
"start_time": "2018-02-10T21:56:21.093466Z"
},
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"text ref\n",
"c.4.12.2 A hymn to Martu (Martu \n",
"c.4.12.1 A šir-gida to Martu (Ma\n",
"c.4.29.1 A šir-gida to Nuska (Nu\n",
"c.4.29.2 A šir-gida to Nuska (Nu\n",
"c.4.08.31 A balbale to Inana (Dum\n",
"Name: display title, dtype: object"
]
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"labels = names[\"display title\"]\n",
"fulltitles = names[\"Full title\"]\n",
"labels.head()"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.188219Z",
"start_time": "2018-02-10T21:56:21.169668Z"
},
"collapsed": true
},
"outputs": [],
"source": [
"cluster_0 = ['c.1.4.1.3', 'c.2.4.1.7', 'c.2.4.2.14', 'c.2.4.2.26', 'c.2.4.4.1', 'c.2.4.4.2', 'c.2.4.4.3', 'c.4.07.6', 'c.4.07.7', 'c.4.07.8', 'c.4.07.9', 'c.4.08.01', 'c.4.08.02', 'c.4.08.03', 'c.4.08.04', 'c.4.08.05', 'c.4.08.07', 'c.4.08.08', 'c.4.08.18', 'c.4.08.25', 'c.4.08.26', 'c.4.08.28', 'c.4.08.29', 'c.4.08.30', 'c.4.08.32', 'c.4.08.33', 'c.4.13.02', 'c.4.22.2', 'c.5.5.5']\n",
"cluster_1 = ['c.0.1.2', 'c.0.2.01', 'c.0.2.02', 'c.0.2.03', 'c.0.2.04', 'c.0.2.06', 'c.0.2.11', 'c.0.2.13', 'c.1.6.1', 'c.1.6.2', 'c.1.6.3', 'c.2.4.2.20', 'c.2.4.4.4', 'c.2.5.4.15', 'c.2.5.7.1', 'c.4.27.01', 'c.4.27.02', 'c.4.27.03', 'c.4.27.04', 'c.4.27.07', 'c.4.80.2', 'c.5.5.4']\n",
"cluster_2 = ['c.1.3.1', 'c.1.3.2', 'c.1.3.3', 'c.1.3.4', 'c.1.3.5', 'c.1.4.1', 'c.1.4.4', 'c.1.8.1.2', 'c.1.8.2.3', 'c.2.1.6', 'c.2.4.2.24', 'c.2.4.2.a', 'c.2.5.1.3', 'c.2.5.3.1', 'c.2.5.4.10', 'c.2.5.4.11', 'c.2.5.6.4', 'c.2.6.9.8', 'c.2.7.1.1', 'c.2.8.2.6', 'c.2.8.3.1', 'c.3.3.01', 'c.3.3.10', 'c.4.07.1', 'c.4.07.2', 'c.4.07.3', 'c.4.07.4', 'c.4.07.5', 'c.4.07.a', 'c.4.08.06', 'c.4.08.09', 'c.4.08.10', 'c.4.08.16', 'c.4.08.20', 'c.4.08.a', 'c.4.19.3', 'c.4.33.2']\n",
"cluster_3 = ['c.1.1.3', 'c.1.1.4', 'c.2.1.7', 'c.2.3.1', 'c.2.3.2', 'c.2.4.1.2', 'c.2.4.1.3', 'c.2.4.1.5', 'c.2.4.1.6', 'c.2.4.1.a', 'c.2.4.2.01', 'c.2.4.2.03', 'c.2.4.2.04', 'c.2.4.2.05', 'c.2.4.2.07', 'c.2.4.2.15', 'c.2.4.2.16', 'c.2.4.2.17', 'c.2.4.2.18', 'c.2.4.2.21', 'c.2.4.2.22', 'c.2.4.2.25', 'c.2.4.4.a', 'c.2.4.5.2', 'c.2.5.1.4', 'c.2.5.2.1', 'c.2.5.3.2', 'c.2.5.3.4', 'c.2.5.4.01', 'c.2.5.4.02', 'c.2.5.4.03', 'c.2.5.4.04', 'c.2.5.4.05', 'c.2.5.4.08', 'c.2.5.4.09', 'c.2.5.4.13', 'c.2.5.4.17', 'c.2.5.4.19', 'c.2.5.4.21', 'c.2.5.4.23', 'c.2.5.4.24', 'c.2.5.4.27', 'c.2.5.4.29', 'c.2.5.4.b', 'c.2.5.5.1', 'c.2.5.5.2', 'c.2.5.5.3', 'c.2.5.5.4', 'c.2.5.5.5', 'c.2.5.6.1', 'c.2.5.6.2', 'c.2.5.6.3', 'c.2.5.6.5', 'c.2.5.6.6', 'c.2.5.7.2', 'c.2.5.8.1', 'c.2.6.6.1', 'c.2.6.6.5', 'c.2.6.7.1', 'c.2.6.9.1', 'c.2.6.9.2', 'c.2.6.9.3', 'c.2.6.9.4', 'c.2.6.9.5', 'c.2.6.9.6', 'c.2.6.9.7', 'c.2.8.2.2', 'c.2.8.2.4', 'c.2.8.3.2', 'c.2.8.3.3', 'c.2.8.3.5', 'c.2.8.3.6', 'c.2.8.5.1', 'c.3.3.21', 'c.4.01.1', 'c.4.02.1', 'c.4.03.1', 'c.4.05.1', 'c.4.12.1', 'c.4.12.2', 'c.4.14.1', 'c.4.15.2', 'c.4.15.3', 'c.4.16.1', 'c.4.19.1', 'c.4.21.1', 'c.4.22.1', 'c.4.22.4', 'c.4.22.5', 'c.4.22.6', 'c.4.24.1', 'c.4.25.1', 'c.4.25.2', 'c.4.26.1', 'c.4.27.06', 'c.4.28.1', 'c.4.29.1', 'c.4.29.2', 'c.4.31.1', 'c.4.33.1', 'c.4.80.1', 'c.4.80.4', 'c.5.3.7']\n",
"cluster_4 = ['c.0.1.1', 'c.1.7.6', 'c.1.7.7', 'c.2.5.1.2', 'c.3.1.01', 'c.3.1.02', 'c.3.1.03', 'c.3.1.04', 'c.3.1.05', 'c.3.1.06', 'c.3.1.06.1', 'c.3.1.07', 'c.3.1.08', 'c.3.1.11', 'c.3.1.11.1', 'c.3.1.13.2', 'c.3.1.15', 'c.3.1.16', 'c.3.1.17', 'c.3.1.18', 'c.3.1.19', 'c.3.1.20', 'c.3.1.21', 'c.3.2.02', 'c.3.2.03', 'c.3.2.04', 'c.3.3.04', 'c.3.3.05', 'c.3.3.08', 'c.3.3.09', 'c.3.3.11', 'c.4.08.23', 'c.4.08.31', 'c.5.3.1', 'c.5.6.3', 'c.5.6.5', 'c.6.1.18', 'c.6.1.21']\n",
"cluster_5 = ['c.2.4.2.b', 'c.2.4.4.6', 'c.2.4.5.1', 'c.2.4.5.3', 'c.2.4.5.4', 'c.2.4.5.5', 'c.2.5.3.3', 'c.2.6.2.1', 'c.2.6.2.a', 'c.2.8.2.3', 'c.3.3.22', 'c.4.13.01', 'c.4.13.03', 'c.4.13.04', 'c.4.13.05', 'c.4.13.07', 'c.4.13.08', 'c.4.13.09', 'c.4.13.10', 'c.4.13.11', 'c.4.13.12', 'c.4.13.13', 'c.4.13.14', 'c.4.13.15', 'c.4.13.a', 'c.4.13.c', 'c.4.17.1']\n",
"cluster_6 = ['c.0.2.07', 'c.0.2.08', 'c.1.1.1', 'c.1.1.2', 'c.1.2.1', 'c.1.2.2', 'c.1.4.1.1', 'c.1.4.3', 'c.1.5.1', 'c.1.7.1', 'c.1.7.3', 'c.1.7.4', 'c.1.7.8', 'c.1.8.1.1', 'c.1.8.1.3', 'c.1.8.1.4', 'c.1.8.1.5', 'c.1.8.1.5.1', 'c.1.8.2.1', 'c.1.8.2.2', 'c.1.8.2.4', 'c.2.1.1', 'c.2.1.2', 'c.2.1.3', 'c.2.1.4', 'c.2.1.5', 'c.2.2.2', 'c.2.2.3', 'c.2.2.4', 'c.2.2.5', 'c.2.2.6', 'c.2.4.1.1', 'c.2.4.1.4', 'c.2.4.2.02', 'c.2.4.3.1', 'c.2.5.4.a', 'c.2.8.2.1', 'c.2.8.5.a', 'c.2.8.5.b', 'c.3.2.05', 'c.3.3.02', 'c.3.3.03', 'c.3.3.39', 'c.4.06.1', 'c.4.08.15', 'c.4.13.06', 'c.4.14.2', 'c.4.14.3', 'c.4.16.2', 'c.4.19.2', 'c.4.23.1', 'c.4.32.2', 'c.4.32.e', 'c.4.32.f', 'c.5.1.3', 'c.5.2.4', 'c.5.2.5', 'c.5.3.2', 'c.5.3.3', 'c.5.3.5', 'c.5.3.6', 'c.5.4.11', 'c.5.4.12', 'c.5.5.1', 'c.5.5.2', 'c.5.5.3', 'c.5.5.a', 'c.5.6.1', 'c.5.7.1', 'c.5.7.2', 'c.5.9.1', 'c.5.9.2', 'c.6.1.01', 'c.6.1.02', 'c.6.1.03', 'c.6.1.04', 'c.6.1.05', 'c.6.1.07', 'c.6.1.08', 'c.6.1.09', 'c.6.1.10', 'c.6.1.11', 'c.6.1.12', 'c.6.1.13', 'c.6.1.14', 'c.6.1.15', 'c.6.1.16', 'c.6.1.17', 'c.6.1.19', 'c.6.1.22', 'c.6.1.23', 'c.6.1.24', 'c.6.1.25', 'c.6.1.26', 'c.6.1.27', 'c.6.1.28', 'c.6.2.1', 'c.6.2.2', 'c.6.2.3', 'c.6.2.5']"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.193732Z",
"start_time": "2018-02-10T21:56:21.190223Z"
},
"collapsed": true
},
"outputs": [],
"source": [
"clusters = [cluster_0, cluster_1, cluster_2, cluster_3, cluster_4, cluster_5, cluster_6]"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:21.199247Z",
"start_time": "2018-02-10T21:56:21.195738Z"
},
"collapsed": true
},
"outputs": [],
"source": [
"dict_color_cluster = { #define unique color for every cluster\n",
" 0: '#2c4ff9', #dark blue\n",
" 1: '#db0f12', #red\n",
" 2: '#000000', #black\n",
" 3: '#3FB230', #green\n",
" 4: '#ff54f9', #pink\n",
" 5: '#630AFF', #purple\n",
" 6: '#F5770D' #orange \n",
"}"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:23.103373Z",
"start_time": "2018-02-10T21:56:21.200751Z"
},
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0.0159024 , -0.79343975],\n",
" [ 0.30929124, 0.57779201],\n",
" [ 0.38502259, 0.56296131],\n",
" [ 0.40198954, 0.52788746],\n",
" [ 0.5237078 , -0.57985784],\n",
" [ 0.42168646, 0.59510261],\n",
" [ 0.61032664, -0.23959547],\n",
" [ 0.35087112, -0.71002111],\n",
" [ 0.36747653, -0.58628854],\n",
" [-0.17233303, 0.73485737],\n",
" [-0.03194299, 0.64354327],\n",
" [-0.21973462, -0.34134486],\n",
" [ 0.16484138, -0.38069597],\n",
" [ 0.1295834 , -0.02177603],\n",
" [ 0.29973343, -0.22286513],\n",
" [-0.26703946, -0.42499587],\n",
" [ 0.00202544, -0.17056458],\n",
" [ 0.06407636, -0.34096429],\n",
" [ 0.03637418, -0.11549216],\n",
" [-0.14680433, -0.33841375],\n",
" [-0.11483535, -0.76462862],\n",
" [ 0.02232799, -0.41741538],\n",
" [-0.13436922, -0.27608851],\n",
" [-0.42288589, -0.38810496],\n",
" [-0.34833897, -0.58175706],\n",
" [-0.35247011, -0.34482465],\n",
" [-0.45125173, -0.45660919],\n",
" [ 0.1562604 , -0.60146158],\n",
" [ 0.00769502, 0.34031422],\n",
" [-0.03166923, 0.17379403],\n",
" [ 0.22606301, -0.32636798],\n",
" [-0.64048807, 0.14132735],\n",
" [ 0.19702604, -0.68582824],\n",
" [-0.26656656, 0.39340804],\n",
" [-0.37286558, -0.45653958],\n",
" [-0.42965664, 0.58820506],\n",
" [-0.16013455, -0.58687078],\n",
" [ 0.41711268, -0.53365285],\n",
" [-0.0551854 , -0.39489688],\n",
" [-0.37877385, 0.11641768],\n",
" [-0.4012246 , -0.25224865],\n",
" [-0.28949903, 0.0736792 ],\n",
" [-0.34023625, 0.16965912],\n",
" [-0.12213217, -0.11398763],\n",
" [-0.20024242, -0.21753929],\n",
" [ 0.01026522, -0.2719257 ],\n",
" [-0.10900369, -0.30828073],\n",
" [ 0.18623106, -0.7714655 ],\n",
" [-0.64626741, 0.32364408],\n",
" [-0.2858827 , 0.76076364],\n",
" [ 0.43054259, -0.62415583],\n",
" [-0.15498218, -0.04325657],\n",
" [-0.63567362, -0.11677318],\n",
" [ 0.10562736, -0.14151897],\n",
" [-0.60813237, -0.07402735],\n",
" [-0.13121986, 0.04014076],\n",
" [-0.04455022, -0.07393083],\n",
" [-0.10433445, 0.02713687],\n",
" [-0.17023622, 0.09541337],\n",
" [ 0.61351116, -0.36819711],\n",
" [ 0.21057894, 0.63561798],\n",
" [-0.20966559, 0.26287563],\n",
" [ 0.24005422, 0.58136173],\n",
" [ 0.01165992, 0.18732558],\n",
" [ 0.708946 , -0.12619041],\n",
" [ 0.09696637, 0.69481318],\n",
" [ 0.37703283, 0.51079642],\n",
" [-0.02688148, -0.76246659],\n",
" [-0.01482163, 0.57501709],\n",
" [-0.0693032 , 0.22303237],\n",
" [-0.10495666, 0.07067764],\n",
" [-0.05990728, 0.15334597],\n",
" [ 0.02319311, 0.15000112],\n",
" [-0.04561891, 0.11164679],\n",
" [ 0.18227212, 0.25977942],\n",
" [-0.23747124, -0.6858282 ],\n",
" [ 0.05249442, 0.27591718],\n",
" [ 0.13548173, 0.21530646],\n",
" [ 0.14148886, 0.47530833],\n",
" [ 0.12069679, 0.16634756],\n",
" [ 0.40932536, 0.48238284],\n",
" [-0.14221143, 0.69962014],\n",
" [ 0.15464212, 0.62594345],\n",
" [ 0.07073827, 0.05047406],\n",
" [ 0.41883758, -0.20903896],\n",
" [-0.43981348, -0.63129788],\n",
" [-0.30833972, 0.67779379],\n",
" [-0.19405674, 0.61165601],\n",
" [ 0.56548356, -0.49433896],\n",
" [-0.63170337, -0.45117536],\n",
" [-0.57498463, -0.53852763],\n",
" [-0.68201756, -0.24304268],\n",
" [-0.08625739, 0.65216174],\n",
" [-0.58358312, 0.35936939],\n",
" [-0.10502053, 0.56314443],\n",
" [ 0.65275014, 0.297226 ],\n",
" [ 0.68416531, 0.12391 ],\n",
" [ 0.56031829, 0.37268553],\n",
" [ 0.47008484, 0.33557047],\n",
" [ 0.58647079, 0.35123586],\n",
" [-0.26621941, 0.6310034 ],\n",
" [ 0.40187776, 0.64199004],\n",
" [ 0.61441944, -0.31053018],\n",
" [-0.08630509, 0.70452423],\n",
" [ 0.17034717, -0.22659731],\n",
" [ 0.0914024 , 0.58983119],\n",
" [ 0.23784361, 0.67457865],\n",
" [ 0.1040828 , 0.41753919],\n",
" [ 0.06915766, 0.08237281],\n",
" [ 0.3587259 , 0.0217625 ],\n",
" [ 0.51165987, 0.24387378],\n",
" [ 0.50261183, -0.01958242],\n",
" [ 0.56044181, -0.03430156],\n",
" [ 0.39516564, 0.11392051],\n",
" [ 0.36433214, -0.07098651],\n",
" [ 0.40646056, -0.57086771],\n",
" [ 0.23300106, -0.1707609 ],\n",
" [ 0.41903379, 0.04974433],\n",
" [ 0.50592758, 0.37833117],\n",
" [ 0.34548508, 0.04905224],\n",
" [ 0.01486967, 0.43009143],\n",
" [ 0.74261312, -0.00392054],\n",
" [ 0.34122598, 0.12846503],\n",
" [ 0.42823201, 0.10560009],\n",
" [ 0.64113345, 0.1342978 ],\n",
" [ 0.66054753, -0.06156853],\n",
" [-0.02611354, 0.69938593],\n",
" [ 0.64786359, -0.10335802],\n",
" [ 0.0678048 , 0.31696398],\n",
" [ 0.29717976, 0.42372284],\n",
" [ 0.35824294, 0.30223899],\n",
" [ 0.09293163, 0.48890979],\n",
" [ 0.2498393 , 0.60050814],\n",
" [ 0.26484201, 0.21499869],\n",
" [ 0.29133424, 0.07905301],\n",
" [ 0.16458453, 0.40232354],\n",
" [ 0.40735167, 0.1729623 ],\n",
" [ 0.33853429, 0.24903076],\n",
" [ 0.69457781, -0.28117265],\n",
" [ 0.08171954, 0.55325132],\n",
" [ 0.27465606, 0.45375528],\n",
" [ 0.21857997, -0.07399661],\n",
" [ 0.42155782, 0.37910668],\n",
" [ 0.22029345, 0.73343 ],\n",
" [ 0.40011439, -0.33271938],\n",
" [ 0.28102327, 0.35579894],\n",
" [ 0.45841725, 0.30599189],\n",
" [-0.25695359, 0.55511334],\n",
" [ 0.44148514, -0.060267 ],\n",
" [ 0.43286173, 0.23938922],\n",
" [ 0.69767758, -0.24102138],\n",
" [ 0.20439458, -0.0473197 ],\n",
" [ 0.56146522, -0.22158776],\n",
" [-0.08648801, 0.48885774],\n",
" [ 0.53184062, -0.27958641],\n",
" [ 0.28660101, -0.25192144],\n",
" [ 0.63308327, 0.40162196],\n",
" [ 0.54110456, 0.50868013],\n",
" [ 0.55190345, 0.47084031],\n",
" [ 0.27076683, 0.50828699],\n",
" [ 0.64328179, -0.00531743],\n",
" [-0.6028322 , -0.417467 ],\n",
" [-0.08139197, 0.38248337],\n",
" [ 0.49953291, 0.17789599],\n",
" [ 0.1887739 , 0.36720639],\n",
" [ 0.6891786 , 0.03449731],\n",
" [ 0.6266213 , 0.34118786],\n",
" [-0.49773464, 0.45425313],\n",
" [-0.54593858, -0.3403599 ],\n",
" [ 0.23617176, -0.56493705],\n",
" [-0.44162036, 0.33272112],\n",
" [-0.71301682, 0.24992686],\n",
" [-0.51699666, 0.37686667],\n",
" [-0.7944505 , 0.01595367],\n",
" [-0.33421953, 0.56413842],\n",
" [-0.78750455, -0.00367117],\n",
" [-0.50055473, 0.51290171],\n",
" [-0.46395819, 0.49119277],\n",
" [-0.554999 , 0.22350675],\n",
" [-0.63881165, 0.42368213],\n",
" [-0.42471701, 0.36347783],\n",
" [-0.57086737, 0.40942273],\n",
" [-0.49246584, 0.40305327],\n",
" [-0.37703837, 0.40233876],\n",
" [-0.45781393, 0.54835839],\n",
" [-0.5273132 , 0.51261294],\n",
" [ 0.31726761, -0.51822655],\n",
" [-0.51436711, 0.11038616],\n",
" [-0.4346545 , 0.62393105],\n",
" [-0.77995139, 0.2202165 ],\n",
" [-0.79751401, -0.06206366],\n",
" [-0.2286786 , 0.33885876],\n",
" [ 0.24919604, -0.50701525],\n",
" [-0.49390118, 0.05022441],\n",
" [-0.59173284, 0.44686514],\n",
" [-0.71031042, 0.34007999],\n",
" [-0.7333389 , 0.30096568],\n",
" [ 0.2689281 , -0.73135305],\n",
" [ 0.72501939, -0.05783041],\n",
" [ 0.38578386, -0.44190171],\n",
" [ 0.26455214, -0.65076204],\n",
" [ 0.50866835, -0.37978435],\n",
" [ 0.5816487 , 0.01320365],\n",
" [ 0.32030948, -0.40963494],\n",
" [ 0.57940825, -0.12383067],\n",
" [ 0.30212888, -0.3411418 ],\n",
" [ 0.47957115, -0.1326096 ],\n",
" [ 0.15174622, 0.07525891],\n",
" [-0.44711379, -0.01510116],\n",
" [ 0.11701501, 0.67804756],\n",
" [ 0.15615238, 0.00792065],\n",
" [ 0.05557892, -0.09300836],\n",
" [ 0.15430092, -0.28625092],\n",
" [ 0.61557984, 0.0271489 ],\n",
" [ 0.03462806, -0.79953489],\n",
" [-0.31503486, -0.59477099],\n",
" [-0.39951923, -0.58592799],\n",
" [-0.02519452, -0.61867532],\n",
" [-0.21712236, 0.44393548],\n",
" [-0.31110655, -0.70218081],\n",
" [-0.3662696 , -0.65125412],\n",
" [-0.37719079, -0.53842696],\n",
" [-0.44388619, -0.56959036],\n",
" [-0.40794199, 0.68315596],\n",
" [-0.04150721, 0.74904022],\n",
" [-0.28924066, -0.66885792],\n",
" [-0.4842938 , -0.48582114],\n",
" [-0.19552618, -0.75318672],\n",
" [ 0.05864438, -0.57037457],\n",
" [-0.04661991, -0.56628555],\n",
" [-0.08201007, -0.58405721],\n",
" [-0.50600133, -0.57939381],\n",
" [-0.06230321, -0.65491292],\n",
" [-0.72245933, -0.27898148],\n",
" [ 0.13346201, -0.676616 ],\n",
" [-0.62330684, -0.37977166],\n",
" [-0.31212752, -0.48051545],\n",
" [-0.17967143, -0.55850008],\n",
" [-0.54303527, -0.41017272],\n",
" [-0.6905353 , -0.37138062],\n",
" [ 0.28315733, -0.74982211],\n",
" [-0.15921098, -0.62781839],\n",
" [-0.08687657, -0.6865328 ],\n",
" [ 0.18393454, 0.14952909],\n",
" [-0.04852311, 0.50116718],\n",
" [ 0.39051676, -0.27343251],\n",
" [-0.13855776, -0.72013232],\n",
" [ 0.67107934, 0.18561168],\n",
" [ 0.49722392, -0.49060704],\n",
" [ 0.5425405 , 0.04503637],\n",
" [-0.77593234, 0.07946731],\n",
" [ 0.74205219, 0.11779937],\n",
" [ 0.59901354, 0.2461528 ],\n",
" [ 0.71432151, -0.17563763],\n",
" [ 0.51950529, 0.41978316],\n",
" [ 0.07656592, -0.66221423],\n",
" [ 0.35865357, 0.3273884 ],\n",
" [ 0.75678638, 0.0639605 ],\n",
" [ 0.19417543, 0.70046158],\n",
" [ 0.20150902, -0.4887006 ],\n",
" [ 0.65928308, -0.19237929],\n",
" [ 0.57199686, 0.46325114],\n",
" [-0.16426593, 0.16775288],\n",
" [ 0.78864892, 0.20842443],\n",
" [-0.63971238, -0.24725948],\n",
" [-0.11988519, 0.46622929],\n",
" [ 0.62250244, 0.21438548],\n",
" [ 0.45372825, -0.32977684],\n",
" [ 0.19785265, -0.74080743],\n",
" [ 0.32749004, 0.66383865],\n",
" [ 0.35771681, -0.18145582],\n",
" [-0.70955716, -0.14800955],\n",
" [ 0.0205933 , 0.78031753],\n",
" [ 0.34464722, 0.62633761],\n",
" [-0.05946615, 0.30119643],\n",
" [-0.49439907, -0.63982584],\n",
" [ 0.2202374 , 0.48625719],\n",
" [ 0.67593651, -0.33120644],\n",
" [ 0.52086027, -0.2492247 ],\n",
" [ 0.57114924, -0.53781039],\n",
" [ 0.55029728, 0.20651248],\n",
" [ 0.5068572 , -0.45774276],\n",
" [-0.08799564, 0.78296519],\n",
" [ 0.69044801, -0.34115528],\n",
" [ 0.38365851, 0.44504419],\n",
" [ 0.23273409, 0.32117236],\n",
" [ 0.04745089, 0.58652472],\n",
" [-0.44572122, 0.34502175],\n",
" [ 0.5573364 , -0.429283 ],\n",
" [-0.14799385, 0.56624452],\n",
" [ 0.04152952, 0.01650685],\n",
" [ 0.54014157, 0.1482847 ],\n",
" [ 0.6217876 , 0.28184874],\n",
" [ 0.32530289, -0.14269532],\n",
" [-0.35495334, 0.5198239 ],\n",
" [-0.4441649 , -0.49186805],\n",
" [-0.28405851, -0.58142653],\n",
" [ 0.72765182, 0.22198562],\n",
" [ 0.39441488, -0.60902464],\n",
" [ 0.32689684, 0.15625942],\n",
" [-0.01784821, 0.67501883],\n",
" [ 0.7660609 , -0.17611779],\n",
" [-0.11903443, -0.15276664],\n",
" [-0.19569069, -0.04302288],\n",
" [-0.73743454, 0.1161918 ],\n",
" [-0.51200826, 0.00882246],\n",
" [-0.06314756, -0.31508344],\n",
" [-0.49511664, -0.15479303],\n",
" [-0.26013573, 0.14665926],\n",
" [-0.36492647, -0.04718395],\n",
" [-0.2919236 , 0.58787887],\n",
" [-0.70460599, 0.14445795],\n",
" [-0.65606867, 0.10061062],\n",
" [ 0.09859829, -0.40503976],\n",
" [-0.29351106, 0.2054532 ],\n",
" [-0.4229748 , 0.09029988],\n",
" [-0.58945418, 0.29080863],\n",
" [-0.24425176, -0.64428932],\n",
" [-0.58976529, -0.47434024],\n",
" [-0.33740053, -0.00339974],\n",
" [-0.42995553, 0.4811834 ],\n",
" [ 0.08497679, -0.65217401],\n",
" [-0.62597418, -0.29750471],\n",
" [-0.64138693, 0.37507483],\n",
" [ 0.45251394, 0.57950368],\n",
" [ 0.30563922, -0.55871921],\n",
" [-0.27737517, -0.19707226],\n",
" [-0.40765862, -0.15904125],\n",
" [-0.25170095, -0.12988737],\n",
" [-0.53823151, -0.09644348],\n",
" [-0.59192577, -0.15156508],\n",
" [-0.38047484, -0.27368055],\n",
" [-0.70285689, -0.07590616],\n",
" [-0.55845395, -0.21155659],\n",
" [-0.714004 , 0.01962562],\n",
" [-0.43851441, -0.19303728],\n",
" [-0.60977884, -0.04074469],\n",
" [-0.19889392, -0.45978961],\n",
" [-0.58568984, 0.06058926],\n",
" [-0.46393506, 0.14743922],\n",
" [-0.56214948, 0.01795848],\n",
" [-0.62366265, 0.17691773],\n",
" [ 0.08500858, -0.72630186],\n",
" [-0.52371012, -0.26646178],\n",
" [-0.5545008 , 0.53120545],\n",
" [-0.32257183, -0.13779068],\n",
" [-0.09149162, -0.47083344],\n",
" [-0.73119695, -0.20068237],\n",
" [ 0.10017124, -0.52937989],\n",
" [-0.46859052, -0.09576958],\n",
" [ 0.01785886, -0.71709412],\n",
" [-0.24587204, -0.37512591],\n",
" [-0.35409806, -0.19456518],\n",
" [-0.42315256, 0.2015134 ],\n",
" [-0.25760876, -0.07578718],\n",
" [-0.28928948, -0.05336599]])"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"mds_cluster = MDS(n_components = 2, dissimilarity=\"precomputed\") #use MDS\n",
"embeddings_cluster = mds_cluster.fit_transform(dist_matrix) #the points/vectors of the texts obtained by MDS\n",
"embeddings_cluster"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:23.108387Z",
"start_time": "2018-02-10T21:56:23.104376Z"
},
"collapsed": true
},
"outputs": [],
"source": [
"def clusterpicker(label):\n",
" for i in range(len(clusters)):\n",
" if label in clusters[i]:\n",
" return i"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:23.139469Z",
"start_time": "2018-02-10T21:56:23.110392Z"
},
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" x | \n",
" y | \n",
" cluster | \n",
" title | \n",
" fulltitle | \n",
"
\n",
" \n",
" | id_text | \n",
" | \n",
" | \n",
" | \n",
" | \n",
" | \n",
"
\n",
" \n",
" \n",
" \n",
" | c.0.1.1 | \n",
" 0.015902 | \n",
" -0.793440 | \n",
" 4 | \n",
" Ur III catalogue from N | \n",
" Ur III catalogue from Nibru (N1) | \n",
"
\n",
" \n",
" | c.0.1.2 | \n",
" 0.309291 | \n",
" 0.577792 | \n",
" 1 | \n",
" Ur III catalogue at Yal | \n",
" Ur III catalogue at Yale (Y1) | \n",
"
\n",
" \n",
" | c.0.2.01 | \n",
" 0.385023 | \n",
" 0.562961 | \n",
" 1 | \n",
" OB catalogue from Nibru | \n",
" OB catalogue from Nibru (N2) | \n",
"
\n",
" \n",
" | c.0.2.02 | \n",
" 0.401990 | \n",
" 0.527887 | \n",
" 1 | \n",
" OB catalogue in the Lou | \n",
" OB catalogue in the Louvre (L) | \n",
"
\n",
" \n",
" | c.0.2.03 | \n",
" 0.523708 | \n",
" -0.579858 | \n",
" 1 | \n",
" OB catalogue from Urim | \n",
" OB catalogue from Urim (U1) | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" x y cluster title \\\n",
"id_text \n",
"c.0.1.1 0.015902 -0.793440 4 Ur III catalogue from N \n",
"c.0.1.2 0.309291 0.577792 1 Ur III catalogue at Yal \n",
"c.0.2.01 0.385023 0.562961 1 OB catalogue from Nibru \n",
"c.0.2.02 0.401990 0.527887 1 OB catalogue in the Lou \n",
"c.0.2.03 0.523708 -0.579858 1 OB catalogue from Urim \n",
"\n",
" fulltitle \n",
"id_text \n",
"c.0.1.1 Ur III catalogue from Nibru (N1) \n",
"c.0.1.2 Ur III catalogue at Yale (Y1) \n",
"c.0.2.01 OB catalogue from Nibru (N2) \n",
"c.0.2.02 OB catalogue in the Louvre (L) \n",
"c.0.2.03 OB catalogue from Urim (U1) "
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"plotdata = pd.DataFrame(embeddings_cluster, columns = [\"x\", \"y\"], index = file.index)\n",
"plotdata[\"cluster\"] = [clusterpicker(i) for i in file.index]\n",
"plotdata[\"title\"] = [\"???\" if i not in labels else labels[i] for i in file.index]\n",
"plotdata[\"fulltitle\"] = [str(i) if i not in fulltitles else fulltitles[i] for i in file.index]\n",
"plotdata.head()"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {
"ExecuteTime": {
"end_time": "2018-02-10T21:56:23.195619Z",
"start_time": "2018-02-10T21:56:23.140974Z"
},
"collapsed": false
},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertext": [
"Dumuzid and his sisters",
"A balbale to Enlil for Ur-Namma (Ur-Namma G)",
"A lullaby for a son of Šulgi (Šulgi N)",
"A love song of Šulgi (Šulgi Z)",
"A balbale to Bau for Šu-Suen (Šu-Suen A)",
"A balbale to Inana for Šu-Suen (Šu-Suen B)",
"A balbale to Inana for Šu-Suen (Šu-Suen C)",
"A balbale (?) to Inana (Inana F)",
"A šir-namšub to Inana (Inana G)",
"A balbale to Inana as Nanaya (Inana H)",
"A šir-namšub to Inana (Inana I)",
"A balbale to Inana (Dumuzid-Inana A)",
"A balbale to Inana (Dumuzid-Inana B)",
"A balbale to Inana (Dumuzid-Inana C)",
"A balbale to Inana (Dumuzid-Inana D)",
"The song of the lettuce: a balbale to Inana (Dumuzid-Inana E)",
"A balbale to Inana (Dumuzid-Inana G)",
"A tigi to Inana (Dumuzid-Inana H)",
"A song of Inana and Dumuzid (Dumuzid-Inana R)",
"A song of Inana and Dumuzid (Dumuzid-Inana Y)",
"A song of Inana and Dumuzid (Dumuzid-Inana Z)",
"A song of Inana and Dumuzid (Dumuzid-Inana B1)",
"A song of Inana and Dumuzid (Dumuzid-Inana C1)",
"A song of Inana and Dumuzid (Dumuzid-Inana D1)",
"A song of Inana and Dumuzid (Dumuzid-Inana F1)",
"Dumuzid and Enkimdu",
"A balbale to Nanna (Nanna B)",
"A šir-namšub to Ninisina (Ninisina B)",
"The song of the ploughing oxen: an ululumama to Ninurta"
],
"marker": {
"size": 10
},
"mode": "text",
"name": "Cluster 0",
"text": [
"Dumuzid and his sisters",
"A balbale to Enlil for ",
"A lullaby for a son of ",
"A love song of Šulgi (Š",
"A balbale to Bau for Šu",
"A balbale to Inana for ",
"A balbale to Inana for ",
"A balbale (?) to Inana",
"A šir-namšub to Inana (",
"A balbale to Inana as N",
"A šir-namšub to Inana (",
"A balbale to Inana (Dum",
"A balbale to Inana (Dum",
"A balbale to Inana (Dum",
"A balbale to Inana (Dum",
"The song of the lettuce",
"A balbale to Inana (Dum",
"A tigi to Inana (Dumuzi",
"A song of Inana and Dum",
"A song of Inana and Dum",
"A song of Inana and Dum",
"A song of Inana and Dum",
"A song of Inana and Dum",
"A song of Inana and Dum",
"A song of Inana and Dum",
"Dumuzid and Enkimdu",
"A balbale to Nanna (Nan",
"A šir-namšub to Ninisin",
"The song of the ploughi"
],
"textfont": {
"color": "#2c4ff9",
"family": "sans serif",
"size": 11
},
"type": "scatter",
"x": [
-0.3483389744506215,
-0.02688147522720558,
-0.23747123707093673,
-0.4398134788267743,
-0.6317033650808883,
-0.5749846309511126,
-0.6820175569101622,
0.03462806355499011,
-0.31503486377873674,
-0.3995192278173491,
-0.025194515572633382,
-0.3111065458416163,
-0.36626959901972617,
-0.3771907930723025,
-0.4438861884388829,
-0.40794198726914693,
-0.28924065686699635,
-0.4842938026737453,
-0.506001334287478,
0.1334620068456201,
-0.6233068389972193,
-0.31212752144140143,
-0.17967142992075155,
-0.5430352734528626,
0.28315733131641324,
-0.15921097733288728,
-0.13855775862968897,
-0.4943990660639276,
-0.24425175585548398
],
"y": [
-0.581757057812213,
-0.7624665908837377,
-0.6858281974321045,
-0.6312978819283414,
-0.45117535549519483,
-0.5385276299167864,
-0.24304267744307642,
-0.7995348854052226,
-0.5947709892361829,
-0.5859279891793534,
-0.6186753170449693,
-0.7021808127084038,
-0.6512541243531488,
-0.5384269583624934,
-0.5695903632769439,
0.6831559594345393,
-0.6688579223951333,
-0.4858211370154861,
-0.5793938113228512,
-0.676616001451386,
-0.37977165879254077,
-0.4805154526720143,
-0.5585000802035311,
-0.41017271792188964,
-0.7498221069725947,
-0.627818389624247,
-0.7201323243777839,
-0.6398258441455381,
-0.6442893196009496
]
},
{
"hovertext": [
"Ur III catalogue at Yale (Y1)",
"OB catalogue from Nibru (N2)",
"OB catalogue in the Louvre (L)",
"OB catalogue from Urim (U1)",
"OB catalogue from Urim (U2)",
"OB catalogue from Nibru (N3)",
"OB catalogue at Andrews University (B4)",
"OB catalogue from Nibru (N6)",
"Ninurta's return to Nibru: a šir-gida to Ninurta",
"Ninurta's exploits: a šir-sud (?) to Ninurta",
"Ninurta and the turtle",
"A tigi to Ninurta for Šulgi (Šulgi T)",
"A tigi (?) to Ninurta for Šu-Suen (Šu-Suen D)",
"A tigi (?) to Ninurta for Išme-Dagan (Išme-Dagan O)",
"An adab to Ninurta for Būr-Suen (Būr-Suen A)",
"A šir-gida to Ninurta (Ninurta A)",
"Ninurta's journey to Eridug: a šir-gida to Ninurta (Ninurta B)",
"A hymn to Ninurta (Ninurta C)",
"A tigi to Ninurta (Ninurta D)",
"A šir-namšub to Ninurta (Ninurta G)",
"The Keš temple hymn",
"The song of the hoe"
],
"marker": {
"size": 10
},
"mode": "text",
"name": "Cluster 1",
"text": [
"Ur III catalogue at Yal",
"OB catalogue from Nibru",
"OB catalogue in the Lou",
"OB catalogue from Urim ",
"OB catalogue from Urim ",
"OB catalogue from Nibru",
"OB catalogue at Andrews",
"OB catalogue from Nibru",
"Ninurta's return to Nib",
"Ninurta's exploits: a š",
"Ninurta and the turtle",
"A tigi to Ninurta for Š",
"A tigi (?) to Ninurta f",
"A tigi (?) to Ninurta f",
"An adab to Ninurta for ",
"A šir-gida to Ninurta (",
"Ninurta's journey to Er",
"A hymn to Ninurta (Ninu",
"A tigi to Ninurta (Ninu",
"A šir-namšub to Ninurta",
"The Keš temple hymn",
"The song of the hoe"
],
"textfont": {
"color": "#db0f12",
"family": "sans serif",
"size": 11
},
"type": "scatter",
"x": [
0.30929123649584783,
0.38502259122127713,
0.40198954415307914,
0.523707802243846,
0.42168646343703536,
0.6103266391291786,
-0.1723330314887408,
-0.03194298997757371,
0.007695021780882014,
-0.031669230140058596,
0.22606301379471608,
0.4093253571527669,
-0.08625738800621557,
0.5059275790209428,
0.081719535841982,
0.3836585149191251,
0.23273408576929905,
0.04745089302125257,
-0.44572122346879206,
-0.14799385359713654,
-0.017848210632985168,
-0.5894541848732076
],
"y": [
0.5777920060268563,
0.5629613087864477,
0.527887456386858,
-0.5798578365665812,
0.5951026060811193,
-0.23959547347984803,
0.7348573724564278,
0.6435432749119396,
0.34031422072519646,
0.17379403037296925,
-0.3263679824564241,
0.4823828445995343,
0.6521617356929976,
0.3783311735692662,
0.5532513232228321,
0.44504419085237573,
0.3211723586714809,
0.5865247177878126,
0.3450217522681776,
0.5662445248651581,
0.675018825360279,
0.29080863015484343
]
},
{
"hovertext": [
"Inana and Enki",
"Inana and Ebih",
"Inana and Šu-kale-tuda",
"Inana and Gudam",
"Inana and An",
"Inana's descent to the nether world",
"Inana and Bilulu: an ulila to Inana",
"Gilgameš and the bull of heaven",
"Enmerkar and the lord of Aratta",
"The victory of Utu-heŋal",
"A praise poem of Šulgi (Šulgi X)",
"A song of Šulgi",
"A tigi to Nanaya for Išbi-Erra (Išbi-Erra C)",
"A šir-namursaŋa to Ninsiana for Iddin-Dagan (Iddin-Dagan A)",
"A love song of Išme-Dagan (Išme-Dagan J)",
"A hymn to Inana for Išme-Dagan (Išme-Dagan K)",
"An adab to Inana for Ur-Ninurta (Ur-Ninurta D)",
"An adab to Inana for Rīm-Sîn (Rīm-Sîn H)",
"A praise poem of Anam (Anam A)",
"A prayer to Inana for Hammu-rābi (Hammu-rābi F)",
"Samsu-iluna and Inana (Samsu-iluna A)",
"Letter from Ur-saga to a king fearing the loss of his father's household",
"Letter from Inanaka to the goddess Nintinuga",
"A balbale to Inana (Inana A)",
"The exaltation of Inana (Inana B)",
"A hymn to Inana (Inana C)",
"A hymn to Inana as Ninegala (Inana D)",
"A tigi to Inana (Inana E)",
"A hymn to Inana",
"A balbale to Inana (Dumuzid-Inana F)",
"A kunŋar to Inana (Dumuzid-Inana I)",
"A song of Inana and Dumuzid (Dumuzid-Inana J)",
"A balbale (?) to Inana (Dumuzid-Inana P)",
"A kunŋar to Inana (Dumuzid-Inana T)",
"A balbale to Inana",
"A hymn to Ninŋišzida (Ninŋišzida C)",
"A hymn to Kusu (Kusu A)"
],
"marker": {
"size": 10
},
"mode": "text",
"name": "Cluster 2",
"text": [
"Inana and Enki",
"Inana and Ebih",
"Inana and Šu-kale-tuda",
"Inana and Gudam",
"Inana and An",
"Inana's descent to the ",
"Inana and Bilulu: an ul",
"Gilgameš and the bull o",
"Enmerkar and the lord o",
"The victory of Utu-heŋa",
"A praise poem of Šulgi ",
"A song of Šulgi",
"A tigi to Nanaya for Iš",
"A šir-namursaŋa to Nins",
"A love song of Išme-Dag",
"A hymn to Inana for Išm",
"An adab to Inana for Ur",
"An adab to Inana for Rī",
"A praise poem of Anam (",
"A prayer to Inana for H",
"Samsu-iluna and Inana (",
"Letter from Ur-saga to ",
"Letter from Inanaka to ",
"A balbale to Inana (Ina",
"The exaltation of Inana",
"A hymn to Inana (Inana ",
"A hymn to Inana as Nine",
"A tigi to Inana (Inana ",
"A hymn to Inana",
"A balbale to Inana (Dum",
"A kunŋar to Inana (Dumu",
"A song of Inana and Dum",
"A balbale (?) to Inana ",
"A kunŋar to Inana (Dumu",
"A balbale to Inana",
"A hymn to Ninŋišzida (N",
"A hymn to Kusu (Kusu A)"
],
"textfont": {
"color": "#000000",
"family": "sans serif",
"size": 11
},
"type": "scatter",
"x": [
0.06407635721853479,
0.03637418379381947,
-0.14680432828521187,
-0.11483534595670546,
0.022327994381102844,
-0.13436921674449734,
-0.4512517332087615,
-0.05518539975410534,
0.010265216239102922,
-0.6356736228420707,
0.07073827239644943,
-0.30833971631033263,
0.40187776246683865,
0.1703471659444181,
0.4064605609502136,
0.2330010630374558,
0.4073516698491367,
0.5318406167363434,
0.2866010072355586,
0.6432817877444925,
-0.6028322034970597,
0.24919603754872083,
0.38578386162827577,
0.11701501348323905,
0.15615238066039716,
0.05557891825092531,
0.1543009157989004,
0.615579844438596,
-0.2171223577004406,
-0.04150720990976864,
-0.19552618468854277,
0.058644382060414876,
-0.0820100686029559,
-0.06230321473278059,
-0.08687656590921579,
0.02059329762153867,
0.3944148789616405
],
"y": [
-0.3409642890689887,
-0.11549215760061513,
-0.3384137512220297,
-0.7646286240224678,
-0.41741538376298626,
-0.2760885098132017,
-0.45660919490636076,
-0.3948968839263279,
-0.27192569782918785,
-0.11677317818181873,
0.05047406044410505,
0.6777937867876126,
0.6419900386912808,
-0.2265973090559133,
-0.5708677114215649,
-0.17076089809080694,
0.17296229670329835,
-0.27958641094708764,
-0.251921444596368,
-0.0053174289966275885,
-0.417466999920655,
-0.5070152547851411,
-0.4419017094540445,
0.6780475619066849,
0.007920645966609963,
-0.09300836339097465,
-0.2862509200322499,
0.02714889970629318,
0.44393547728808364,
0.7490402184319798,
-0.7531867157927584,
-0.5703745729973025,
-0.584057212672817,
-0.6549129170826832,
-0.6865328001726941,
0.7803175344879922,
-0.6090246384056597
]
},
{
"hovertext": [
"Enki and the world order",
"Enki's journey to Nibru",
"The building of Ninŋirsu's temple (Gudea cylinders A and B)",
"An adab to Bau for Luma (Luma A)",
"A tigi to Bau for Gudea (Gudea A)",
"A tigi to Enlil for Ur-Namma (Ur-Namma B)",
"A praise poem of Ur-Namma (Ur-Namma C)",
"A šir-namšub (?) to Nanna for Ur-Namma (Ur-Namma E)",
"A šir-namšub to Nanna for Ur-Namma (Ur-Namma F)",
"A praise poem of Ur-Namma (Ur-Namma I)",
"A praise poem of Šulgi (Šulgi A)",
"A praise poem of Šulgi (Šulgi C)",
"A praise poem of Šulgi (Šulgi D)",
"A praise poem of Šulgi (Šulgi E)",
"An adab to Enlil for Šulgi (Šulgi G)",
"A praise poem of Šulgi (Šulgi O)",
" A praise poem of Šulgi (Šulgi P)",
"An adab (?) to Utu for Šulgi (Šulgi Q)",
"Šulgi and Ninlil's barge: a tigi (?) to Ninlil (Šulgi R)",
"An adab (?) to Nergal for Šulgi (?) (Šulgi U)",
"A dedication of a statue (Šulgi V)",
"A praise poem of Šulgi (Šulgi Y)",
"A hymn for Šu-Suen",
"A šir-namgala to Mešlamta-ea and Lugal-era for Ibbi-Suen (Ibbi-Suen B)",
"A hymn to Ninisina for Išbi-Erra (Išbi-Erra D)",
"An adab to Nergal for Šu-ilīšu (Šu-ilīšu A)",
"A praise poem of Iddin-Dagan (Iddin-Dagan B)",
"A šir-namerima (?) for Iddin-Dagan (Iddin-Dagan D)",
"A praise poem of Išme-Dagan (Išme-Dagan A + V)",
"An adab to Bau for Išme-Dagan (Išme-Dagan B)",
"A hymn to Nibru and Išme-Dagan (Išme-Dagan C)",
"An adab (?) to Enki for Išme-Dagan (Išme-Dagan D)",
"A balbale to Enki for Išme-Dagan (Išme-Dagan E)",
"An adab to Enlil for Išme-Dagan (Išme-Dagan H)",
"Išme-Dagan and Enlil's chariot: a tigi to Enlil (Išme-Dagan I)",
"An adab to Nanna for Išme-Dagan (Išme-Dagan M)",
"An adab (?) to Nuska for Išme-Dagan (Išme-Dagan Q)",
"A dedication of a statue (Išme-Dagan S)",
"An adab to Dagan (?) for Išme-Dagan (Išme-Dagan U)",
"A hymn to Nibru and Išme-Dagan (Išme-Dagan W)",
"A hymn to Enki (?) for Išme-Dagan (Išme-Dagan X)",
"A praise poem of Išme-Dagan (Išme-Dagan AA)",
"A hymn to Ninurta for Išme-Dagan",
"A hymn to Enki for Išme-Dagan",
"A praise poem of Lipit-Eštar (Lipit-Eštar A)",
"A praise poem of Lipit-Eštar (Lipit-Eštar B)",
"An adab to An for Lipit-Eštar (Lipit-Eštar C)",
"An adab to Ninurta for Lipit-Eštar (Lipit-Eštar D)",
"A šir-namgala to Ninisina for Lipit-Eštar (Lipit-Eštar E)",
"A šir-namgala (?) to Inana for Ur-Ninurta (Ur-Ninurta A)",
"A tigi to Enki for Ur-Ninurta (Ur-Ninurta B)",
"An adab to Ninurta for Ur-Ninurta (Ur-Ninurta C)",
"An adab to An for Ur-Ninurta (Ur-Ninurta E)",
"An adab (?) to Iškur for Ur-Ninurta (Ur-Ninurta F)",
"An adab to Enlil for Būr-Suen (Būr-Suen B)",
"A praise poem of Enlil-bāni (Enlil-bāni A)",
"A praise poem of Sîn-iddinam (Sîn-iddinam A)",
"Sîn-iddinam and Iškur (Sîn-iddinam E)",
"A hymn to Numušda for Sîn-iqīšam (Sîn-iqīšam A)",
"A prayer to Enlil for Rīm-Sîn (Rīm-Sîn A)",
"A hymn to Haia for Rīm-Sîn (Rīm-Sîn B)",
"A prayer to An for Rīm-Sîn (Rīm-Sîn C)",
"A prayer to Nanna for Rīm-Sîn (Rīm-Sîn D)",
"A prayer to Nanna for Rīm-Sîn (Rīm-Sîn E)",
"A prayer to Nanna for Rīm-Sîn (Rīm-Sîn F)",
"A prayer to Nanna for Rīm-Sîn (Rīm-Sîn G)",
"A prayer to Enki for Hammu-rābi (Hammu-rābi B)",
"A prayer to Asarluhi for Hammu-rābi (Hammu-rābi D)",
"A prayer for Samsu-iluna (Samsu-iluna B)",
"A prayer for Samsu-iluna (Samsu-iluna C)",
"A prayer for Samsu-iluna (Samsu-iluna E)",
"A hymn to Enlil for Samsu-iluna (Samsu-iluna F)",
"A hymn to Marduk for Abī-Ešuh (Abī-Ešuh A)",
"Letter from the scribe Nanna-manšum to the goddess Ninisina",
"A hymn to Asarluhi (Asarluhi A)",
"A hymn to Bau's beneficent protective goddess (Bau A)",
"A šir-šag-hula to Damgalnuna (Damgalnuna A)",
"Enlil in the E-kur (Enlil A)",
"A šir-gida to Martu (Martu A)",
"A hymn to Martu (Martu B)",
"A hymn to Nanše (Nanše A)",
"A hymn to Nergal (Nergal B)",
"A tigi to Nergal (Nergal C)",
"A hymn to Nisaba (Nisaba A)",
"A balbale to Ninŋišzida (Ninŋišzida A)",
"A hymn to Ninimma (Ninimma A)",
"A šir-gida to Ninisina (Ninisina A)",
"A hymn to Ninisina (Ninisina D)",
"An adab to Ninisina (Ninisina E)",
"Ninisina and the gods (Ninisina F)",
"An adab to Ninlil (Ninlil A)",
"A šir-gida (?) to Ninšubur (Ninšubur A)",
"A hymn to Ninšubur (Ninšubur B)",
"A tigi to Nintur (Nintur A)",
"A balbale to Ninurta (Ninurta F)",
"A hymn to Nungal (Nungal A)",
"A šir-gida to Nuska (Nuska A)",
"A šir-gida to Nuska (Nuska B)",
"A hymn to Šul-pa-e (Šul-pa-e A)",
"A hymn to Sadarnuna (Sadarnuna A)",
"The temple hymns",
"A hymn to the E-kur",
"The debate between Date Palm and Tamarisk"
],
"marker": {
"size": 10
},
"mode": "text",
"name": "Cluster 3",
"text": [
"Enki and the world orde",
"Enki's journey to Nibru",
"The building of Ninŋirs",
"An adab to Bau for Luma",
"A tigi to Bau for Gudea",
"A tigi to Enlil for Ur-",
"A praise poem of Ur-Nam",
"A šir-namšub (?) to Nan",
"A šir-namšub to Nanna f",
"A praise poem of Ur-Nam",
"A praise poem of Šulgi ",
"A praise poem of Šulgi ",
"A praise poem of Šulgi ",
"A praise poem of Šulgi ",
"An adab to Enlil for Šu",
"A praise poem of Šulgi ",
" A praise poem of Šulgi",
"An adab (?) to Utu for ",
"Šulgi and Ninlil's barg",
"An adab (?) to Nergal f",
"A dedication of a statu",
"A praise poem of Šulgi ",
"A hymn for Šu-Suen",
"A šir-namgala to Mešlam",
"A hymn to Ninisina for ",
"An adab to Nergal for Š",
"A praise poem of Iddin-",
"A šir-namerima (?) for ",
"A praise poem of Išme-D",
"An adab to Bau for Išme",
"A hymn to Nibru and Išm",
"An adab (?) to Enki for",
"A balbale to Enki for I",
"An adab to Enlil for Iš",
"Išme-Dagan and Enlil's ",
"An adab to Nanna for Iš",
"An adab (?) to Nuska fo",
"A dedication of a statu",
"An adab to Dagan (?) fo",
"A hymn to Nibru and Išm",
"A hymn to Enki (?) for ",
"A praise poem of Išme-D",
"A hymn to Ninurta for I",
"A hymn to Enki for Išme",
"A praise poem of Lipit-",
"A praise poem of Lipit-",
"An adab to An for Lipit",
"An adab to Ninurta for ",
"A šir-namgala to Ninisi",
"A šir-namgala (?) to In",
"A tigi to Enki for Ur-N",
"An adab to Ninurta for ",
"An adab to An for Ur-Ni",
"An adab (?) to Iškur fo",
"An adab to Enlil for Bū",
"A praise poem of Enlil-",
"A praise poem of Sîn-id",
"Sîn-iddinam and Iškur (",
"A hymn to Numušda for S",
"A prayer to Enlil for R",
"A hymn to Haia for Rīm-",
"A prayer to An for Rīm-",
"A prayer to Nanna for R",
"A prayer to Nanna for R",
"A prayer to Nanna for R",
"A prayer to Nanna for R",
"A prayer to Enki for Ha",
"A prayer to Asarluhi fo",
"A prayer for Samsu-ilun",
"A prayer for Samsu-ilun",
"A prayer for Samsu-ilun",
"A hymn to Enlil for Sam",
"A hymn to Marduk for Ab",
"Letter from the scribe ",
"A hymn to Asarluhi (Asa",
"A hymn to Bau's benefic",
"A šir-šag-hula to Damga",
"Enlil in the E-kur (Enl",
"A šir-gida to Martu (Ma",
"A hymn to Martu (Martu ",
"A hymn to Nanše (Nanše ",
"A hymn to Nergal (Nerga",
"A tigi to Nergal (Nerga",
"A hymn to Nisaba (Nisab",
"A balbale to Ninŋišzida",
"A hymn to Ninimma (Nini",
"A šir-gida to Ninisina ",
"A hymn to Ninisina (Nin",
"An adab to Ninisina (Ni",
"Ninisina and the gods (",
"An adab to Ninlil (Ninl",
"A šir-gida (?) to Ninšu",
"A hymn to Ninšubur (Nin",
"A tigi to Nintur (Nintu",
"A balbale to Ninurta (N",
"A hymn to Nungal (Nunga",
"A šir-gida to Nuska (Nu",
"A šir-gida to Nuska (Nu",
"A hymn to Šul-pa-e (Šul",
"A hymn to Sadarnuna (Sa",
"The temple hymns",
"A hymn to the E-kur",
"The debate between Date"
],
"textfont": {
"color": "#3FB230",
"family": "sans serif",
"size": 11
},
"type": "scatter",
"x": [
0.12958339536367625,
0.2997334277245907,
0.10562736338189166,
0.6135111602694651,
0.2105789356888755,
0.24005422409942934,
0.01165992120654801,
0.09696637010464547,
0.3770328263912808,
-0.014821632705145641,
-0.06930320194252067,
-0.059907279945068455,
0.02319310805455466,
-0.04561891080077342,
0.18227212229087644,
0.05249442272986246,
0.1354817252982872,
0.14148885948458087,
0.12069679176918066,
-0.14221143386829804,
0.15464212158850094,
0.41883758046614816,
-0.10502053118155617,
0.6841653061089105,
0.6144194447827881,
-0.08630508984176545,
0.09140240352683367,
0.10408280227245931,
0.06915765728070698,
0.3587259039380194,
0.5116598713160654,
0.5026118325525303,
0.5604418053691537,
0.3951656441057882,
0.36433213600583203,
0.4190337879223661,
0.34548507702692544,
0.014869671050360748,
0.742613122087819,
0.341225975077993,
0.4282320143659028,
0.6411334488051581,
0.6605475267678493,
0.6478635875131944,
0.06780479809052056,
0.29717976148033043,
0.358242935104935,
0.09293162806503644,
0.2498392953578452,
0.26484201303044663,
0.2913342433380672,
0.16458452749286154,
0.3385342912980436,
0.6945778130616975,
0.2746560632048231,
0.21857996800882848,
0.40011438949253375,
0.28102326557884755,
0.45841725002677824,
-0.2569535861606459,
0.44148513696381103,
0.43286172682645374,
0.6976775807971398,
0.2043945787670113,
0.5614652212796362,
-0.08648801171877078,
0.5411045565056595,
0.2707668315992868,
-0.08139197225203806,
0.4995329067943679,
0.1887738967557871,
0.6891786018169207,
0.626621297592169,
0.5086683535271598,
0.5794082451135125,
0.30212887860616805,
0.4795711498078146,
0.15174621932268634,
0.18393453573510327,
-0.048523105534325574,
-0.16426592981037372,
-0.11988519010190757,
0.6225024370210486,
0.45372825364968844,
0.35771680838587583,
0.34464722467907133,
-0.059466148333687775,
0.22023740264773822,
0.6759365123277783,
0.5208602674337763,
0.5502972826071477,
0.5068571989484897,
-0.08799564418218617,
0.6904480133370987,
0.5573364043010485,
0.04152952478270704,
0.5401415665153123,
0.621787603212692,
0.32530289219734887,
0.7276518175535392,
0.326896839919851,
0.7660609029107568,
-0.2919235957999788
],
"y": [
-0.021776027694662848,
-0.22286512925436405,
-0.14151897472237993,
-0.36819711355594165,
0.6356179848875615,
0.5813617258951033,
0.18732557906208888,
0.6948131829347466,
0.5107964153436746,
0.5750170904977842,
0.2230323713972878,
0.15334596687508678,
0.15000111959077567,
0.11164679302768385,
0.2597794192714374,
0.2759171829882342,
0.21530645672228524,
0.4753083295102884,
0.16634755597472584,
0.6996201404930196,
0.6259434539195191,
-0.20903895744139434,
0.5631444344808822,
0.12391000223094027,
-0.3105301764670217,
0.7045242340192992,
0.5898311934114302,
0.4175391903181462,
0.08237280639239872,
0.021762503556071188,
0.24387377961755477,
-0.019582415247498174,
-0.03430156029210152,
0.11392051233314027,
-0.0709865132340857,
0.04974432930860986,
0.0490522431715562,
0.43009142890729435,
-0.003920535428682967,
0.12846503401374143,
0.10560008890749537,
0.13429779949141937,
-0.06156853214254641,
-0.10335802167586668,
0.3169639780096142,
0.42372284238413643,
0.30223898628598095,
0.4889097942538223,
0.6005081406668558,
0.21499868753774254,
0.07905301498781887,
0.4023235385485954,
0.24903075880421466,
-0.2811726510293371,
0.4537552814321599,
-0.07399661267154398,
-0.33271937898095105,
0.35579894354474606,
0.305991892002287,
0.5551133385478502,
-0.060266995636404586,
0.23938922416170064,
-0.24102137620560946,
-0.04731970129390654,
-0.2215877589966214,
0.48885773598646304,
0.5086801324148207,
0.508286990615802,
0.38248336996208954,
0.17789599343831405,
0.36720638724312915,
0.03449730906120485,
0.3411878562113235,
-0.37978435340043004,
-0.12383067086923989,
-0.3411418015534391,
-0.13260959516015972,
0.0752589070596454,
0.1495290918837812,
0.5011671798264002,
0.1677528812762716,
0.4662292924842433,
0.2143854819754199,
-0.329776842522915,
-0.18145581755616258,
0.6263376117920451,
0.30119643230768495,
0.48625718720526945,
-0.331206442372962,
-0.2492247024882439,
0.20651248181625487,
-0.45774275661666985,
0.7829651877443062,
-0.34115527609079904,
-0.42928299954834304,
0.016506854589241636,
0.14828469510441852,
0.2818487383841073,
-0.14269531904131713,
0.2219856216903805,
0.15625941891010023,
-0.17611779206934566,
0.5878788749020613
]
},
{
"hovertext": [
"Ur III catalogue from Nibru (N1)",
"How grain came to Sumer",
"The šumunda grass",
"Išbi-Erra and Kindattu (Išbi-Erra B)",
"Letter from Aradŋu to Šulgi about Apillaša",
"Letter from Šulgi to Aradŋu about Apillaša",
"Letter from Aradŋu to Šulgi about irrigation work",
"Letter from Aradŋu to Šulgi about the country",
"Letter from Aradŋu to Šulgi about Aba-indasa's missing troops",
"Letter from Aradŋu to Šulgi about the fortress Igi-hursaŋa",
"Letter from Šulgi to Aradŋu about Aba-indasa's letter",
"Letter from Puzur-Šulgi to Šulgi about the advance of the enemy",
"Letter from Šulgi to Puzur-Šulgi about the fortress Igi-hursaŋa",
"Letter from Aradŋu (?) to Šulgi about bandits and Apillaša",
"Letter from Ur-DUN to Šulgi about Apillaša",
"Letter from Šulgi to Išbi-Erra about the purchase of grain",
"Letter from Šarrum-bāni to Šu-Suen about keeping the Martu at bay",
"Letter from Šu-Suen to Šarrum-bāni about digging a trench",
"Letter from Išbi-Erra to Ibbi-Suen about the purchase of grain",
"Letter from Ibbi-Suen to Išbi-Erra about his bad conduct",
"Letter from Puzur-Šulgi to Ibbi-Suen about Išbi-Erra's claim on Isin",
"Letter from Ibbi-Suen to Puzur-Šulgi hoping for Išbi-Erra's downfall",
"Letter from Aba-indasa to Šulgi about his neglect",
"Letter from Iddin-Dagan to Sîn-illat about the troops",
"Letter from Nanna-ki-aŋ to Lipit-Eštar about Gungunum's troops",
"Letter from Lipit-Eštar to Nanna-ki-aŋ about driving away the enemy",
"Letter from Ur-Enlila to a governor and temple administrator",
"Letter from a governor and temple administrator to a king",
"Letter from Šamaš-ṭāb to Ilak-niʾid",
"Letter from Lugal-nesaŋe to Enlil-massu",
"Letter from Inim-Inana to Enlil-massu",
"A song of Inana and Dumuzid (Dumuzid-Inana W)",
"A balbale to Inana (Dumuzid-Inana E1)",
"The debate between Hoe and Plough",
"The farmer's instructions",
"The three ox-drivers from Adab",
"Proverbs: collection 18",
"Proverbs: collection 21"
],
"marker": {
"size": 10
},
"mode": "text",
"name": "Cluster 4",
"text": [
"Ur III catalogue from N",
"How grain came to Sumer",
"The šumunda grass",
"Išbi-Erra and Kindattu ",
"Letter from Aradŋu to Š",
"Letter from Šulgi to Ar",
"Letter from Aradŋu to Š",
"Letter from Aradŋu to Š",
"Letter from Aradŋu to Š",
"Letter from Aradŋu to Š",
"Letter from Šulgi to Ar",
"Letter from Puzur-Šulgi",
"Letter from Šulgi to Pu",
"Letter from Aradŋu (?) ",
"Letter from Ur-DUN to Š",
"Letter from Šulgi to Iš",
"Letter from Šarrum-bāni",
"Letter from Šu-Suen to ",
"Letter from Išbi-Erra t",
"Letter from Ibbi-Suen t",
"Letter from Puzur-Šulgi",
"Letter from Ibbi-Suen t",
"Letter from Aba-indasa ",
"Letter from Iddin-Dagan",
"Letter from Nanna-ki-aŋ",
"Letter from Lipit-Eštar",
"Letter from Ur-Enlila t",
"Letter from a governor ",
"Letter from Šamaš-ṭāb t",
"Letter from Lugal-nesaŋ",
"Letter from Inim-Inana ",
"A song of Inana and Dum",
"A balbale to Inana (Dum",
"The debate between Hoe ",
"The farmer's instructio",
"The three ox-drivers fr",
"Proverbs: collection 18",
"Proverbs: collection 21"
],
"textfont": {
"color": "#ff54f9",
"family": "sans serif",
"size": 11
},
"type": "scatter",
"x": [
0.015902400701565695,
-0.3728655768584096,
-0.42965663835849455,
-0.2662194087099171,
0.2361717554257345,
-0.44162036475951466,
-0.713016820116712,
-0.5169966607717217,
-0.7944505028957495,
-0.33421952925935633,
-0.7875045510027303,
-0.5005547261773884,
-0.4639581894779192,
-0.5549990011876471,
-0.6388116522014381,
-0.42471700951899494,
-0.5708673724728096,
-0.4924658382665201,
-0.3770383703964506,
-0.4578139326551386,
-0.5273132048274728,
0.31726760666337284,
-0.5143671142644332,
-0.4346545047644557,
-0.7799513882785317,
-0.7975140148204576,
-0.71031042190301,
-0.7333389002837604,
0.268928101929046,
0.725019392588921,
0.2645521400587071,
-0.722459327339425,
-0.690535302530576,
-0.5120082552537933,
-0.4299555303956666,
0.08497678972245598,
0.08500857508452253,
-0.5545007981214085
],
"y": [
-0.7934397451011374,
-0.45653957884190444,
0.5882050585160564,
0.6310033986578487,
-0.5649370499940699,
0.3327211151958023,
0.24992685720696822,
0.37686667337980373,
0.015953674026957045,
0.5641384241395415,
-0.003671168580071677,
0.5129017103233585,
0.4911927673236472,
0.2235067506328191,
0.4236821268918489,
0.36347782800076095,
0.4094227269990839,
0.4030532671623942,
0.402338756937738,
0.5483583896981592,
0.5126129367373947,
-0.5182265532931246,
0.11038616446480914,
0.6239310451488053,
0.22021650115609223,
-0.06206365683720238,
0.3400799913050297,
0.30096568239322335,
-0.7313530514045312,
-0.057830411168035924,
-0.6507620377115856,
-0.27898148148349466,
-0.37138061783574644,
0.008822463475027754,
0.481183398474672,
-0.6521740118405822,
-0.7263018585324879,
0.531205446382732
]
},
{
"hovertext": [
"A praise poem of Šulgi",
"An adab (?) to Suen for Šu-Suen (Šu-Suen F)",
"A tigi to Suen for Ibbi-Suen (Ibbi-Suen A)",
"An adab to Suen for Ibbi-Suen (Ibbi-Suen C)",
"An ululumama to Suen for Ibbi-Suen (Ibbi-Suen D)",
"A hymn to Suen for Ibbi-Suen (Ibbi-Suen E)",
"An adab to Ningublaga for Iddin-Dagan (Iddin-Dagan C)",
"An adab to Nanna for Gungunum (Gungunum A)",
"A hymn to Nanna for Gungunum (Gungunum B)",
"A praise poem of Hammu-rābi (Hammu-rābi C)",
"Letter from X to the god Nanna",
"A balbale to Suen (Nanna A)",
"A balbale to Nanna (Nanna C)",
"A balbale to Nanna (Nanna D)",
"A hymn to Nanna (Nanna E)",
"A hymn to Nanna (Nanna G)",
"An adab to Nanna (Nanna H)",
"A tigi to Suen (Nanna I)",
"An ululumama to Nanna (Nanna J)",
"A šir-namšub to Suen (Nanna K)",
"A šir-namgala to Nanna (Nanna L)",
"A hymn to Nanna (Nanna M)",
"A hymn to Nanna (Nanna N)",
"A hymn to Nanna (Nanna O)",
"A hymn to Nanna",
"An excerpt from a hymn to Nanna",
"A balbale to Ninazu (Ninazu A)"
],
"marker": {
"size": 10
},
"mode": "text",
"name": "Cluster 5",
"text": [
"A praise poem of Šulgi",
"An adab (?) to Suen for",
"A tigi to Suen for Ibbi",
"An adab to Suen for Ibb",
"An ululumama to Suen fo",
"A hymn to Suen for Ibbi",
"An adab to Ningublaga f",
"An adab to Nanna for Gu",
"A hymn to Nanna for Gun",
"A praise poem of Hammu-",
"Letter from X to the go",
"A balbale to Suen (Nann",
"A balbale to Nanna (Nan",
"A balbale to Nanna (Nan",
"A hymn to Nanna (Nanna ",
"A hymn to Nanna (Nanna ",
"An adab to Nanna (Nanna",
"A tigi to Suen (Nanna I",
"An ululumama to Nanna (",
"A šir-namšub to Suen (N",
"A šir-namgala to Nanna ",
"A hymn to Nanna (Nanna ",
"A hymn to Nanna (Nanna ",
"A hymn to Nanna (Nanna ",
"A hymn to Nanna",
"An excerpt from a hymn ",
"A balbale to Ninazu (Ni"
],
"textfont": {
"color": "#630AFF",
"family": "sans serif",
"size": 11
},
"type": "scatter",
"x": [
-0.1940567358044674,
-0.5835831246920014,
0.6527501401238315,
0.5603182945288904,
0.470084836495778,
0.5864707871786559,
0.23784360534993162,
0.42155781695093003,
0.22029345031320785,
0.5519034517533816,
0.5816486977578926,
0.3905167576167837,
0.6710793385408665,
0.4972239202415965,
0.5425405017692341,
0.7420521880969919,
0.5990135364391791,
0.714321506855466,
0.5195052877404672,
0.07656592217415771,
0.35865356608316684,
0.7567863752372922,
0.19417542604040242,
0.20150902254412098,
0.6592830797739268,
0.5719968565769572,
0.3274900364485316
],
"y": [
0.6116560056769869,
0.35936939206991103,
0.297225997486262,
0.3726855316503797,
0.3355704650116339,
0.35123585717225,
0.6745786494207348,
0.3791066840348936,
0.7334299976215926,
0.47084031314770597,
0.013203650810947608,
-0.27343250937765995,
0.1856116786012369,
-0.4906070433724759,
0.04503636802159198,
0.11779937020152759,
0.24615280462001304,
-0.1756376343052891,
0.4197831582347967,
-0.6622142320316892,
0.32738840077611275,
0.06396050156620176,
0.7004615794409064,
-0.48870060353876293,
-0.19237928811485105,
0.4632511412316165,
0.6638386544787884
]
},
{
"hovertext": [
"OB catalogue possibly from Zimbir (B1)",
"OB catalogue from Nibru (N4)",
"Enki and Ninhursaŋa",
"Enki and Ninmah",
"Enlil and Ninlil",
"Enlil and Sud",
"Dumuzid and Ŋeštin-ana",
"Dumuzid's dream",
"Nanna-Suen's journey to Nibru",
"The marriage of Martu",
"Ninŋišzida's journey to the nether world",
"The Flood story",
"Pabilsaŋ's journey to Nibru",
"Gilgameš and Aga",
"The death of Gilgameš",
"Gilgameš Enkidu and the nether world",
"Gilgameš and Huwawa (Version A)",
"Gilgameš and Huwawa (Version B)",
"Lugalbanda in the mountain cave",
"Lugalbanda and the Anzud bird",
"Enmerkar and En-suhgir-ana",
"The Sumerian king list",
"The rulers of Lagaš",
"The history of the Tummal",
"Sargon and Ur-Zababa",
"The cursing of Agade",
"The lament for Urim",
"The lament for Sumer and Urim",
"The lament for Nibru",
"The lament for Unug",
"The lament for Eridug",
"The death of Ur-Namma (Ur-Namma A)",
"Ur-Namma the canal-digger (Ur-Namma D)",
"A praise poem of Šulgi (Šulgi B)",
"Amar-Suena and Enki's temple (Amar-Suena A)",
"A hymn to Inana for Išme-Dagan",
"A praise poem of Hammu-rābi (Hammu-rābi A)",
"A praise poem of Abī-Ešuh (Abī-Ešuh B)",
"A hymn to Marduk for a king",
"Letter from Sîn-iddinam to the god Utu",
"Letter from Lugal-nesaŋe to a king radiant as the moon",
"Letter from Lugal-nesaŋe to a king radiant as the sun",
"Letter from Kug-Nanna to the god Ninšubur",
"A hymn to Hendursaŋa (Hendursaŋa A)",
"A balbale to Inana (Dumuzid-Inana O)",
"The herds of Nanna (Nanna F)",
"A balbale to Nanše (Nanše B)",
"Nanše and the birds (Nanše C)",
"A šir-namšub to Nisaba (Nisaba B)",
"A balbale to Ninŋišzida (Ninŋišzida B)",
"A hymn to Ninkasi (Ninkasi A)",
"A hymn to Utu (Utu B)",
"A šir-namšub to Utu (Utu E)",
"A šir-namšub to Utu (Utu F)",
"The advice of a supervisor to a younger scribe (E-dub-ba-a C)",
"A man and his god",
"The poem of early rulers",
"The debate between Grain and Sheep",
"The debate between Winter and Summer",
"The debate between Bird and Fish",
"The debate between Copper and Silver",
"A diatribe against Engar-dug (Diatribe B)",
"He is a good seed of a dog (Diatribe C)",
"The message of Lu-diŋira to his mother",
"An elegy on the death of Nannaya",
"An elegy on the death of Nawirtum",
"A drinking song",
"The instructions of Šuruppag",
"Enlil and Nam-zid-tara",
"A dog for Nintinuga",
"The home of the fish",
"The heron and the turtle",
"Proverbs: collection 1",
"Proverbs: collection 2 + 6",
"Proverbs: collection 3",
"Proverbs: collection 4",
"Proverbs: collection 5",
"Proverbs: collection 7",
"Proverbs: collection 8",
"Proverbs: collection 9",
"Proverbs: collection 10",
"Proverbs: collection 11",
"Proverbs: collection 12",
"Proverbs: collection 13",
"Proverbs: collection 14",
"Proverbs: collection 15",
"Proverbs: collection 16",
"Proverbs: collection 17",
"Proverbs: collection 19",
"Proverbs: collection 22",
"Proverbs: collection 23",
"Proverbs: collection 24",
"Proverbs: collection 25",
"Proverbs: collection 26",
"Proverbs: collection 27",
"Proverbs: collection 28",
"Proverbs: from Nibru",
"c.6.2.2",
"c.6.2.3",
"c.6.2.5"
],
"marker": {
"size": 10
},
"mode": "text",
"name": "Cluster 6",
"text": [
"OB catalogue possibly f",
"OB catalogue from Nibru",
"Enki and Ninhursaŋa",
"Enki and Ninmah",
"Enlil and Ninlil",
"Enlil and Sud",
"Dumuzid and Ŋeštin-ana",
"Dumuzid's dream",
"Nanna-Suen's journey to",
"The marriage of Martu",
"Ninŋišzida's journey to",
"The Flood story",
"Pabilsaŋ's journey to N",
"Gilgameš and Aga",
"The death of Gilgameš",
"Gilgameš Enkidu and the",
"Gilgameš and Huwawa (Ve",
"Gilgameš and Huwawa (Ve",
"Lugalbanda in the mount",
"Lugalbanda and the Anzu",
"Enmerkar and En-suhgir-",
"The Sumerian king list",
"The rulers of Lagaš",
"The history of the Tumm",
"Sargon and Ur-Zababa",
"The cursing of Agade",
"The lament for Urim",
"The lament for Sumer an",
"The lament for Nibru",
"The lament for Unug",
"The lament for Eridug",
"The death of Ur-Namma (",
"Ur-Namma the canal-digg",
"A praise poem of Šulgi ",
"Amar-Suena and Enki's t",
"A hymn to Inana for Išm",
"A praise poem of Hammu-",
"A praise poem of Abī-Eš",
"A hymn to Marduk for a ",
"Letter from Sîn-iddinam",
"Letter from Lugal-nesaŋ",
"Letter from Lugal-nesaŋ",
"Letter from Kug-Nanna t",
"A hymn to Hendursaŋa (H",
"A balbale to Inana (Dum",
"The herds of Nanna (Nan",
"A balbale to Nanše (Nan",
"Nanše and the birds (Na",
"A šir-namšub to Nisaba ",
"A balbale to Ninŋišzida",
"A hymn to Ninkasi (Nink",
"A hymn to Utu (Utu B)",
"A šir-namšub to Utu (Ut",
"A šir-namšub to Utu (Ut",
"The advice of a supervi",
"A man and his god",
"The poem of early ruler",
"The debate between Grai",
"The debate between Wint",
"The debate between Bird",
"The debate between Copp",
"A diatribe against Enga",
"He is a good seed of a ",
"The message of Lu-diŋir",
"An elegy on the death o",
"An elegy on the death o",
"A drinking song",
"The instructions of Šur",
"Enlil and Nam-zid-tara",
"A dog for Nintinuga",
"The home of the fish",
"The heron and the turtl",
"Proverbs: collection 1",
"Proverbs: collection 2 ",
"Proverbs: collection 3",
"Proverbs: collection 4",
"Proverbs: collection 5",
"Proverbs: collection 7",
"Proverbs: collection 8",
"Proverbs: collection 9",
"Proverbs: collection 10",
"Proverbs: collection 11",
"Proverbs: collection 12",
"Proverbs: collection 13",
"Proverbs: collection 14",
"Proverbs: collection 15",
"Proverbs: collection 16",
"Proverbs: collection 17",
"Proverbs: collection 19",
"Proverbs: collection 22",
"Proverbs: collection 23",
"Proverbs: collection 24",
"Proverbs: collection 25",
"Proverbs: collection 26",
"Proverbs: collection 27",
"Proverbs: collection 28",
"Proverbs: from Nibru",
"???",
"???",
"???"
],
"textfont": {
"color": "#F5770D",
"family": "sans serif",
"size": 11
},
"type": "scatter",
"x": [
0.35087112341008225,
0.3674765259521481,
-0.2197346230951906,
0.1648413815270772,
-0.26703946395054423,
0.0020254393236203696,
-0.4228858937199002,
-0.35247011328118333,
0.15626039641685696,
-0.6404880688281851,
0.1970260444747914,
-0.2665665632205835,
-0.16013454889116777,
0.41711267850548733,
-0.37877385480565773,
-0.4012246038940254,
-0.2894990303883711,
-0.34023625116028267,
-0.12213217299172559,
-0.200242422418015,
-0.10900369341617036,
0.18623106182151464,
-0.6462674087251046,
-0.2858827003331955,
0.4305425909797988,
-0.1549821811479796,
-0.6081323703518317,
-0.13121986139629832,
-0.044550220196683116,
-0.10433445498561504,
-0.17023622346026457,
-0.20966559174902138,
0.70894600427732,
-0.10495665770809041,
0.5654835554643558,
-0.02611354221367661,
0.6330832684539985,
-0.4977346362931365,
-0.5459385776071287,
-0.22867860465470197,
-0.49390118201694677,
-0.5917328405438637,
0.320309476104016,
-0.4471137939965872,
-0.046619910863099724,
-0.7759323448958978,
0.7886489227542003,
-0.6397123786829524,
0.19785265149436893,
-0.7095571607187708,
0.5711492351552433,
-0.35495333796924033,
-0.4441649013005895,
-0.28405850556099466,
-0.1190344327999113,
-0.19569069148886942,
-0.737434543697521,
-0.06314755619554888,
-0.49511664150200124,
-0.2601357281753707,
-0.36492646970073855,
-0.7046059867546246,
-0.6560686689711042,
0.0985982863527404,
-0.29351105973472413,
-0.4229747993938711,
-0.589765291340232,
-0.33740053466120046,
-0.6259741833069229,
-0.6413869330302899,
0.4525139409597137,
0.30563921643995307,
-0.27737517182721977,
-0.40765861638766543,
-0.2517009506538284,
-0.5382315058310108,
-0.5919257721369545,
-0.3804748366918266,
-0.7028568895518172,
-0.5584539468641925,
-0.714004004550025,
-0.4385144110113524,
-0.609778840771783,
-0.19889391518156474,
-0.5856898370616609,
-0.4639350645399816,
-0.5621494817587988,
-0.6236626476379095,
-0.5237101237420485,
-0.32257183404464673,
-0.09149162351359352,
-0.7311969501404278,
0.10017123954570246,
-0.4685905179820607,
0.01785885791102059,
-0.24587203840241786,
-0.35409805927721083,
-0.42315256378942623,
-0.2576087585905224,
-0.2892894750879831
],
"y": [
-0.7100211059637878,
-0.5862885381082237,
-0.3413448617663482,
-0.38069596949092666,
-0.42499586603531614,
-0.17056457593115165,
-0.3881049566532996,
-0.34482464556839504,
-0.6014615802002294,
0.1413273492963006,
-0.68582823579937,
0.3934080369925312,
-0.5868707772316124,
-0.5336528542252331,
0.116417678719488,
-0.2522486528848544,
0.07367920494444682,
0.16965911994543892,
-0.11398762829573296,
-0.21753929210545886,
-0.30828073060302236,
-0.7714655020871712,
0.32364407724803834,
0.7607636388994746,
-0.6241558262854112,
-0.04325657277375114,
-0.07402735268639282,
0.040140760969238846,
-0.07393082867272764,
0.0271368657362688,
0.095413370058814,
0.26287562535216824,
-0.1261904092428359,
0.07067764042882912,
-0.49433895943104217,
0.6993859298663012,
0.4016219639315934,
0.4542531345866702,
-0.34035990238132885,
0.3388587596484444,
0.0502244097720455,
0.44686514330923355,
-0.4096349396296672,
-0.015101162217389703,
-0.5662855462872541,
0.07946731250544571,
0.20842443334421165,
-0.2472594811935919,
-0.7408074344542498,
-0.14800955155713263,
-0.5378103943645808,
0.5198238966326738,
-0.4918680495695148,
-0.5814265253323541,
-0.15276664101601725,
-0.043022882137051646,
0.11619180420027439,
-0.31508343599655386,
-0.15479302848422516,
0.14665925697859,
-0.047183949526722495,
0.14445794801134254,
0.10061062218658319,
-0.4050397635169111,
0.20545320436060502,
0.09029988051920783,
-0.4743402375959486,
-0.0033997415323952377,
-0.2975047073968082,
0.3750748279388818,
0.5795036795872526,
-0.5587192149448124,
-0.19707226253534188,
-0.1590412513695185,
-0.12988736748850954,
-0.09644348354169038,
-0.15156508287760856,
-0.27368055395759944,
-0.07590616116654361,
-0.21155658758086168,
0.0196256215865954,
-0.1930372808137422,
-0.04074469211470314,
-0.45978960808449093,
0.0605892618531718,
0.14743921780555555,
0.01795848028890841,
0.1769177320854017,
-0.266461784597215,
-0.1377906759029439,
-0.47083343500762287,
-0.20068236605477618,
-0.5293798860241957,
-0.0957695844414496,
-0.7170941180753465,
-0.3751259079059003,
-0.19456518261828962,
0.20151339600775048,
-0.07578718492992474,
-0.05336598723204341
]
}
],
"layout": {
"height": 1050,
"hovermode": "closest",
"legend": {
"font": {
"size": 12
}
},
"showlegend": true,
"title": "MDS of corpus",
"width": 1200,
"xaxis": {
"gridwidth": 2,
"ticklen": 5,
"title": "x",
"zeroline": false
},
"yaxis": {
"gridwidth": 2,
"ticklen": 5,
"title": "y"
}
}
},
"text/html": [
""
],
"text/vnd.plotly.v1+html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"\n",
"\n",
"data = [ dict(x=df['x'], y=df['y'], name='Cluster ' + str(name), mode='text', text = df['title'], hovertext = df['fulltitle'], marker = dict(size=10), \n",
" textfont=dict(\n",
" family='sans serif',\n",
" size=11,\n",
" color=dict_color_cluster[name]\n",
" ))\n",
" for name, df in plotdata.groupby('cluster')]\n",
"layout= go.Layout(\n",
" title= 'MDS of corpus',\n",
" hovermode= 'closest',\n",
" legend = dict(font = dict(size = 12)),\n",
" width = 1200,\n",
" height = 1050,\n",
" xaxis= dict(\n",
" title= 'x',\n",
" ticklen= 5,\n",
" zeroline= False,\n",
" gridwidth= 2,\n",
" ),\n",
" yaxis=dict(\n",
" title= 'y',\n",
" ticklen= 5,\n",
" gridwidth= 2,\n",
" ),\n",
" showlegend= True\n",
")\n",
"fig= go.Figure(data=data, layout=layout)\n",
"py.iplot(fig)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"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.6.0"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
"autocomplete": true,
"bibliofile": "biblio.bib",
"cite_by": "apalike",
"current_citInitial": 1,
"eqLabelWithNumbers": true,
"eqNumInitial": 1,
"hotkeys": {
"equation": "Ctrl-E",
"itemize": "Ctrl-I"
},
"labels_anchors": false,
"latex_user_defs": false,
"report_style_numbering": false,
"user_envs_cfg": false
},
"toc": {
"colors": {
"hover_highlight": "#DAA520",
"navigate_num": "#000000",
"navigate_text": "#333333",
"running_highlight": "#FF0000",
"selected_highlight": "#FFD700",
"sidebar_border": "#EEEEEE",
"wrapper_background": "#FFFFFF"
},
"moveMenuLeft": true,
"nav_menu": {
"height": "12px",
"width": "252px"
},
"navigate_menu": true,
"number_sections": true,
"sideBar": true,
"threshold": 4,
"toc_cell": false,
"toc_section_display": "block",
"toc_window_display": false,
"widenNotebook": false
},
"varInspector": {
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"delete_cmd_postfix": "",
"delete_cmd_prefix": "del ",
"library": "var_list.py",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"delete_cmd_postfix": ") ",
"delete_cmd_prefix": "rm(",
"library": "var_list.r",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
],
"window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 2
}