Skip to main content

Utils to run multiple choice question answering with huggingface transformers

Project description

mc_transformers

https://img.shields.io/pypi/v/mc_transformers.svg https://img.shields.io/travis/geblanco/mc_transformers.svg Documentation Status

Code to run experiments over Multiple Choice QA with huggingface/transformers. A big part of the code comes from huggingface/transformers, so its license may apply (Apache v2).

Code

  • mc_transformers.py: Code to train/eval/test models over any collection with transfomers

  • utils_mc.py: Contains processors specific to each MC QA collection (RACE, SWAG, EntranceExams…)

Why

As I experiment with more MC collection and training modes (i.e.: tpu), support for more collections or more models is required. Instead of forking the whole transformers library I do it here.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2020-07-23)

  • First release on PyPI.

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

mc_transformers-0.1.11.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

mc_transformers-0.1.11-py2.py3-none-any.whl (22.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mc_transformers-0.1.11.tar.gz.

File metadata

  • Download URL: mc_transformers-0.1.11.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for mc_transformers-0.1.11.tar.gz
Algorithm Hash digest
SHA256 89e11b10045c49910bbc393cac19362090dae2cbd3b518691ba8185dc900cab6
MD5 8408181f775fcb0fe80e105eaa0e9423
BLAKE2b-256 e767011d066706a165b0ffcedc6d4720f7a01942764de81a891c4d8c3341eb5f

See more details on using hashes here.

File details

Details for the file mc_transformers-0.1.11-py2.py3-none-any.whl.

File metadata

  • Download URL: mc_transformers-0.1.11-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for mc_transformers-0.1.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d48a163bf3cb9ff3ee9da3fcf9139be7f291b561f72c9028b420b58be222aae5
MD5 d817e208408c6fe404a05de682fee42a
BLAKE2b-256 e25848799bca23b3d9e4726d6fdc33b8ce27acfe7ea6e829721f03d3c32e2d2f

See more details on using hashes here.

Supported by

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