Giter Site home page Giter Site logo

dimitrymindlin / argument-aspect-corpus-v1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leibniz-hbi/argument-aspect-corpus-v1

0.0 0.0 0.0 2.46 MB

Experiment code to the paper "Boundary Detection and Categorization of Argument Aspects via Supervised Learning" presented at the the 9th Workshop on Argument Mining 2022

License: MIT License

Python 100.00%

argument-aspect-corpus-v1's Introduction

Dataset and experiments for the COLING2022 Argument Mining Workshop Paper "Boundary Detection and Categorization of Argument Aspects via Supervised Learning"

This repository contains code and data for the paper Argument Mining Workshop Paper Boundary Detection and Categorization of Argument Aspects via Supervised Learning presented during the 9th Workshop on Argument Mining at COLING2022.

The Argument Aspect Corpus v1

In the datasets folder, you can find three files with connl formatted data for each topic that we have described in the paper. In the experiments folder are test confgurations for reproducing the papers results. You can inspect the config files to see hyperparameters and the models that we have used. This repository may also be a starting point to experiment with argument aspect with other models or hyperparameters You can replace models with other available models from huggingface.

The Corpus is also available on Zenodo.

Installation

you need pipenv for dependency installation. Then, run pipenv sync in order to create the environment. Note: We needed a non-default pytorch version for compatability issues with our GPU, so there's a custom source in the pipfile for pytorch. Familiarize yourself with your GPU and how to install torch and cuda for it. The code needs a cuda-compatible GPU in order to run.

Run experiment and get results

Start a shell in your virtual environment using pipenv shell before you use any commands.

In the experiments folder, you find sub-folder for all experiments you need to run in order to reproduce our results, with a prefix for the coresponding dataset. run the experiments using

python run_experiment.py run experiments/<foldername>

Experiments can take a long time, depending on your GPU.

Note: There's an issue with FLAIR regarding data pair evaluation, which we fixed locally. You need to replace <your_home_directory>/.local/share/virtualenvs/argument-aspect-corpus-v1-XXXXXXXX/lib/python3.9/site-packages/flair/data.py with the file from this repository if you get an error saying: AttributeError: 'DataPair' object has no attribute 'to_original_text'

You can get evaluations of the models using

python run_experiment.py results experiments/<foldername>

For Sentence prediction and nervaluate use

python sentence_predictions.py report experiments/<foldername>

and

python sentence_predictions.py nervaluate experiments/<foldername>

Citation

Please cite our paper when using this repository.

Mattes Ruckdeschel and Gregor Wiedemann. 2022. Boundary Detection and Categorization of Argument Aspects via Supervised Learning. In Proceedings of the 9th Workshop on Argument Mining, pages 126โ€“136, Online and in Gyeongju, Republic of Korea. International Conference on Computational Linguistics.

argument-aspect-corpus-v1's People

Contributors

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