A Python library for handling inter-linear-glossed text.
Project description
pyigt: Handling interlinear glossed text with Python
This library provides easy access to Interlinear Glossed Text (IGT) according to the Leipzig Glossing Rules, stored as CLDF examples.
Installation
Installing pyigt via pip
pip install pyigt
will install the Python package along with a command line interface igt.
Usage
CLI
$ igt -h
usage: igt [-h] [--log-level LOG_LEVEL] COMMAND ...
optional arguments:
-h, --help show this help message and exit
--log-level LOG_LEVEL
log level [ERROR|WARN|INFO|DEBUG] (default: 20)
available commands:
Run "COMAMND -h" to get help for a specific command.
COMMAND
ls List IGTs in a CLDF dataset
stats Describe the IGTs in a CLDF dataset
Python API
>>> from pyigt import Corpus
>>> corpus = Corpus.from_path('tests/fixtures/cldf-metadata.json')
>>> len(corpus)
>>> len(corpus)
5
>>> for igt in corpus:
... print(igt)
... break
...
zəple: ȵike: peji qeʴlotʂuʁɑ,
zəp-le: ȵi-ke: pe-ji qeʴlotʂu-ʁɑ,
earth-DEF:CL WH-INDEF:CL become-CSM in.the.past-LOC
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
pyigt-0.2.0.tar.gz
(21.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyigt-0.2.0-py2.py3-none-any.whl
(21.8 kB
view details)
File details
Details for the file pyigt-0.2.0.tar.gz.
File metadata
- Download URL: pyigt-0.2.0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6648767ad6b41c0bb8739509df97e9af6bb49a4266de45817dc9026d7447d163
|
|
| MD5 |
226bbd81f39f68f92cde7153696ed5e8
|
|
| BLAKE2b-256 |
5a5535639ef15f325bcb6829f816aba0fd7a871fb3f7b453e334a6c6add939dd
|
File details
Details for the file pyigt-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: pyigt-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf5bf68dc48925157d977fdcc820686e9b9143b065ebdfd15eb9e6cf113a21e
|
|
| MD5 |
c3d71c535a8767d0705cebc15dd48273
|
|
| BLAKE2b-256 |
05f6eef1d3e843df7e172bbf33bf4452330d3b5990dabef4174bcf4ac80f2bf1
|