Skip to main content

Saniti

Sanitise lists of text documents quickly, easily and whilst maintaining your sanity

The aim was to streamline processing lists of documents into the same outputs into simply specifying the list of texts and defining the sanitization pipeline.

Usage:

As a function-ish

original_text = ["I like to moves it, move its", "I likeing to move it!", "the of"]

text = saniti(original_text, ["token", "destop", "depunct", "unempty", "stem", "out_corp_dict"]) #sanitise the text while initalising the class

print(text.text)

As a class

sani1 = saniti() # initialise the santising class

text = sani1.process(original_text, ["token", "destop", "depunct", "unempty", "lemma", "out_tag_doc"]) # sanitise the text

print(text)

Pipeline Components

  • "token" - tokenise texts
  • "depunct" - remove punctuation
  • "unempty" - remove empty words within documents
  • "lemma" - lemmatize text
  • "destop" - remove stopwords
  • "stem" - stem texts
  • "out_tag_doc" - turns the texts into gensim tagged documents for Doc2Vec
  • "out_corp_dict" - turns the texts into gensim corpus and dictionary

Metadata

Release files for saniti 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saniti 0.0.13
File Size Uploaded Provenance Actions
saniti-0.0.13.tar.gz 2.6 kB Without provenance Details for saniti-0.0.13.tar.gz

Release files / saniti-0.0.13.tar.gz

Download URL saniti-0.0.13.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1eb13afd17266a2605ee473edd1acbcb8c670d1aa0d7f37abea9dc13d81a0824
BLAKE2b-256 checksum
How to use checksums
eb9c59099504eccf48181ce3ca8cab8bedc0321a4d3b7c93aaaf2b072eec5cbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for saniti 0.0.13

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page