Skip to content
forked from uhh-lt/targer

A web application tagging and retrieval of arguments in text

License

Notifications You must be signed in to change notification settings

webis-de/targer

 
 

Repository files navigation

GitHub Actions Docker Hub frontend tags Docker Hub frontend Docker Hub backend tags Docker Hub backend

TARGER: Neural Argument Mining at Your Fingertips

This page contains code of the web application and web service based on the neural argument tagger. You can enter some text in the input box and detect arguments in it with one of the pre-trained neural models for argument mining.

More specifically, this repository shares code and data related to the following demo paper:
Artem Chernodub, Oleksiy Oliynyk, Philipp Heidenreich, Alexander Bondarenko, Matthias Hagen, Chris Biemann, and Alexander Panchenko (2019): TARGER: Neural Argument Mining at Your Fingertips. In Proceedings of the 57th Annual Meeting of the Association of Computational Linguistics (ACL 2019). Florence, Italy.

If you use the demo or would like to refer to it, please cite the paper mentioned above. You can use the following BibTeX information for citation:

@InProceedings{chernodub:2019,
  author =                {Artem Chernodub and Oleksiy Oliynyk and Philipp Heidenreich and Alexander Bondarenko and Matthias Hagen and Chris Biemann and Alexander Panchenko},
  booktitle =             {57th Annual Meeting of the Association for Computational Linguistics (ACL 2019)},
  editor =                {{Martha R.} {Costa-juss{\`a}} and Enrique Alfonseca},
  ids =                   {bondarenko:2019b},
  month =                 jul,
  pages =                 {195-200},
  publisher =             {Association for Computational Linguistics},
  site =                  {Florence, Italy},
  title =                 {{TARGER: Neural Argument Mining at Your Fingertips}},
  url =                   {https://www.aclweb.org/anthology/P19-3031},
  year =                  2019
}

Below you will find instructions on how to run the TARGER web application and its API locally (using Docker). Alternatively you can just access the online demo though web interface or using API.

The web application relies on a neural tagging library based on the PyTorch framework. You may also find this library useful on its own, e.g., for training sequence taggers for argument mining, part of speech tagging, or named entity recognition. The library is taking CoNLL files as input, is easy to use, and has a minimal number of dependencies. Though the library lives in a separate repository, it is also part of the TARGER project. So if you are using the library, please also cite the paper mentioned above. For detailed documentation about the tagging library refer to its repository.

Quick setup with Docker

  1. Clone this repository:

    git clone https://github.com/webis-de/targer && cd targer
  2. Download pre-trained model files to the models directory:

    wget https://files.webis.de/data-in-production/data-research/acqua/targer/models/ \
      --recursive --level=1 \
      --no-directories --no-host-directories \
      --accept=h5,hdf5 --directory-prefix=models
  3. Run the demo using Docker:

    docker-compose up
  4. To enable the search tab, change es_host, es_port, and es_index in config.ini to your cluster and index.

  5. Access the frontend at localhost:6001 and the backend REST-like API at localhost:6000.

Documentation

Here you can find more detailed documentation of the system architecture, installation, and usage:

License

This repository is released under the the MIT license.

Code in this repository is based on uhh-lt/targer and parts of the frontend are based on displacy-ent, both are licensed under the MIT license.

About

A web application tagging and retrieval of arguments in text

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 48.3%
  • Python 36.2%
  • CSS 7.4%
  • HTML 7.2%
  • Dockerfile 0.9%