Standard for lexicons of inflected paradigms
Project description
Paralex: lexicons of morphological paradigms
Paralex is a standard for morphological lexicons which document inflectional paradigms.
This package contains:
- The paralex specification
- The full documentation
- Utilities to generate metadata and to validate paralex lexicons
Generating metadata
To generate paralex metadata (more in the docs):
from paralex import paralex_factory
package = paralex_factory("Vulcan Verbal Paradigms",
{
"forms": {"path": "vulcan_v_forms.csv"},
}
)
package.to_json("vulcan.package.json")
The package returned is a frictionless Package object and can be manipulated as such as needed.
Validation of paralex datasets
To validate a paralex lexicon:
paralex validate <mypackagename>.package.json
This checks that the data is valid using frictionless, as well as a number of statements to match the paralex standard. For a detailed report on frictionless metadata, do:
frictionless validate <mypackagename>.package.json
Serving the paralex site
First, build the standard package from files:
paralex make_standard
Second, build the specs files from the standard package:
paralex make_doc
Third, use mkdocs (which needs to be installed) to build this site:
mkdocs serve
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
Built Distribution
Hashes for paralex-1.0.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3458d58e9d9771765562509b5f677e11c5d66df0b4e4001bb2392d69f9d3807 |
|
MD5 | 00cd50469e7d9fa9ab2e0e6e3ccb8092 |
|
BLAKE2b-256 | c8806a0fa3c09b0eefd4ecd0cc1873eaa13cf2a9f6edce5618b9c1088a929f35 |