stopwords

Version, currently master branch1 version
  • master branchlatestJan 27, 2018

github.com/adamrdrew/stopwords

A multi-language stopword removal library for Crystal based on the Stopwords ISO lists

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  stopwords:
    github: adamrdrew/stopwords
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.24.1
License
MIT
Author
Adam Drew

Dependencies

This version declares no dependencies.

README

stopwords

A multi-language stopword removal library for Crystal based on world lists from the Stopwords ISO project.

Installation

Add this to your application's shard.yml:

dependencies:
  stopwords:
    github: adamrdrew/stopwords

Usage

require "stopwords"

filter = Stopwords.new("en")
test = "This is a test string with the types of words that should get removed"
filter.filter source.split
# => ["This", "string", "types", "removed"]

This library suports many languages thanks to Stopwords ISO. Simply specify a valid ISO 639-1 language code when creating a Stopwords instance.


fr = Stopwords.new("fr")