Text classification microservice written on NodeJS based on Naive Bayes classification. Part on the Estonian Academy of Arts Emerging Themes project
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.
npm i
npm run start
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":{ ...
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...] }
npm i -g now
now
now alias