Giter Site home page Giter Site logo

brunogoncalooliveira / text-classifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shibing624/pytextclassifier

0.0 0.0 0.0 13.3 MB

text-classifier is a toolkit for text classification. It was developed to facilitate the designing, comparing, and sharing of text classification models.

Home Page: https://shibing624.github.io/text-classifier/

License: Apache License 2.0

Python 100.00%

text-classifier's Introduction

alt text

License Apache 2.0

text-classifier

Text classifier and cluster. It can be applied to the fields of sentiment polarity analysis, text risk classification and so on, and it supports multiple classification algorithms.


text-classifier is a python Open Source Toolkit for text classification and text clustering. The goal is to implement text analysis algorithm, so as to achieve the use in the production environment. text-classifier has the characteristics of clear algorithm, high performance and customizable corpus.

text-classifier provides the following functions:

  • Classifier
  • LogisticRegression
  • MultinomialNB
  • KNN
  • SVM
  • RandomForest
  • DecisionTreeClassifier
  • Xgboost
  • Neural Network
  • Evaluate
  • Precision
  • Recall
  • F1
  • Test
  • Chi-square test
  • Cluster
  • MiniBatchKmeans

While providing rich functions, text-classifier internal modules adhere to low coupling, model adherence to inert loading, dictionary publication, and easy to use.


demo

https://www.borntowin.cn/product/sentiment_classify


Usage

Requirements and Installation

git clone https://github.com/shibing624/text-classifier.git
pip3 install -r requirements.txt

Example Usage

  1. Preprocess with segment
python3 preprocess.py
  1. Train model

you can change model with edit config.py and train model.

python3 train.py
  1. Predict with test data
python3 infer.py

Algorithm

  • LogisticRegression
  • Random Forest
  • Decision Tree
  • K-Nearest Neighbours
  • Naive bayes
  • Xgboost
  • Support Vector Machine(SVM)
  • MLP
  • Ensemble
  • Stack
  • Xgboost_lr
  • text CNN
  • text RNN
  • fasttext
  • HAN
  • Kmenas

Thanks

  • SentimentPolarityAnalysis

Licence

  • Apache Licence 2.0

text-classifier's People

Contributors

shibing624 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.