About

Simple Transformers is a Natural Language Processing (NLP) library designed to simplify the usage of Transformer models without having to compromise on utility. It is built on the amazing work of Hugging Face and their Transformers library.

Install Simple Transformers

Why Simple Transformers?

Simple Transformers is designed around the way a person will typically use a Transformers model. At the highest level, Simple Transformers is branched into common NLP tasks such as text classification, question answering, and language modeling. Each of these tasks have their own task-specific Simple Transformers model. While all of the task-specific models maintain a consistent usage pattern (initialize, train, evaluate, predict), this separation allows the freedom to adapt the models to their specific use case. To list but a few of the benefits;

  • Input data formats are optimized for the task
  • Outputs are clean and ready-to-use for the task with minimal to no post-processing required
  • Unique configuration options for each task, while sharing a large, common base of configuration options across all tasks
  • No boilerplate code attempting to squeeze together things that don’t fit (Simple Transformers scripts rarely need to be longer than a few lines)
  • Common sense defaults to get started quickly, so that you can configure as little or as much as you want to

Most of the time, you’ll find that you only need to change the data files when switching between projects. This also means that Simple Transformers scripts are clear and readable, even to people unfamiliar with Transformers. If you are just starting out with Natural Language Processing, or if you are coming from a different field, this should help to get you up and running quickly without being overwhelmed.

In short, Simple Transformers gives you everything you need for your Transformer-based research, project, or product, and then gets out of your way.

Happy transforming!


Credits

Tools and Libraries

Docs Theme


Donations and Support

If you find Simple Transformers helpful, please consider becoming a Patron!

Become a Patron!


Simple Transformers is developed, maintained, and updated by Thilina Rajapakse with the help of all these wonderful contributors!