Project

cloud_text

0.0
No commit activity in last 3 years
No release in over 3 years
This gem removes punctuation and digits(optional), filters stopwords for the chosen language ('tr', 'en' or 'fr'), does stemming on the words and outputs an array of words with their frequencies.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

 Project Readme

CloudText

This gem removes punctuation and digits(optional), filters stopwords for the chosen language ('tr', 'en' or 'fr'), does stemming on the words and outputs an array of words with their frequencies.

Installation

Add this line to your application's Gemfile:

gem 'cloud_text'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cloud_text

Usage

require 'cloud_text'

# Default options
# remove_digits => false
# language => "en"
# stemming => false

options = { remove_digits: true, language: "en", stemming: true }
cleaner = CloudText.clean_text("Your text to be cleaned, will come come come here1!1", options)
# => [["come", 3], ["will", 1], ["clean", 1], ["text", 1]]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/twentify/cloud_text. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Code of Conduct

Everyone interacting in the CloudText project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.