compte::Compte Class Reference
List of all members.
Member Function Documentation
def compte::Compte::add_pseudo |
( |
|
self, |
|
|
|
x, |
|
|
|
val = 1 | |
|
) |
| | |
Add the counts of the word x with optionnal value val=1.
Only the count of the given word are added, and not its prefixes.
def compte::Compte::add_seq |
( |
|
self, |
|
|
|
s, |
|
|
|
lg, |
|
|
|
kw | |
|
) |
| | |
Add the counts of words at most lg-length from sequence s.
Needs operator s[].
Character '^' is for beginnings and ends of sequences.
Keyword argument:
deb -- Count only after position deb (>=0) included;
fin -- Count only before position fin (<len()) included;
alpha -- Count only words which letters are in string alpha. If
alpha='', do not consider alpha;
fact -- Count each word fact (default: 1).
The documentation for this class was generated from the following file: