NB!
This is Språkbanken's inofficial version of the paradigmextract library. The main version can be found here.
---*--- ---*--- ---*---
Paradigm learning and paradigm prediction
The software collection in this repository is related to a body of scientific work on paradigm learning and paradigm prediction, of which the following publication is the latest one. See the reference list for previous work.
[Forsberg, M; Hulden, M. (2016). Learning Transducer Models for Morphological Analysis from Example Inflections. In Proceedings of StatFSM. Association for Computational Linguistics.] (http://anthology.aclweb.org/W16-2405)
Quick reference
Paradigm learning: pextract.py
Description
Extract paradigmatic representations from input inflection tables. See Section 2 in Forsberg and Hulden (2016) for details.
Example
$ python src/pextract.py < data/es_verb_train.txt > es_verb.p
Non-probabilistic morphological analyzers: morphanalyzer.py
Description
Create a foma-compatible morphological analyzer from a paradigm file. The analyzer is non-probabilistic.
Options:
-orecreate original data (all vars must be exactly instantiated as seen in training data)-cconstrain variables by generalizing (default pvalue = 0.05)-uunconstrained (all variables are defined as ?+)-puse together with -c-skeep different analyzers separate instead of merging with priority union (may be necessary for some analyzers)-nname of binary foma file to compile to
Any combination of the above may be used. The analyzers are combined
by priority union, e.g. -o -c -u would yield an analyzer
[ Goriginal .P. Gconstrained .P. Gunconstrained ].
Example
$ python src/morphanalyzer.py -o -c es_verb.p > es_verb.foma
Probabilistic morphological analyzers: morphparser.py
Description
Create a probabilistic morphological analyzer from a paradigm file.
Reads one or more whitespace-separated words from STDIN and
returns the most plausible analysis for the set in the format:
SCORE NAME_OF_PARADIGM VARIABLES WORDFORM1:BASEFORM,MSD#WORDFORM2:BASEFORM,MSD...
Flags:
-k numprint the k best analyses-tprint the entire table for the best analysis-dprint debug info-n numuse an nth order ngram model for selecting best paradigm (an n-gram model for variables in the paradigm is used)
Example
$ echo "coger cojo" | python morphparser.py ./../paradigms/spanish_verbs.p -k 1 -t
Metadata
Release files for paradigmextract 0.1.1
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 |
|---|---|---|---|---|
| paradigmextract-0.1.1.tar.gz | 391.1 kB | Without provenance | Details for paradigmextract-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paradigmextract-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for paradigmextract-0.1.1-py3-none-any.whl |
Total release size: 407.2 kB
Release files / paradigmextract-0.1.1.tar.gz
| Download URL | paradigmextract-0.1.1.tar.gz |
|---|---|
| Size | 391.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63764fee55adf48abb68f9956a22ecd4a1257952b99b1592bcf3ae064ed7cc0c
|
|
BLAKE2b-256 checksum How to use checksums |
574ae51567471941270edc9d34204365484278c6474ac3b7747ecb4fefe58900
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
|
Release files / paradigmextract-0.1.1-py3-none-any.whl
| Download URL | paradigmextract-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f001ca9f147905d5a9abce158c6923005fcc5af108134858b74cfa322dd130f4
|
|
BLAKE2b-256 checksum How to use checksums |
4f44dfe191146b3a4ed74a83a145cd4e0f6646cf7f83e03442978f4b45040ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
|
Security for paradigmextract 0.1.1
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.