Skip to content

Simple Natural Language Processing (NPL) implementation that is based on Natural (a node.js library), with focus on classification of english texts. It is also able to learn and improve its classification leading to much smarter classification and predictions as it keeps on learning.

Notifications You must be signed in to change notification settings

bychwa/Naturale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naturale

This is a simple natural language classification application that basically takes a sentence or word and train the machine based on definition/meaning into a set of class that as that senstense belongs beased on Naive Bayes text classification.

This application has been deployed for test use on naturale and can be offline anytime.

Installation

Docker

If you have docker installed, just run the following command to build and run this application.

$ docker-compose up --build

Or Npm

If you have npm already installed, just run the following command to build and install the application.

$ npm run start

Usage:

To use the application, visit the site on localhost:80 on any of your favorite web browser or rest client.

Routes:

http://localhost:80/
http://localhost:80/query?text={whateverEnglishTextYouWant}{&classify=true||false}
http://localhost:80/train?text={whateverEnglishTextYouWant}
http://localhost:80/save{?file=filename.json }
http://localhost:80/load{?file=filename.json }
http://localhost:80/get?text={classifier||engine }

http://localhost:80/healthcheck
http://localhost:80/status
http://localhost:80/application
http://localhost:80/version

Example:

Sample Request:
$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:80/query=gates&classify=true
Sample Response:
{
    "text": "gates", 
    "classified_as": "gate", 
    "response_text": "a computer circuit with several inputs but only one output that can be activated by particular combinations of inputs  ", 
    "engine": {} 
}

About

Simple Natural Language Processing (NPL) implementation that is based on Natural (a node.js library), with focus on classification of english texts. It is also able to learn and improve its classification leading to much smarter classification and predictions as it keeps on learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published