Coder Social home page Coder Social logo

zhihucrawler's Introduction

Function

  • Crawl comments under zhihu answer, and form one round conversation , the answers are from collution"赞同超过1000的回答
  • Assign the emotion to each sentence in QA pairs using NLPCC emotion labeled data of weibo

Sample Data

the data is stored in the json format. it is a dictionary list, contains three field: "post" ,"res" for response, and the conversation id.

Requirement

  • zhihu_outh
  • torch
  • pandas
  • jieba
  • numpy

Usage

  • fill in you zhihu account in login.py and generate token.pkl.
  • run crawler.py to generate the conversation and run preprocessing.py to clean and format data.
  • download NLPCC 2017 weibo data and place it in ./data folder.
  • run Classify/cnn_pytorch.py to generate the emtion label for the sentences.

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.