Git Product home page Git Product logo

structureprediction18's Introduction

StructurePrediction18

Use of residual deep networks, ensemble learning, and attention for Argument Structure Prediction.

This code can be used to train a set of neural networks to jointly perform Link Prediction, Relation Classification, and Component Classification on Argument Mining corpora. Currently, 4 corpora are supported:

Such corpora are not included in this repository. Only mock files are present so as to indicate where to place the documents to run the code.

Results and citing

The results of the ResAttArg architecture (net_11 in the code) and the new results of the ResAtt architecture (net_7 in the code) are available as preprint Multi-Task Attentive Residual Networks for Argument Mining. Such preprint is available in the publication folder.

The first results of the ResAtt architectures have been published in Argumentative Link Prediction using Residual Networks and Multi-Objective Learning. Such models, along with the paper, are available in the Publications folder.

Please, if you use any of this material, cite our work both as:

@article{Galassi2021
  author    = {Andrea Galassi and
               Marco Lippi and
               Paolo Torroni},
  title     = {Multi-Task Attentive Residual Networks for Argument Mining},
  journal   = {CoRR},
  volume    = {abs/2102.12227},
  year      = {2021},
  url       = {https://arxiv.org/abs/2102.12227},
  archivePrefix = {arXiv},
  eprint    = {2102.12227},
}

and

@inproceedings{galassi-etal-2018-argumentative,
  title = "Argumentative Link Prediction using Residual Networks and Multi-Objective Learning",
  author = "Galassi, Andrea  and Lippi, Marco  and Torroni, Paolo",
  booktitle = "Proceedings of the 5th Workshop on Argument Mining",
  month = nov,
  year = "2018",
  address = "Brussels, Belgium",
  publisher = "Association for Computational Linguistics",
  url = "https://www.aclweb.org/anthology/W18-5201",
  doi = "10.18653/v1/W18-5201",
  pages = "1--10",
}

Pipeline and other files

To use this framework, follow this pipeline, using the -c option to specify the desired dataset (cdcp, rct, ukp, drinv).

  • dataframe_creator.py contains functions to process the textual and annotation files into dataframes.
  • glove_loader.py contains functions to tokenize words and create a file with pre-trained embeddings which are smaller than the original glove file.
  • embedder.py contains functions to map each string of the dataframe into a sequence of numbers, according to word positions in the glove file.
  • training.py contains functions to perform the training. The hyper-parameters are embedded in the code. Any change requires manually modify the "routine" functions.
  • evaluate_net.py contains functions to evaluate an already trained network. It offers additional options, among which the option -t to perform the token-wise evaluation.

Out of the pipeline:

  • print_dataset_details.py prints details regarding a dataset: statistics about the classes and the lists of the document ids for each split
  • networks.py contains neural network models
  • training_utils.py contains custom functions that will be used during the training

The GloVe vocabulary file, required for the use of the framework, is not included in this repository. Simply download it from the GloVe website and add it to the working directory. The name of the file must be 'glove.840B.300d.txt'.

structureprediction18's People

Contributors

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