Git Product home page Git Product logo

conll2015_discourse's Introduction

A Refined Discourse Parser for CoNLL 2015 Shared Task

A Refined End-to-End Discourse Parser participated in CoNLL 2015 Shared Task is described in the paper A Refined End-to-End Discourse Parser by Jianxiang Wang and Man Lan.

Requirements

Usage

First, change the values of the following two variables in config.py:

  1. CWD: current working directory (absolute path).
  2. MALLET_PATH: mallet bin path (absolute path).

Such as:

CWD = "/Users/XXX/Documents/conll2015_discourse/"
MALLET_PATH = "/Users/XXX/Documents/mallet"

Then, run the parser using the command in terminal as required in the CoNLL 2015 Shared Task Official Blog:

python $input_dataset $input_run $output_dir
  • $input_dataset: the folder of the dataset to parse. The folder structure:

    $input_dataset/pdtb-parses.json

    $input_dataset/raw/...

  • $input_run: the folder that contains the model file or other resources. Here, simply set it to 'none' in our parser.

  • $output_dir: the folder that the parser will output 'output.json' to.

For example:

python parser.py data/conll15-st-03-04-15-dev none data

The parser will take the dataset under the 'data/conll15-st-03-04-15-dev' folder as input and generate a 'output.json' which contains the discourse relations parsed by the parser under the 'data' folder.

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.