Python library for manipulating semantic data in linguistics
Project description
PySem: Pysen library for handling semantic data in linguistics
Usage Examples
Retrieve the sense data assembled by S. A. Starostin in the STARLING software package and search for similar words:
>>> from pysem.sense import Sense >>> sns = Sense() >>> sns.similar('arm') [['arm', 'calf of leg', 'sense-bone; sense-foot; sense-hand', 3], ['arm', 'hand', 'sense-bone; sense-foot; sense-hand', 3], ['arm', 'shin-bone', 'sense-bone; sense-foot; sense-hand', 3], ['arm', 'ankle', 'sense-bone; sense-foot', 2], ['arm', 'bone', 'sense-bone; sense-foot', 2]]
Map data to the most recent version of the Concepticon project:
>>> from pysem import to_concepticon >>> to_concepticon([{"gloss": "Fuß", pos: "noun"}], language="de"}]) {'Fuß': [['1301', 'FOOT', 'noun', 19]]}
How to Cite
List, Johann-Mattis (2021): PySeM. A Python library for handling semantic data in linguistics. Version 0.4.0 URL: https://github.com/lingpy/pysem/, Leipzig: Max Planck Institute for Evolutionary Anthropology.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysem-0.5.0.tar.gz
(864.6 kB
view hashes)
Built Distribution
pysem-0.5.0-py2.py3-none-any.whl
(862.7 kB
view hashes)
Close
Hashes for pysem-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25afb35ca7ccbdae23b8cd247a3aefd08abf480cfaa1c58b949556324a8d207 |
|
MD5 | 7703e0d21e72ee3563ab01c8dc8b5a78 |
|
BLAKE2-256 | dd959c9670a2eba5df78eafbd3d5f234d21cb53d39e069362fbde2e9f22d13f8 |