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.1.2

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.1.2
File Size Uploaded
saniti-0.1.2.tar.gz 2.7 kB Details

Release files / saniti-0.1.2.tar.gz

Download URL saniti-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
46e7b638f09d7a3815e2e37f3ebb1c401d035f2de4b392cf1d13b5e790c7ce45
BLAKE2b-256 checksum
How to use checksums
195f0fe00fb972f9e501af4ae7826838fb36a86b79bb273529a5813c47f2badb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.51

1 release file

0.1.44

1 release file

0.1.43

1 release file

0.1.42

1 release file

0.1.41

1 release file

0.1.22

1 release file

0.1.21

1 release file

0.1.4

1 release file

0.1.3

1 release file

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.1

1 release file

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