Skip to main content

a wrapper for the huggingface transformer libraries

Project description

SMaBERTa

This repository contains the code for SMaBERTa, a wrapper for the huggingface transformer libraries. It was developed by Zhanna Terechshenko and Vishakh Padmakumar through research at the Center for Social Media and Politics at NYU.

Setup

To download the repository, run

git clone https://github.com/SMAPPNYU/SMaBERTa.git

To install the dependencies for this repo, run

cd SMaBERTa
pip install -r requirements.txt
python setup.py install

Repository Contents

smaberta.py - main file.

For the example on how to use the model for the classification task follow Tutorial.ipynb.

For language model finetuning follow test_finetuning.py.

Acknowledgements

Code for this project was adapted from version 0.6 of https://github.com/ThilinaRajapakse/simpletransformers

Zhanna Terechshenko and Vishakh Padmakumar contributed to the software writing, implementation, and testing.

Megan Brown contributed to documentation and publication.

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

smaberta-0.0.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

smaberta-0.0.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file smaberta-0.0.1.tar.gz.

File metadata

  • Download URL: smaberta-0.0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for smaberta-0.0.1.tar.gz
Algorithm Hash digest
SHA256 70e202368af40ead742daf1c5eb8c0e74753fbcd4e4d958f4682aaf80f684df2
MD5 2d1ec7aec50bf2686f4716408d3540f7
BLAKE2b-256 26141cb683d29984c9673fbded99eeef8a85d757a75a361d0a1f84cbd0120ba2

See more details on using hashes here.

File details

Details for the file smaberta-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: smaberta-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for smaberta-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfbac633da6a9d62f544c104f0c386da0dff0f2011fa5a054044659355d9ed68
MD5 287dffbf549b2dc5f195f89b39858c58
BLAKE2b-256 ec46eec697fcccf9a354ce93072604038a4797c06da9c7c7a44421f9b4d8168c

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