Socket
Book a DemoInstallSign in
Socket

ruigi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruigi

0.1.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Ruigi

wercker status

Ruigi = Ruby + Luigi

It is said that the name of Luigi came from similarity( it's called "ruigi" in Japanese) to Mario. And Ruigi is similarity calculation library, which is implemented by Ruby.

algorithms

Now, only support TF-IDF and cosine similarity.

Installation

Add this line to your application's Gemfile:

gem 'ruigi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruigi

Usage

  • array of words -> Ruigi::Document
words = ["word1", "word2", ... , "wordN"]
document1 = Ruigi::Document.new(words)
  • Make a Model from documents of array
corpus = [document1, document2, ... , documentN] # each element's type is Ruigi::Document.
model = Ruigi::Model.new(corpus)
  • You can get feature vector for each document and calculate similarity between document.
model.feature_vector_of(0) # => return feature vector of 0th document

etc...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/naoki-k/ruigi.
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.

FAQs

Package last updated on 23 Oct 2016

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.