|{}
) 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 not-matching
priors.`'
.|()
) and
forward-or (|`'
) operators.
-100000 labels are for not-matching posteriors.>>> import lexique >>> l=lexique.Lexique(str="1:A 2,3:BC") >>> print l 3,2:CB 1:A >>> l[2] '2:B' >>> l[4]='D' >>> print l 4:D 3,2:CB 1:A >>> l[3,5]='EF' Bad descriptor number 3 already used >>> l[6,5]='EF' >>> print l 5,6:FE 4:D 3,2:CB 1:A >>> del l[4] >>> l[4]='F' >>> print l 4:F 5,6:FE 3,2:CB 1:A >>> del l[2] >>> print l 4:F 5,6:FE 3:C 1:A
|
|||||||||||||||||||||||||
|
$
is a wildcard, and cannot be used as a
standard letter. It is used in method
read_str, and is set
successively on all of the letters of the second string argument of
this method. For example:
lit_str("$", "ACG")
builds Lexique: A C G
lit_str("A$A", "TG")
builds Lexique:
ATA AGA
lit_str("`A$$'", "CGT")
builds Lexique:`ACC' `ACG' `ACT' `AGC' `AGG' `AGT' `ATC' `ATG' `ATT'