Giter VIP home page Giter VIP logo

clevercloud's Introduction

clevercloud

Creating meaningful word clouds!

codecov ci-cd Documentation Status

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.

clevercloud's People

Contributors

adrianne-l avatar aimee0317 avatar arushi282 avatar vikiano avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

aimee0317

clevercloud's Issues

Submission

I think we are good to go? Let's take a look and please post any problems/concerns here!

Four functions ideas

CleverClean

  • Lower case
  • No punctuations
  • etc
    CleverLemStem
  • Lemmatization
  • Stemmer
  • etc.
    CleverStopwords
  • a more comprehensive default English stopword list/set
  • allow customization
    CleverWordCloud
  • Can choose shape
    (Cloud, Micky, Earth)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.