Giter VIP home page Giter VIP logo

review's Introduction

酒店评论标签生成

朴素贝叶斯实现文本分类

外部依赖

  1. numpy
  2. sklearn
  3. jieba
  4. snownlp
  5. scipy

pip install package 可直接安装

代码组织

  1. preprocess.py

训练集,测试集,预测集数据准备; 结巴分词,增加自定义字典; 统计单词频度,去掉低频词语;

  1. classify.py

加载所有数据,使用朴素贝叶斯算法进行分类

  1. tag_features.py gen_results.py

根据自己需求做一部分的结果处理

  1. 目录

data目录,所有原始数据目录; middle目录,所有中间数据目录; result目录,所有结果数据目录;

  1. run.sh

运行测试参数和运行,运行先请修改

相关技术博客分享

blog

author: youngcy

review's People

Contributors

butlerwilson avatar

Watchers

admin 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.