GithubHelp home page GithubHelp logo

sdgdsffdsfff / mining-keywords Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jingpeicomp/mining-keywords

0.0 0.0 0.0 216 KB

文本关键词提取,对文本分词后使用多种方法提取给定语料中的关键词,包含结巴自带的 TF-IDF 算法、TextRank 算法、Scikit-Learn 包中的 TF-IDF

Python 100.00%

mining-keywords's Introduction

mining-keywords

关键词提取,使用多种方法提取给定语料中的关键词。步骤:

  1. 对给定的语料使用 结巴分词 进行中文分词
  2. 从分词后的词条中提取关键词

一共使用了四种方法提取关键词:

  1. 词条数目统计
  2. 结巴自带的 TF-IDF 算法、
  3. 结巴自带的 TextRank 算法、
  4. Scikit-Learn 包中的 TF-IDF 算法。

安装

依赖:

  • Python (2.7)
  • jieba (>= 0.39)
  • scikit-learn (>=0.20.2)

使用

data 目录中 origin.txt 文件是原始数据,执行 keywords.py 脚本后,输出关键词文件在 data 目录下。

mining-keywords's People

Contributors

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