Giter VIP home page Giter VIP logo

ke's Introduction

Keyphrase Extraction

2021 Social Network and Public Opinion Processing

Paper recurrence: EMNLP2016 paper Keyphrase Extraction Using Deep Recurrent Neural Networks on Twitter

Rewritten on the basis of Source codes by PyTorch implementation & Modified tensorflow implementation

Preparation

You may need to prepare the pre-trained word vectors (or not).

Details

Joint RNN model

  • data: Dataset

  • checkpoints: Store the parameters obtained from model training

  • main.py: Main program (tensorflow implementation)

  • main_v2.py: Main program (PyTorch with 2 separate RNN layers)

  • main_v2_cell.py: Main program (PyTorch with 2-layer RNNCell)

  • model.py: Defined the joint-rnn model (tensorflow)

  • model_v2.py: Defined the joint-rnn model (PyTorch)

  • bi_lstm_model.py: Use bidirectional lstm instead of rnn (part of the code has not been modified, if you want to run, please modify it according to the format of model.py first)

  • load.py: Load the dataset

  • tools.py: Some utility functions

Requirement

  • tensorflow 2.2.0 + tensorlayer
  • PyTorch

Run

python data/data_process.py
python main.py  // original tensorflow
python main_v2.py  // PyTorch

ke's People

Contributors

tegmier avatar

Watchers

 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.