Giter Club home page Giter Club logo

classifier.jruby's Introduction

classifier.jruby

A JRuby version of the Ruby classifier library

Cloned from the Ruby classifier gem

Original repository: https://github.com/cardmagic/classifier

Do not use this library if you are using Ruby - this is only for JRuby

The library and gem at https://github.com/cardmagic/classifier can use the gsl and rb-gsl gems if they are installed. These native gems use the GNU GSL numeric library and are very efficient.

Do use this if you are writing a JRuby application

I found that, GSL issues aside, that the original classifier library code would not work, at least on my system, with JRuby, so I took the minimum code and hacked on it a bit so it works with JRuby.

Usage

I did not package this as a Ruby gem. Instead, copy classifier.rb and the classifier directory into any project. The file examples.rb shows how to use:

  • LSI classifier
  • LSI summarizer
  • Bayes classifier

Warning

The pure Ruby code for calculating singular value decomposition (SVD) throws runtime errors if trained on very short text strings. The original version that uses the GNU GSL library does not have this problem.

Enjoy!

Mark Watson http://markwatson.com

2014/10/04

classifier.jruby's People

Contributors

mark-watson avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.