Skip to content

Commit

Permalink
work on duplicate ilis
Browse files Browse the repository at this point in the history
  • Loading branch information
hdaSprachtechnologie committed Feb 1, 2021
1 parent 4711d3a commit 79c563c
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 165 deletions.
52 changes: 38 additions & 14 deletions Arbeiten_mit_OdeNet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,54 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 46,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['world', 'reality']\n",
"i67411\n",
"all of your experiences that determine how things appear to you\n",
"['realism', 'reality', 'realness']\n",
"i110273\n",
"the state of being actual or real\n",
"['reality']\n",
"i110275\n",
"the state of the world as it really is rather than as you might want it to be\n",
"['reality']\n",
"i62043\n",
"the quality possessed by something that is real\n"
"['bond', 'chemical bond']\n",
"i97685\n",
"an electrical force linking atoms\n",
"['bond', 'bond certificate']\n",
"i107251\n",
"a certificate of debt (usually interest-bearing or discounted) that is issued by a government or corporation in order to raise money; the issuer is required to pay a fixed sum annually until maturity and then a fixed sum to repay the principal\n",
"['alliance', 'bond']\n",
"i109385\n",
"a connection based on kinship or marriage or common interest\n",
"['bond', 'bail', 'bail bond']\n",
"i106864\n",
"(criminal law) money that must be forfeited by the bondsman if an accused person fails to appear in court for trial\n",
"['trammel', 'hamper', 'shackle', 'bond']\n",
"i58722\n",
"a restraint that confines or restricts freedom (especially something used to tie down or restrain a prisoner)\n",
"['attachment', 'bond']\n",
"i50246\n",
"a connection that fastens things together\n",
"['bond', 'bond paper']\n",
"i114704\n",
"a superior quality of strong durable white writing paper; originally made for printing documents\n",
"['adhesion', 'adherence', 'bond', 'adhesiveness']\n",
"i62916\n",
"the property of sticking together (as of glue and wood) or the joining of surfaces of different composition\n",
"['bind', 'adhere', 'stick to', 'stick', 'hold fast', 'bond']\n",
"i28479\n",
"stick to firmly\n",
"['bind', 'tie', 'attach', 'bond']\n",
"i34392\n",
"create social or emotional ties\n",
"['bond']\n",
"i33501\n",
"issue bonds on\n",
"['bond', 'draw together']\n",
"i29788\n",
"bring together in a common cause or emotion\n"
]
}
],
"source": [
"OdeNet.check_ili_in_pwn(\"reality\", r\"C:\\Users\\melaniesiegel\\Documents\\05_Projekte\\WordNet\\English_WN\\english-wordnet-2020.xml\")"
"OdeNet.check_ili_in_pwn(\"bond\", r\"C:\\Users\\melaniesiegel\\Documents\\05_Projekte\\WordNet\\English_WN\\english-wordnet-2020.xml\")"
]
},
{
Expand Down
14 changes: 7 additions & 7 deletions OdeNetAccess.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,23 @@
},
{
"cell_type": "code",
"execution_count": 130,
"execution_count": 29,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"('', [], [], [('hypernym', 'odenet-3668-n')], ['MS Projects', 'Microsoft Projects'])\n",
"('i67899', [], 'neuartiger, temporärer Prozess zur Erreichung eines vorgegebenen Endzustandes\">', [('hypernym', 'odenet-5502-n'), ('hyponym', 'odenet-2371-n'), ('hyponym', 'odenet-16157-n'), ('hyponym', 'odenet-16573-n'), ('hyponym', 'odenet-17262-n'), ('hyponym', 'odenet-26434-n'), ('hyponym', 'odenet-28580-n'), ('hyponym', 'odenet-33621-n'), ('hyponym', 'odenet-3979-n'), ('hyponym', 'odenet-6385-n')], ['Unterfangen', 'Ansinnen', 'Unternehmung', 'Vorhaben', 'Unternehmen', 'Projekt', 'Streben'])\n"
"('i112780', [], 'der Zustand, dass ein Mensch emotional eine enge Beziehung zu einem anderen Menschen oder zu einer Sache hat', [], ['Bindung', 'Bündnis', 'Anbindung', 'Verbindung', 'Brücke'])\n",
"('i112780', [], 'Zustand, verbunden zu sein', [('hyponym', 'odenet-31786-n')], ['Verbindung', 'Verpflichtung', 'Zusammenhang', 'Verkettung', 'Vernetzung'])\n"
]
}
],
"source": [
"print(check_synset(\"odenet-362436-n\"))\n",
"print(check_synset(\"odenet-3668-n\"))\n",
"#print(check_synset(\"odenet-10289-n\"))\n",
"#print(check_synset(\"odenet-10297-v\"))\n",
"print(check_synset(\"odenet-313-n\"))\n",
"print(check_synset(\"odenet-6987-n\"))\n",
"#print(check_synset(\"odenet-4151-n\"))\n",
"#print(check_synset(\"odenet-10103-n\"))\n",
"#print(check_synset(\"odenet-10535-v\"))\n"
]
},
Expand Down
Loading

0 comments on commit 79c563c

Please sign in to comment.