Skip to main content

A package for creating clever word clouds

Project description

clevercloud

Creating meaningful word clouds!

codecov

A package created to try a GitHub Actions workflow! :)

ci-cd

A package created to try a GitHub Actions workflow!

Summary

This package is developed to serve as the one-step solution to create meaningful and visually appealing word clouds. To create meaningful word clouds, data scientists typically takes multiple steps to clean the data, such as removing stopwords, removing punctuation and digits, making the letters lower cases, conducting lemmatization and stemming. This package will help data scientists clean the data easily following the common practices and also allow to a meaningful word cloud with customized stopwords.

Functions

There are 4 functions in this package:

  • CleverClean A preprocessor to convert all the letters to lower case and remove punctuations.

  • CleverLemStem A preprocessor to conduct lemmatization and stemming on the text.

  • CleverStopwords A comprehensive list of English stopwords that allow adding more customized words.

  • CleverWordCloud As function to generate a meaningful word cloud that allows customized stopwords.

Fitting into the Python ecosystem

Packages that have similar functions:

  • WordCloud: a word count generator that emphasis more frequently used words from an array of strings and represents them in the form of an image.

What we do differently:

  • Our aim is to improve on the pre-processing of strings before creating a wordcloud in order to make it more user specific and efficient.

  • Word cloud only eliminates limited amount of stopwords, but with our package we are giving users the opportunity to add more stopwords that cater to their analysis.

  • We are focused on removing as many redundant and duplicate words by setting strings to lower case, removing punctuation, lemmatizing and stemming the text.

Installation

$ pip install clevercloud

Usage

clevercloud can be used to preprocess text and create a meaningful word cloud with customized stopwords as follows:

from clevercloud.CleverClean import CleverClean
from clevercloud.CleverLemStem import CleverLemStem
from clevercloud.CleverStopwords import CleverStopwords
from clevercloud.CleverWordCloud import CleverWordCloud

import pandas as pd
text = ["is is a feet feet crying beautiful123", "maximum feet RUNNING!!", "BEAUTIFUL feet beautiful crying"]
test_text = pd.Series(text) # input pandas series

clean_text = CleverClean(test_text)
final_text = CleverLemStem(clean_text)
new_stopwords = CleverStopwords({"foot", "cry"})
WordCloud = CleverWordCloud(final_text, new_stopwords, max_w=3)

Contributing

Contributors of the project: Amelia Tang, Arushi Ahuja, Victor Francis, Adrianne Leung

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

clevercloud was created by Amelia Tang, Arushi Ahuja, Victor Francis, Adrianne Leung. It is licensed under the terms of the MIT license.

Credits

clevercloud was created with cookiecutter and the py-pkgs-cookiecutter template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clevercloud-0.1.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clevercloud-0.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file clevercloud-0.1.2.tar.gz.

File metadata

  • Download URL: clevercloud-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for clevercloud-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e485401949b4e77a6df37843705be36b8dfdc038cb2bbc7b1cf3d91af8976082
MD5 d7bc0bbef923857412bad9aa9b0435d8
BLAKE2b-256 97a3f870f59f63ed3025f5446a734f9a4f49a0b1a49f15cb7c37b1f4e2987b7a

See more details on using hashes here.

File details

Details for the file clevercloud-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: clevercloud-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for clevercloud-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fae72ce29a9883b05d7be343dc4987cbbebb68a87901c70bd6189969389aaf13
MD5 a88b273064b60a9a712a93206065b265
BLAKE2b-256 ecec31834a3fce303ec62c38f683e192a05f8dc337ae3d7d8a267d5c2e5586c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page