Skip to content

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

Notifications You must be signed in to change notification settings

kristjanjansen/eka_classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published