Ossetic (Iron) morphological analyzer
This is a rule-based morphological analyzer for Ossetic (oss). It is based on a formalized description of the morphology of literary Ossetic, which is based on the Iron dialect, and uses uniparser-morph for parsing. It performs full morphological analysis of Ossetic words (lemmatization, POS tagging, grammatical tagging).
How to use
Python package
The analyzer is available as a Python package. If you want to analyze Ossetic texts in Python, install the module:
pip3 install uniparser-ossetic
Import the module and create an instance of OsseticAnalyzer class. Set mode='strict' if you are going to process text in standard orthography, or mode='nodiacritics' if you expect the ӕ character to be misrepresented in some words (either as an identically looking Latin character or as ае). After that, you can either parse tokens or lists of tokens with analyze_words(), or parse a frequency list with analyze_wordlist(). Here is a simple example:
from uniparser_ossetic import OsseticAnalyzer
a = OsseticAnalyzer(mode='strict')
analyses = a.analyze_words('ӕвзаджы')
# The parser is initialized before first use, so expect
# some delay here (usually several seconds)
# You will get a list of Wordform objects
# The analysis attributes are stored in its properties
# as string values, e.g.:
for ana in analyses:
print(ana.wf, ana.lemma, ana.gramm)
# You can also pass lists (even nested lists) and specify
# output format ('xml', 'json' or 'conll')
# If you pass a list, you will get a list of analyses
# with the same structure
analyses = a.analyze_words([['Фӕлӕ'], ['Æз', 'дæ', 'уарзын', '.']],
format='xml')
analyses = a.analyze_words([['Фӕлӕ'], ['Æз', 'дæ', 'уарзын', '.']],
format='conll')
analyses = a.analyze_words(['ӕвзаджы', [['Фӕлӕ'], ['Æз', 'дæ', 'уарзын', '.']]],
format='json')
Refer to the uniparser-morph documentation for the full list of options.
Word lists
Alternatively, you can use a preprocessed word list. The wordlists directory contains a list of words from a 12-million-word Ossetic National Corpus (wordlist.csv) with 438,000 unique tokens, list of analyzed tokens (wordlist_analyzed.txt; each line contains all possible analyses for one word in an XML format), and list of tokens the parser could not analyze (wordlist_unanalyzed.txt). The recall of the analyzer on the corpus texts is about 90%.
Description format
The description is carried out in the uniparser-morph format and involves a description of the inflection (oss_paradigms.txt), a grammatical dictionary (oss_lexemes.txt), a list of productive lemma-changing derivations (derivations.txt), and a short list of analyses that should be avoided (bad_analyses.txt). The dictionary contains descriptions of individual lexemes, each of which is accompanied by information about its stem, its part-of-speech tag and some other grammatical information, its inflectional type (paradigm), and Russian and/or English translation. See more about the format in the uniparser-morph documentation.
Metadata
Release files for uniparser-ossetic 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uniparser-ossetic-2.0.0.tar.gz | 1.3 MB | Without provenance | Details for uniparser-ossetic-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uniparser_ossetic-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for uniparser_ossetic-2.0.0-py3-none-any.whl |
Total release size: 2.7 MB
Release files / uniparser-ossetic-2.0.0.tar.gz
| Download URL | uniparser-ossetic-2.0.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec19fdd2421f2215c0458ae99eeab38fd77bdac639e13a3ea5573fceaed2aeb6
|
|
BLAKE2b-256 checksum How to use checksums |
d0d1153ef4080e57ebf8f66eaf5992beb481fba1996eb389e2d26cba971d00f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.28.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / uniparser_ossetic-2.0.0-py3-none-any.whl
| Download URL | uniparser_ossetic-2.0.0-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b814f5f9ec100764d805c8b20dfb77b8fb723c3463ac3cdc2abb0c9bb026012d
|
|
BLAKE2b-256 checksum How to use checksums |
6c9ce2b8d829b7523fb2861303a96cc45c485c29ec9e43a33b2e2e12d10be64a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.28.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for uniparser-ossetic 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.