Giter VIP home page Giter VIP logo

text-classifier's Introduction

text-classifier

License Apache 2.0

Text classifier. 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 s a python Open Source Toolkit for Chinese text categorization. The goal is to implement text categorization algorithm, so as to achieve the use in the generative 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

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


demo

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


Usage

  • text classifier
  1. modify config.py
  2. run segment.py -> train.py -> infer.py:
python train.py
python infer.py

Algorithm

  • [done] LogisticRegression
  • [done] Random Forest
  • [done] Decision Tree
  • [done] K-Nearest Neighbours
  • [done] Naive bayes
  • [done] Xgboost
  • [done] Support Vector Machine(SVM)
  • [done] MLP
  • [done] Ensemble
  • [done] Stack
  • [done] CNN

Thanks

  • SentimentPolarityAnalysis

Licence

  • Apache Licence 2.0

text-classifier's People

Contributors

shibing624 avatar

Watchers

David Lanz avatar James Cloos 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.