Skip to content

milooprojectid/morbius-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morbius

Miloo Sentiment Analysis Module

Prerequisite

Before you can use the app, you have to set up the virtual env and install dependencies. Run the following command in the project root directory.

bin/setup

It will generate a local virtual environment required to run the app.

Usage

To run the app execute the following command without any parameter.

bin/run

It will start the Rest-API server.

Endpoint

There is only one endpoint served by the Rest-API server, which is root ("/"). It takes "text" field as a JSON input and will returns the sentiment class of given text.

Input
{
  "text": "Semalang-malangnya nasib lu, masih malang nasib underpass kemayoran."
}

Output

{
  "message": "sentiment analysis finished",
  "data": {
     "class": 1,
     "description": "neutral"
  }
}

About

Tensorflow Model Service 🦇

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •