Giter VIP home page Giter VIP logo

paragraph-level_implicit_discourse_relation_classification's People

Contributors

zeyudai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paragraph-level_implicit_discourse_relation_classification's Issues

run the code and preprocessing

In Readme you have two sections, one on how to run the code, and the second about data preprocessing. It is not clear to me. Should we preprocess the data first? Do you mention the preprocessing as an optional step? Thank you for the code!!

Evaluation Bugs

Hi, I think the process_label function is not correct (https://github.com/ZeyuDai/paragraph-level_implicit_discourse_relation_classification/blob/master/run_discourse_parsing.py#L142). Removing some labels will improve the accuracy and F1.

Here is an example:
pred = np.array([[1,0,0,0], [0,0,0,1]])

target = np.array([[1,0,1,0], [1,0,0,1]])

Then accuracy_score(target, pred) will return 0 and precision_recall_fscore_support(target, pred, average="macro") will return (0.5, 0.375, 0.41666666666666663, None).

After your processing, target will be changed to target = np.array([[1,0,0,0], [1,0,0,0]]). Then accuracy_score(target, pred) will return 1.0 and precision_recall_fscore_support(target, pred, average="macro") will return (0.5, 0.5, 0.5, None).

When I remove this processing function, the accuracy decreases around 3% and F1 decreases more than 1%.

This task is a multilabel classification problem. The standard evaluation tool can be found at https://github.com/attapol/conll15st/blob/master/scorer.py .

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.