Python library for manipulating semantic data in linguistics
Project description
PySem: Pysen library for handling semantic data in linguistics
- Current Version: 0.8
- Concepticon Version: 3.2.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 (2024): PySeM. A Python library for handling semantic data in linguistics [Software, Version 0.8]. 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-0.8.tar.gz
(937.3 kB
view details)
Built Distribution
pysem-0.8-py2.py3-none-any.whl
(936.1 kB
view details)
File details
Details for the file pysem-0.8.tar.gz
.
File metadata
- Download URL: pysem-0.8.tar.gz
- Upload date:
- Size: 937.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
df45c35bd80f5011cf383d61ca27d2ddc7badec6bcf4431be9b27e64d7e2e4b6
|
|
MD5 |
0601e5afafab81151af5db6824c688aa
|
|
BLAKE2b-256 |
2bc3c7715ae4ffde299a4bb1c08a2dc42b7e04ec2eaad8b9d57ff48ae07bd9ba
|
File details
Details for the file pysem-0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: pysem-0.8-py2.py3-none-any.whl
- Upload date:
- Size: 936.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a8b94133b2af990d0c127dfc79a98041ed5bbe2541aef109e24ae5d539f3e29f
|
|
MD5 |
a5f3edf3581b29bfdda8b996cfed3fe2
|
|
BLAKE2b-256 |
fe5586b7d4c139204ac9376dad54542afb68afa72f6ed676fef1f8d3c668beff
|