Python library for manipulating semantic data in linguistics'
Project description
PySem: Pysen library for handling semantic data in linguistics
- Current Version: 1.1
- Concepticon Version: 3.4.0
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 (2025): PySeM. A Python library for handling semantic data in linguistics [Software, Version 1.1]. With contributions by Johannes Englisch. URL: https://pypi.org/project/pysem, Passau: MCL Chair at the University of Passau.
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-1.1.tar.gz
(997.8 kB
view details)
File details
Details for the file pysem-1.1.tar.gz
.
File metadata
- Download URL: pysem-1.1.tar.gz
- Upload date:
- Size: 997.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cf0ee6cad892ac9abea8912913fb629b38b6a6dab9ecb0fff2f5d6eed7b099fd
|
|
MD5 |
966c0aae584eebcdf8bcbf65fa4cd0fa
|
|
BLAKE2b-256 |
8829c33095538c034b7d2f8d46fa03e724b39a6dca5a13fb8d32b743edcd352d
|