Yet another Apertium stream parser
Project description
YASP
Yet another Apertium stream parser
Usage
>>> from pprint import pprint
>>> import yasp
>>> pprint(yasp.stream.parse('^prpers<prn><subj><p1><mf><sg>$ ^saw<vblex><pres>$ ^a<det><ind><sg>$ ^cat<n><sg>$'))
[('LEXICAL-UNIT',
[{'FLAG': '',
'INVARIABLE-PART0': [],
'INVARIABLE-PART1': [],
'LING-FORM': 'prpers',
'TAGS': ['prn', 'subj', 'p1', 'mf', 'sg']}]),
('UNPARSED', ' '),
('LEXICAL-UNIT',
[{'FLAG': '',
'INVARIABLE-PART0': [],
'INVARIABLE-PART1': [],
'LING-FORM': 'saw',
'TAGS': ['vblex', 'pres']}]),
('UNPARSED', ' '),
('LEXICAL-UNIT',
[{'FLAG': '',
'INVARIABLE-PART0': [],
'INVARIABLE-PART1': [],
'LING-FORM': 'a',
'TAGS': ['det', 'ind', 'sg']}]),
('UNPARSED', ' '),
('LEXICAL-UNIT',
[{'FLAG': '',
'INVARIABLE-PART0': [],
'INVARIABLE-PART1': [],
'LING-FORM': 'cat',
'TAGS': ['n', 'sg']}])]
>>>
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
yasp-0.1.1.tar.gz
(15.2 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
yasp-0.1.1-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file yasp-0.1.1.tar.gz.
File metadata
- Download URL: yasp-0.1.1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b930c56d295d22c9b8efe62675b8711398aa4ec56c18aeca871c824fc900306a
|
|
| MD5 |
c372e5ebbfb769c95c254d0dd618deaf
|
|
| BLAKE2b-256 |
bda8b1b52895721eb272220e6ef4d00bf34dcf06e8468069e656cb4d9c053083
|
File details
Details for the file yasp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: yasp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9adc8b0d6ca1b7f5a44aff1f35ecd37b051dd56e9d30a10a5235a0aa8efdbd33
|
|
| MD5 |
dd97f951b7affc0ff5b3ef601d2a93b3
|
|
| BLAKE2b-256 |
f409c60cf6cfb80df2835a3a8fee3cbdef073635f5b0de15558fc126f01aef00
|