class Descripteur
module descripteur
The documentation is here.
Instances of this class correspond to
simple descriptors to which numbers
are set.
Construction
-
__init__
- builds a Descripteur with a
given number.
Optional keyword:
-
str=s
- builds from string s, using
read_str;
- prop=p
- builds from
Proportion p, using
read_prop;
- fic=f
- builds from filename f, using
read_nf;
- fprop=f
- builds from filename f of
Proportion, using
read_prop;
- read_str
- builds from a
string, in format of simple
descriptors;
- read_nf
- builds from a filename;
- read_prop
- builds from a
Proportion, using
loglex. For efficiency
considerations, the proportions priors and posteriors are translated
differently (see descriptors):
-
priors are clustered in a tree from the last letters to the
first ones, and each leaf of this tree will be the output of the
corresponding posterior. Afterwards, these labels are output with
backward-or (
|{}
) operator
along the edges of the tree, and the posteriors are output in
their specific format. The order in backward-or operator is not
related with any order in the proportions. Priority is given to
the most specific prior. The −100000 labels are for no-matching
priors.
Example: The output of the posteriors are replaced by
the `'
.
- posteriors are clustered in a tree from the first letters to the
last ones, and each leaf of this tree is the logarithm of the
corresponding proportion. Afterwards, the labels are output with the
here-or (
|()
) and
forward-or (|`'
) operators.
−100000 labels are for not-matching posteriors.
- copy
- returns itself deeply copied Descripteur,
with a given number;
- equals
- copies from another Descripteur.
Handling
-
num
- returns the number of the Descripteur.
Input-Output
Descripteur instances have a specific format that is
described in Simple descriptors section.
-
__str__
- outputs in specific format.