Code Monkey home page Code Monkey logo

articlepairmatching's Introduction

Doc2Graph

We put the code for constructing Concept Interaction Graph and run experiments in our ACL 2019 submission here.

We also put the datasets here: Chinese News Same Event dataset (CNSE) and Chinese News Same Story dataset (CNSS).

Requirement

To run the code successfully, you will need (just install the most recent version)

  • Pytorch
  • Graph-tool

How to use

**Run experiments: ** Please go to src/models/CCIG, and run script.sh.

**Process data: ** Please go to src/models/CCIG/data/ and run feature_extractor.py.

Datasets: The CNSE dataset in the paper is in data/raw/event-story-cluster/same_event_doc_pair.txt, and the CNSS dataset is located in data/raw/event-story-cluster/same_story_doc_pair.txt.

I have uploaded the dataset to baidupan as well. You can download via: link:https://pan.baidu.com/s/1EDna1rspOceQUENprgXZFg password:nhzs

**CIG visualization: ** we put some figures of CIG with community detection in the folder ``CIG visualization by graph-tool''.

Project Organization

├── LICENSE
├── README.md          <- The top-level README for developers using this project.
├── data
│
├── src                <- Source code for use in this .
   │
   └──models/CCIG         
       │
       ├── data     <- code for extract graph features 
       ├── util     <- code for some functions 
       ├── loader.py  <- code for loading graph features
       ├── main.py  <- main code for running models
       └── models   <- pytorch code for our model

articlepairmatching's People

Contributors

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