Lattices¶
Reference
This software was used in Beniamine (2021).
By default, this will start by computing patterns. To work with pre-computed patterns, pass the path to the pattern computation metadata with patterns=<path/to/metadata.json>.
Inferring a lattice of inflection classes, with (default) html output
/$ qumin action=lattice pats.defective=True pats.overabundant.keep=True data=<dataset.package.json>
Full reference¶
Lattice options are under the lattice namespace. Available lattice options (see also the common options):
- class qumin.config.config.LatticeConfig(*, shorten=False, aoc=False, export=<factory>, display=<factory>)[source]¶
Configuration for the ``lattice`` action.
- Parameters:
shorten (bool) – Drop redundant columns altogether. Useful for big contexts, but loses information. The lattice shape and stats will be the same. Avoid using with –html
aoc (bool) – Only attribute and object concepts. Sometimes faster for large lattices.
export (LatticeExportConfig) – Options for lattice export.
display (LatticeDisplayConfig) – Options for lattice drawing.
Values for the layout keyword:
- class qumin.config.config.LatticeDisplayConfig(*, horizontal=False, topdown=True, layout='qumin')[source]
Export configuration for the ``lattice`` action.
- Parameters:
horizontal (bool) – direction of the lattice (top->down or left->right).
topdown (bool) – Whether to start drawing from top to down or vice-versa.
layout (str) – Drawing layout. Supported values are “qumin” for Qumin’s internal algorithm, or the following networkx layouts: ‘dot’ (requires
pygraphviz), ‘radial’ (requirespygraphviz), ‘spring’, ‘kamada_kawai’.
Values for the export keyword:
- class qumin.config.config.LatticeExportConfig(*, html=True, ctxt=False, stat=False, pdf=True, png=False)[source]
Export configuration for the ``lattice`` action.
The default configuration for these keys looks like this:
lattice:
shorten: false
aoc: false
export:
html: true
ctxt: false
stat: false
pdf: true
png: false
display:
horizontal: false
topdown: true
layout: qumin
See the full full-config