Skip to main content

No project description provided

Project description

Argument Components - Identification and Classification

This package provides a command line tool to find MajorClaims, Claims, and Premises on argumentative essays, as defined by Stab and Gurevych in their 2017 paper.

Inference

The tool AC-IaC takes one or more text files and finds MajorClaims, Claims, and Premises on them. The results are returned in Brat-Standoff-Format. If a directory is provided to the tool, it will recursively find all txt files in that and all the sub-directories. This input structure will then be rebuilt in the output. For the inference, a trained model needs to be provided. I may have the correct models available on Hugging-Face under my username Theoreticallyhugo, which you could use for quick and dirty testing. However, for proper use you need to train your own model, using the tool AC-IaC-train, as described in the training section. If you want to test how the files would be structured in the ouput, you can use the dry option.

Training

The tool AC-IaC-train uses the original dataset of essays, annotated by Stab and Gurevych to train the models needed for inference. Use AC-IaC-train -h to learn about the arguments that can be used.

use for inference

You always need to specify and ouput path, which will house the model files. If you have a Hugging-Face account, you can upload the models to Hugging-Face repos. This is recommended. If you don't want the models to be uploaded, set the corresponding option. Per default this tool will train both models, but it can be instructed to train just one of them.

use for validation

The tool supports setting a seed, the number of epochs, and running 5-fold-cross-validation. The evaluation data can be found in the output directory. The default number of epochs should always be good for use with inference.

dev-structure

  • command_line.py is the entry point for the module. AC-IaC and AC-IaC-train point to the functions inference and train_wrapper respectively.
  • ./inference/ is the directory that houses everything inference related
  • ./training/ is the directory that houses everything training related

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ac_iac-1.0.1.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ac_iac-1.0.1-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file ac_iac-1.0.1.tar.gz.

File metadata

  • Download URL: ac_iac-1.0.1.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.17

File hashes

Hashes for ac_iac-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cbb3813244f188681e58eaa6a6769630dd41865706a186f1b2a30decff1bbd2d
MD5 7e7e7577f7305b27625f58cfb662c748
BLAKE2b-256 419965de524a6830a2c4a798d322f7d61cde90fbb269ebdc28e4a930403dcf2c

See more details on using hashes here.

File details

Details for the file ac_iac-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ac_iac-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.17

File hashes

Hashes for ac_iac-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3afe3bfb6b4418519c75d2197e923df9cccf8eefc047e259304fae30e4a1c56c
MD5 e54439d8f800d8fd21fc243617c6c0c9
BLAKE2b-256 b59d94df896e532746b22083e5e4f9c6bc766dbd1d6b4aa62dd626ceb38ffd99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page