Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

raske-nlp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raske-nlp

  • 0.1.7
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

raske-nlp

Ruby implementation of the Rapid Automatic Spanish Keyword Extraction (RASKE) algorithm

Getting started

Add the following line to your Gemfile:

gem 'raske-nlp'

Then run bundle install

Usage

require 'raske-nlp'

text = "Uno de enero, dos de febrero, tres de marzo, cuatro de abril, cinco de mayo,
        seis de junio siete de julio, ¡SAN FERMÍN! Uno de enero, dos de febrero,
        tres de marzo, cuatro de abril, cinco de mayo, seis de junio siete de julio, ¡SAN FERMÍN!
        A Pamplona hemos de ir, con una media, con una media, a Pamplona hemos de ir
        con una media y un calcetín."

result = RaskeNLP.run(text, {
  min_phrase_length: 1,
  max_phrase_length: 3,
  min_frequency:     1,
  min_score:         1,
  stop_list:         RaskeNLP::StopList::ISO
})

result.keywords
 => {"san fermín"=>15.333333333333334, "calcetín"=>5.333333333333334, "media"=>1.0, "pamplona"=>1.0, "julio"=>1.0, "junio"=>1.0, "mayo"=>1.0, "abril"=>1.0, "marzo"=>1.0, "febrero"=>1.0, "enero"=>1.0}

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 09 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc