Skip to content

xiongshufeng/sent_visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: this repository is depreciated, please use this repo

Process

Build Classifiers

  • Write new classifier that is scikit-learn compatible in src/classifier.
  • Train the classifier with src/train_models.py and store it in model/

Run Server

  • For releasing, execute src/server.py
  • For debugging, execute src/server.py -d

Test Client& Server connection

  • For releasing, execute src/client_test.py
  • For debugging, execute src/client_test.py -d

Server & Client Protocol

  1. (GET) /litsmodel
Input:
None
Output:
{"model1_name":["emotion_A", "emotion_B", "emotion_C"], "model2_name":["emotion_D", "emotion_E"]}
  1. (POST) /predict The output are the probability (or something similar) for each emotion belonging to the queried model name
Input:
{"model":"model1_name", "text": "whatever text here"}
Output:
{"res": [0.2, 0.3, 0.9]} 
  1. (POST) /log
Input:
{"Whatever":"Whatever json object"}
Output:
None

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published