Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.42 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.42 KB

Text classification microservice written on NodeJS based on Naive Bayes classification. Part on the Estonian Academy of Arts Emerging Themes project

EKA Classifier

A simple text classification microservice written on NodeJS based on Naive Bayes classification, to be hosted on Zeit Now v1.

The main reason it exits is that NaturalNode/natural libraries have not yet ported to the browser.

Part on the Estonian Academy of Arts Emerging Themes masters project.

Demo

https://eka-classifier.now.sh

Installation and running locally

npm i
npm run start

Training

POST training text and classificator strings as JSON array to the /train route:

[
  ["tomorrow we will do standup", "meeting"],
  ["can you play some new music", "music"]
]

A classifier with parameters will be returned, something like

{"classifier":{"classFeatures":{ ...

Classifying

POST text to classify and classifier returned from the previous step as JSON array to the /classify route:

["play ABBA for me",{"classifier":{"classFeatures":{ ... ]

A classificator object will be returned:

{ classifier: 'music', classifiers: [...all classifiers with probabilities...] }

Deploying

npm i -g now
now
now alias