Skip to content

Commit

Permalink
Updates html structure of result table in poincare eval notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantj committed Dec 12, 2017
1 parent 7414eec commit fb217c5
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions docs/notebooks/Poincare Evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,12 @@
" result_html = result_table.get_html_string()\n",
" search = \"<table>\"\n",
" insert_at = result_html.index(search) + len(search)\n",
" new_row = \"\"\"<tr><th colspan=\"1\">%s</th><th colspan=\"4\"> Dimensions</th><th colspan=\"3\"></th></tr>\"\"\" % task_name\n",
" new_row = \"\"\"\n",
" <tr>\n",
" <th colspan=\"1\" style=\"text-align:right\">%s</th>\n",
" <th colspan=\"1\"></th>\n",
" <th colspan=\"%d\" style=\"text-align:center\"> Dimensions</th>\n",
" </tr>\"\"\" % (task_name, len(model_sizes))\n",
" result_html = result_html[:insert_at] + new_row + result_html[insert_at:]\n",
" display(HTML(result_html))\n",
" \n",
Expand Down Expand Up @@ -909,7 +914,12 @@
{
"data": {
"text/html": [
"<table><tr><th colspan=\"1\">WordNet Reconstruction</th><th colspan=\"4\"> Dimensions</th><th colspan=\"3\"></th></tr>\n",
"<table>\n",
" <tr>\n",
" <th colspan=\"1\" style=\"text-align:right\">WordNet Reconstruction</th><th \n",
" <th colspan=\"1\"></th>\n",
" <th colspan=\"6\" style=\"text-align:center\"> Dimensions</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Model Description</th>\n",
" <th>Metric</th>\n",
Expand Down Expand Up @@ -1311,7 +1321,12 @@
{
"data": {
"text/html": [
"<table><tr><th colspan=\"1\">WordNet Link Prediction</th><th colspan=\"4\"> Dimensions</th><th colspan=\"3\"></th></tr>\n",
"<table>\n",
" <tr>\n",
" <th colspan=\"1\" style=\"text-align:right\">WordNet Link Prediction</th>\n",
" <th colspan=\"1\"></th>\n",
" <th colspan=\"6\" style=\"text-align:center\"> Dimensions</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Model Description</th>\n",
" <th>Metric</th>\n",
Expand Down Expand Up @@ -1514,7 +1529,12 @@
{
"data": {
"text/html": [
"<table><tr><th colspan=\"1\">Lexical Entailment (HyperLex)</th><th colspan=\"4\"> Dimensions</th><th colspan=\"3\"></th></tr>\n",
"<table>\n",
" <tr>\n",
" <th colspan=\"1\" style=\"text-align:right\">Lexical Entailment (HyperLex)</th>\n",
" <th colspan=\"1\"></th>\n",
" <th colspan=\"6\" style=\"text-align:center\"> Dimensions</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Model Description</th>\n",
" <th>Metric</th>\n",
Expand Down

0 comments on commit fb217c5

Please sign in to comment.