Paradigm panes meant to provide layout specification to be reused elsewhere.
Project description
paradigm-panes
Installable package that produces a paradigm for a given word, given a pointer to paradigm layouts and FST file. Originally built for itwêwina.
Example Usage:
import paradigm_panes
pg = paradigm_panes.PaneGenerator()
lemma = "amisk"
p_type = "NA"
pg.set_layouts_dir("/home/ubuntu/cmput401/paradigm-panes/paradigm_panes/resources/layouts")
pg.set_fst_filepath("/home/ubuntu/cmput401/paradigm-panes/paradigm_panes/resources/fst/generator-gt-norm.hfstol")
pg.generate_pane(lemma, p_type)
-
set_layouts_dir(path)
specifies a location of a directory with paradigm layouts that are relevant for current paradigm generation. -
set_fst_filepath(path)
specifies FST file location with layout translation that are relevant for current paradigm generation. -
set_tag_style(path)
specifies template rendering type.
Available tag styles:
- "Plus"
- "Bracket"
The generator must specify both location before generating a paradigm.
Size is optional to paradigm generation; by default a base size (or first available) will be used.
Project details
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 paradigm_panes-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e01e6b2598beb0ceb16074bf9b7dfa10eb8734e680e682f779221ad38614ece3 |
|
MD5 | e7f6174f4ace586e904eb38b7cded4ca |
|
BLAKE2b-256 | 081a9c7d34ccc981c6d8580428967384491febc3fe3e17a6d2b01f67b016c9c4 |