This is a flask-based simply platform for labeling classification of a text.
The platform is designed to help users create labeled datasets for training classification models in natural language processing (NLP) tasks.
Testing source is from chinese_sentiment.
We all love to use a very useful sqlite-based database.
CREATE TABLE "emotion" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"text" INTEGER NOT NULL UNIQUE,
"date" TEXT NOT NULL,
"flag" INTEGER NOT NULL
);
CREATE TABLE "label" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"emotionId" INTEGER NOT NULL,
"score" REAL NOT NULL,
"tag" TEXT NOT NULL,
"type" TEXT NOT NULL,
"tag_opt" TEXT NOT NULL,
"updateDate" TEXT NOT NULL
FOREIGN KEY("emotionId") REFERENCES "emotion"("id")
);
pip install -r requirements.txt
python main.py
And, it will serve on http://localhost:5000
Nat Lee |
H-Alice |