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]]}
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.3.0.tar.gz
(688.5 kB
view details)
File details
Details for the file pysem-0.3.0.tar.gz
.
File metadata
- Download URL: pysem-0.3.0.tar.gz
- Upload date:
- Size: 688.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ed0acf662163489b33898118146a9766f58e2b9910ad03c7f50344601fc3508f
|
|
MD5 |
32a93577278197c74f364a19bca50ac1
|
|
BLAKE2b-256 |
e03c52038719ca33ed7f98b52b103adafab76d59b5218ad8b844f0c868fa1d0a
|