Code Monkey home page Code Monkey logo

discoling's Introduction

Project Title

Code for the AAAI paper: Linguistic Properties Matter for Implicit Discourse Relation Recognition: Combining Semantic Interaction, Topic Continuity and Attribution.

Prerequisites

Note that the code use python2.

sklearn
nltk

Getting Started

You may first need to configure the training data path: -train_path and testing data path: -test_path before you run this code. Here is an example: python autoNLP.py -evaluate_relation [the discourse relation you want to predict] -train_path [path/to/your/training/data] -test_path [path/to/your/testing/data] -log_path [path/to/save/logs] -confusionM_path [path/to/save/confusion/matrix]

Results

For example, if you do fourway prediction, you will see a output like this:

First you will see the features used by this prediction. ['FourWayExpansion', 'FourWayContingency', 'FourWayComparison', 'FourWayTemporal', 'arg1NegPure+Arg1SubjRepeat_Arg2andAttr2Rela', .... ]

Next the output will show the most informative features. The most efficient features are displayed in reverse order. -----------------------Most informative Features--------------------- Most Informative Features none-arg2NegPure+Arg2PrediRepeat_Arg1andAttr1Rela = None Compar : Tempor = 16.6 : 1.0 arg2NegPure+Arg2PrediRepeat_Arg1andAttr1Rela = 1 Compar : Tempor = 16.6 : 1.0

Final you will see the prediction result: P: 0.548148, R: 0.542125, F: 0.545120 P, R, F represent precision, recall and F1 score respectively.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

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.