Giter VIP home page Giter VIP logo

ganmaz's Introduction

Ganmaz

A Simple and Stupid Lazy Text Classifier

license Build Status

Ganmaz is a simple text classifier which is based on k-NN (k Nearest Neighbors), the well-knonw nonparametric text classification technique. The program is easy to use and can do classification via rest API.

For building the software, execute:
'mvn package' on the project source root.
The JAR file will be generated in: 'target/ganmaz-1.0.jar'

Then execute Ganmaz in command line via:
java -cp target/ganmaz-1.0.jar ir.toolki.ganmaz.RestKt
The Rest server will accept texts for classification via:
localhost:5050/classify/text_to_classify using HTTP GET
and localhost:5050/classify using HTTP POST

For testing a dataset run: java -cp target/ganmaz-1.0.jar ir.toolki.ganmaz.RestKt --test --json sample.json

There are several command line params:
--json VAL : The path of json file (default: )
--k N : The number of Neighbors for classifier. (default: 5)
--port N : The port to listen (default: 5050)
--test : Test the file. (default: false)

If no json file is given by the user, Ganmaz uses a default sample JSON file which provides a two class dataset.

That's all...

ganmaz's People

Contributors

shahrivari avatar

Watchers

 avatar

Forkers

amirsh98

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.