Wikicleaner
Wikipedia provides a series of dumps in XML format. While developing this project, I personally used the simple wiki dumps.
Purpose
The intent of this project is to provide some low-level routines that allow us to manipulate the content of XML dumps. One such routine removes all of the annotations like [[File:*]] and {{some metadata}} in order to make our input more digestible for an AI application that uses embeddings.
Example Usage
>>> import wikicleaner as wc
>>> article_raw_text = "[[File:Colorful spring garden.jpg|thumb|180px|right|[[Spring]] flowers in April in the [[Northern Hemisphere]].]] April comes between [[March]] and [[May]]"
>>> wc.clean_article_text(article_raw_text)
' April comes between March and May'
Metadata
Release files for wikicleaner 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wikicleaner-0.1.7.tar.gz | 24.2 kB | Without provenance | Details for wikicleaner-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wikicleaner-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.34+ x86-64 | Details for wikicleaner-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl |
Total release size: 849.5 kB
Release files / wikicleaner-0.1.7.tar.gz
| Download URL | wikicleaner-0.1.7.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff8e7ebc77e692a1b26041e042e3f8159237e6f3f4ec86ce47c2fefbd24e8931
|
|
BLAKE2b-256 checksum How to use checksums |
1b02b6b10791f29ca743584835205c352f63d4d1717beed53e5d331ac3200bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Release files / wikicleaner-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | wikicleaner-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 825.3 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
56d38be6a8a740bb0cb522b1dcc819b6594dc05d6345931846432e6f9ea8a3fa
|
|
BLAKE2b-256 checksum How to use checksums |
83bb686d1c655e752943f2db39e6421eaf2cb58a0a32ae2f8a6cfca4f8c5e7cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Security for wikicleaner 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.