Skip to content

Commit

Permalink
New entries concerning Information Science
Browse files Browse the repository at this point in the history
  • Loading branch information
hdaSprachtechnologie committed Jan 28, 2021
1 parent 531c01b commit 5dd77f3
Show file tree
Hide file tree
Showing 4 changed files with 1,543 additions and 161 deletions.
24 changes: 12 additions & 12 deletions Arbeiten_mit_OdeNet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 80,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<Synset id=\"odenet-12436-n\" ili=\"i41311\" partOfSpeech=\"n\" dc:description=\"the act of accomplishing some aim or executing some order\"><Definition>Die Aktivität, Programm-Code zu schreiben.</Definition><SynsetRelation target='odenet-10618-n' relType='hypernym'/></Synset>\n",
"<Synset id=\"odenet-362361-n\" ili=\"\" partOfSpeech=\"n\"><Definition>Software zur automatischen Suche nach Information im Internet.</Definition><SynsetRelation target='odenet-362356-n' relType='hyponym'/></Synset>\n",
"\n"
]
}
],
"source": [
"# Definitionen einfügen'odenet-35395-a','Etwas, das nicht getan werden kann',r\"C:\\Users\\melaniesiegel\\Documents\\05_Projekte\\WordNet\\OdeNet\\deWNaccess\\odenet_oneline.xml\")\n",
"add_definition_to_ss('odenet-12436-n','Die Aktivität, Programm-Code zu schreiben.',\"odenet_oneline.xml\")"
"add_definition_to_ss('odenet-362361-n','Software zur automatischen Suche nach Information im Internet.',\"odenet_oneline.xml\")"
]
},
{
Expand Down Expand Up @@ -175,16 +175,16 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 81,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<Synset id=\"odenet-10459-n\" ili=\"i36244\" partOfSpeech=\"n\" dc:description=\"exerting shrewd or devious influence especially for one's own advantage\"><SynsetRelation target='odenet-10854-n' relType='hypernym'/></Synset>\n",
"<Synset id=\"odenet-362361-n\" ili=\"\" partOfSpeech=\"n\"><Definition>Software zur automatischen Suche nach Information im Internet.</Definition><SynsetRelation target='odenet-362356-n' relType='hyponym'/><SynsetRelation target='odenet-12037-n' relType='hypernym'/></Synset>\n",
"\n",
"<Synset id=\"odenet-10854-n\" ili=\"i37602\" partOfSpeech=\"n\" dc:description=\"the practice of treating badly\"><SynsetRelation target='odenet-13541-n' relType='hyponym'/><SynsetRelation target='odenet-10459-n' relType='hyponym'/></Synset>\n",
"<Synset id=\"odenet-12037-n\" ili=\"i70976\" partOfSpeech=\"n\" confidenceScore=\"1.0\"><Definition>Folge von Anweisungen für einen Computer</Definition><SynsetRelation target='odenet-1986-n' relType='hypernym'/><SynsetRelation target='odenet-5980-n' relType='hypernym'/><SynsetRelation target='odenet-13222-n' relType='hyponym'/><SynsetRelation target='odenet-13226-n' relType='hyponym'/><SynsetRelation target='odenet-13404-n' relType='hyponym'/><SynsetRelation target='odenet-17297-n' relType='hyponym'/><SynsetRelation target='odenet-29095-n' relType='hyponym'/><SynsetRelation target='odenet-31169-n' relType='hyponym'/><SynsetRelation target='odenet-4265-n' relType='hyponym'/><SynsetRelation target='odenet-362352-n' relType='hyponym'/><SynsetRelation target='odenet-362361-n' relType='hyponym'/><Example>Sie entwickelt ein neues Computerprogramm.</Example></Synset>\n",
"\n"
]
}
Expand All @@ -193,21 +193,21 @@
"# Hyperonym-Relation zum Synset hinzufügen\n",
"# add_hypernym_rel_to_ss(hyponym, hyperonym, wordnet)\n",
"\n",
"add_hypernym_rel_to_ss(\"odenet-10459-n\",\"odenet-10854-n\",\"odenet_oneline.xml\")"
"add_hypernym_rel_to_ss(\"odenet-362361-n\",\"odenet-12037-n\",\"odenet_oneline.xml\")"
]
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 72,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<Synset id=\"odenet-12355-n\" ili=\"i75790\" partOfSpeech=\"n\" ><Definition>Geografisch weit verbreitete Epidemie, die in einer ganzen Region oder sogar in der ganzen Welt auftritt.</Definition><SynsetRelation target='odenet-335-n' relType='hypernym'/><SynsetRelation target='odenet-362313-n' relType='mero_member'/><Example>Die Pandemie führte 2020 zum weltweiten Lockdown.</Example></Synset>\n",
"<Synset id=\"odenet-12355-n\" ili=\"i75790\" partOfSpeech=\"n\" ><Definition>Geografisch weit verbreitete Epidemie, die in einer ganzen Region oder sogar in der ganzen Welt auftritt.</Definition><SynsetRelation target='odenet-335-n' relType='hypernym'/><SynsetRelation target='odenet-362313-n' relType='mero_member'/><SynsetRelation target='odenet-12436-n' relType='mero_member'/><Example>Die Pandemie führte 2020 zum weltweiten Lockdown.</Example></Synset>\n",
"\n",
"<Synset id=\"odenet-362313-n\" ili=\"i41411\" partOfSpeech=\"n\"><Definition>Unterbindung von Kontakten zwischen Menschen, z.B. um einer Pandemie zu begegnen.</Definition><SynsetRelation target='odenet-13085-n' relType='hypernym'/><SynsetRelation target='odenet-12355-n' relType='holo_member'/><Example>Die Entwicklung der Pandemie machte einen Lockdown notwendig.</Example></Synset>\n",
"<Synset id=\"odenet-12436-n\" ili=\"i38650\" partOfSpeech=\"n\" ><Definition>Die Aktivität, Programm-Code zu schreiben.</Definition><SynsetRelation target='odenet-10618-n' relType='hypernym'/><SynsetRelation target='odenet-12355-n' relType='holo_member'/></Synset>\n",
"\n"
]
}
Expand All @@ -218,7 +218,7 @@
"# add_mero_member_rel_to_ss(Holonym,Meronym,Wordnet)\n",
"# z.B. add_mero_member_rel_to_ss(Hand-Synset, Finger-Synset,'odenet_oneline.xml')\n",
"\n",
"add_mero_member_rel_to_ss('odenet-12355-n','odenet-362313-n','odenet_oneline.xml')"
"add_mero_member_rel_to_ss('odenet-12355-n','odenet-12436-n','odenet_oneline.xml')"
]
},
{
Expand Down Expand Up @@ -330,7 +330,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 82,
"metadata": {},
"outputs": [],
"source": [
Expand Down
43 changes: 20 additions & 23 deletions OdeNetAccess.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 126,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Foto n \n",
"SENSE: odenet-4634-n ('i54514', [], 'Mit einem Fotoapparat gemachte Abbildung.', [('hyponym', 'odenet-1152-n'), ('hyponym', 'odenet-13061-n'), ('hyponym', 'odenet-14916-n'), ('hyponym', 'odenet-19191-n'), ('hyponym', 'odenet-2703-n'), ('hyponym', 'odenet-35490-n'), ('hyponym', 'odenet-1445-n'), ('hyponym', 'odenet-10719-n'), ('hyponym', 'odenet-30144-n'), ('hypernym', 'odenet-10049-n')], ['Bild', 'Abzug', 'Bildnis', 'Vergrößerung', 'Abbildung', 'Aufnahme', 'Bildwerk', 'Positiv', 'Ablichtung', 'Ausbelichtung', 'Fotografie', 'Lichtbild', 'Foto', 'Photo'])\n",
"Software n \n",
"SENSE: odenet-12037-n ('i70976', [], 'Folge von Anweisungen für einen Computer', [('hypernym', 'odenet-1986-n'), ('hypernym', 'odenet-5980-n'), ('hyponym', 'odenet-13222-n'), ('hyponym', 'odenet-13226-n'), ('hyponym', 'odenet-13404-n'), ('hyponym', 'odenet-17297-n'), ('hyponym', 'odenet-29095-n'), ('hyponym', 'odenet-31169-n'), ('hyponym', 'odenet-4265-n')], ['Anwendung', 'Programm', 'Applikation', 'Softwaresystem', 'Computerprogramm', 'Software', 'Softwareanwendung'])\n",
"\n",
"HYPERNYMS: [('w20430_4634-n', 'odenet-10049-n', ['Darstellung', 'Abbildung', 'Illustration', 'Spiegelbild', 'Visualisierung', 'Abbild', 'Wiedergabe'])]\n",
"HYPONYMS: [('w20430_4634-n', 'odenet-1152-n', ['Luftfoto', 'Luftbild', 'Luftaufnahme', 'Luftbildaufnahme']), ('w20430_4634-n', 'odenet-13061-n', ['Konterfei', 'Porträt', 'Bild', 'Porträtfoto', 'Porträtaufnahme']), ('w20430_4634-n', 'odenet-14916-n', ['Passbild', 'Passfotografie', 'Passfoto']), ('w20430_4634-n', 'odenet-19191-n', ['Bildschirmkopie', 'Hardcopy', 'Bildschirmfoto', 'Screenshot']), ('w20430_4634-n', 'odenet-2703-n', ['Satellitenfoto', 'Satellitenbild']), ('w20430_4634-n', 'odenet-35490-n', ['Akt', 'Aktfoto', 'Aktbild', 'Nacktfoto']), ('w20430_4634-n', 'odenet-1445-n', ['Videoaufzeichnung', 'Videoaufnahme', 'Filmaufnahme']), ('w20430_4634-n', 'odenet-10719-n', ['Makro', 'Makroaufnahme', 'Nahaufnahme', 'Großaufnahme']), ('w20430_4634-n', 'odenet-30144-n', ['Ultraschallbild', 'Sonogramm'])]\n",
"HYPERNYMS: [('w47335_12037-n', 'odenet-1986-n', ['Anordnung', 'Vorschrift', 'Anweisung', 'Instruktion']), ('w47335_12037-n', 'odenet-5980-n', ['Verwendung', 'Anwendung', 'Einsatz', 'Applikation'])]\n",
"HYPONYMS: [('w47335_12037-n', 'odenet-13222-n', ['Trojaner', 'Trojanisches Pferd']), ('w47335_12037-n', 'odenet-13226-n', ['Spionagesoftware', 'Spyware', 'Schnüffelsoftware']), ('w47335_12037-n', 'odenet-13404-n', ['freie und offene Software', 'FLOSS', 'Freie Software', 'Open-Source-Software', 'FOSS']), ('w47335_12037-n', 'odenet-17297-n', ['Bürokommunikationssoftware', 'Office-Software']), ('w47335_12037-n', 'odenet-29095-n', ['Grafikprogramm', 'Grafiksoftware']), ('w47335_12037-n', 'odenet-31169-n', ['Textverarbeitung', 'Textverarbeitungssoftware', 'Textverarbeitungsprogramm', 'Schreibprogramm']), ('w47335_12037-n', 'odenet-4265-n', ['Anwendersoftware', 'Programmsystem', 'Applikation', 'Anwendungsprogramm', 'Anwendungssoftware'])]\n",
"MERONYMS: []\n",
"HOLONYMS: []\n",
"ANTONYMS: []\n",
"LEMMA: Foto\n",
"LEMMA: Software\n",
"POS: n\n",
"SENSE ID: w20430_4634-n\n"
"SENSE ID: w47335_12037-n\n"
]
}
],
"source": [
"OdeNet.word_info(\"Foto\")"
"OdeNet.word_info(\"Software\")"
]
},
{
Expand Down Expand Up @@ -114,22 +114,22 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Arztpraxis', 'Praxis']"
"['Web-Suchmaschine', 'Internet-Suchmaschine']"
]
},
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"words_in_synset('odenet-10095-n')"
"words_in_synset('odenet-362363-n')"
]
},
{
Expand All @@ -141,27 +141,24 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 128,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"('i106626', \"charge against a citizen's person or property or activity for the support of government\", [], [('hypernym', 'odenet-31291-n'), ('hypernym', 'odenet-9595-n')], ['Steuer', 'Tribut', 'Zwangsabgabe', 'Zwangsbeitrag'])\n",
"('i106626', \"charge against a citizen's person or property or activity for the support of government\", [], [('hypernym', 'odenet-31291-n')], ['belasten', 'belastende Aussage machen'])\n",
"('i106626', \"charge against a citizen's person or property or activity for the support of government\", [], [('hypernym', 'odenet-31291-n')], ['Steuer', 'Ruder', 'Steuerruder'])\n",
"('i106626', \"charge against a citizen's person or property or activity for the support of government\", [], [('hypernym', 'odenet-31291-n')], ['bedrücken', 'berühren', 'belasten', 'jemandem auf der Seele liegen', '(schwer) zu knapsen haben', 'jemandem im Magen liegen', 'lasten'])\n",
"('i106626', \"charge against a citizen's person or property or activity for the support of government\", [], [('hypernym', 'odenet-31291-n')], ['strapazieren', 'überanstrengen'])\n"
"('', [], [], [('hypernym', 'odenet-7912-n')], ['Ressourcenplanung', 'Ressourcen-Management', 'Ressourcenmanagement', 'Kapazitätsplanung'])\n",
"('i68260', [], 'Ausrichtung auf ein Ziel', [('hyponym', 'odenet-10539-n'), ('hyponym', 'odenet-1765-a'), ('hyponym', 'odenet-34826-n'), ('hyponym', 'odenet-34890-a')], ['Zweck', 'Absicht', 'Plan', 'Ansinnen', 'Vorhaben', 'Intention', 'Behuf'])\n"
]
}
],
"source": [
"print(check_synset(\"odenet-24723-n\"))\n",
"print(check_synset(\"odenet-35129-v\"))\n",
"print(check_synset(\"odenet-10289-n\"))\n",
"print(check_synset(\"odenet-10297-v\"))\n",
"print(check_synset(\"odenet-10535-v\"))\n"
"print(check_synset(\"odenet-362366-n\"))\n",
"print(check_synset(\"odenet-7912-n\"))\n",
"#print(check_synset(\"odenet-10289-n\"))\n",
"#print(check_synset(\"odenet-10297-v\"))\n",
"#print(check_synset(\"odenet-10535-v\"))\n"
]
},
{
Expand Down
Loading

0 comments on commit 5dd77f3

Please sign in to comment.