A utility to clean Anki card text for NLP processing.
Project description
Anki Card Cleaner
A simple Python utility to clean Anki card text, removing cloze deletions, normalizing whitespace, and handling common Anki formatting quirks.
Installation
pip install anki-card-cleaner
Usage
from anki_card_cleaner import clean_card_text
text = "The capital of France is {{c1::Paris::City}}."
cleaned = clean_card_text(text)
print(cleaned)
# Output: "the capital of france is paris (city)."
Features
- Removes {{c1::...}} cloze deletions.
- Handles custom Answer::Hint format in clozes.
- Normalizes unicode non-breaking spaces.
- Fixes spacing after question marks.
- Lowercases everything.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anki_card_cleaner-0.0.1.tar.gz.
File metadata
- Download URL: anki_card_cleaner-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64df2446e01a94270520c32071593e1eaf97f46df3d41f8e805034afcc94455b
|
|
| MD5 |
ab1224ec2e490022c6db593fadca2cef
|
|
| BLAKE2b-256 |
72a447bad99a78ee874598847398929af622796a58ede307fd4c0ac8cae9a07b
|
File details
Details for the file anki_card_cleaner-0.0.1-py3-none-any.whl.
File metadata
- Download URL: anki_card_cleaner-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eb5f9f16888c26a4c1ddc6d0bef1b2e5ee864e21ef22bf26567ac763e05db3c
|
|
| MD5 |
1581e3b9d6b7dba165b06638566a74a0
|
|
| BLAKE2b-256 |
5a832a1482c2eb66ee5db817e4913dc09ef7cfb7ce4372850161fa26c87bf667
|