Metadata-Version: 2.1
Name: yasp
Version: 0.1.1
Summary: Yet another Apertium stream parser
Author-email: Vee Satayamas <vsatayamas@gmail.com>
Project-URL: homepage, https://git.sr.ht/~veer66/yasp
Keywords: apertium,stream,parser
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
License-File: LICENSE

# 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']}])]
>>> 
```
