Greekwordnet
A Python helper library for accessing and manipulating the Ancient Greek WordNet.
Install / Use
/learn @jcuenod/GreekwordnetREADME
Ancient Greek WordNet
A Python helper library for accessing and manipulating the Ancient Greek WordNet.
Background
A WordNet is a lexico-conceptual database for a language. In a WordNet, a language's lexemes (nouns, verbs, adjectives, and adverbs) are grouped into sets of semantically related words called synsets (for "synonym sets"), which thus correspond to the senses that are lexicalized in the language. A WordNet also typically includes information about semantic relations (i.e., relations between synsets) and about lexical relations (i.e., relations between words).
Lemmas have been assigned to synsets using an automated process, which is highly prone to producing 'false positives'. When manual review of the data has been completed, this Ancient Greek WordNet will become an integral component of the University of Exeter's TExtual semantic and syntactic search engine for electronic corpora of ancient languages, the WordNet will deliver the engine's ability to execute queries based on word meanings.
Installation
After cloning the repository, all you need to do is compile the relevant SQLite databases:
>>> from greekwordnet.db import compile
>>> compile('greek')
You will need to do the same for the English and Italian synset databases:
>>> compile('english', 'synset)
>>> compile('italian', 'synset)
To make full use of the semantic data that is included in the MultiWordNet, you will also want to compile the list of common relations and semfield hierarchy:
>>> compile('common', 'relations', 'semfield', 'semfield_hierarchy')
Basic usage
>>> from greekwordnet.greekwordnet import GreekWordNet
>>> from greekwordnet.transliterate import lat2grk
>>> GWN = GreekWordNet()
>>> GWN.lemmas # all the lemmas currently in the WordNet
>>> phulattw = GWN.get_lemma('φυλάττω', 'v')
>>> phulattw - GWN.get_lemma(lat2grk("phula'ttw"), 'v') # this may be easier in some circumstances
>>> phulattw.synonyms # all lemmas that share a synset with 'abalieno'
>>> phulattw.antonyms
>>> phulattw.synsets
...
>>> synset = GWN.get_synset('n#07462736') # you can find a synset directly, if you know its offset ID
>>> synset.lemmas
...
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
