Lightweight library which implements Markov algorithm (cycle of replacements) for text strings.
Usage:
creating rules
from markalgo import rules
from markalgo import processing
# from text
replacement = rules.create_rules([("Norwegian blue", "parrot"), ("alive", "dead"), ("dead", "no more")])
# or from csv files
with open("notes/cicero.csv") as argumentation:
replacement = rules.read_all_rules_from_csv_file(argumentation)
processing text…
processing.process_text("This Norwegian blue is alive", replacement)
*"This parrot is no more"*
…or plain-text files
with open("notes/note.txt") as argumentation:
processing.process_file()
Release files for markalgo 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| markalgo-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / markalgo-1.0.2-py3-none-any.whl
| Download URL | markalgo-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b81d4915fe468b6704cb1aa90449ecf8082b6b734f2b9d5c8d9a829fc4b74577
|
|
BLAKE2b-256 checksum How to use checksums |
2241ed1d1fa843c97a0c1f3596110da26213395bbc8631d130bbc0fc649eaf55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |