transformers/examples/tensorflow
Matt 379f649434
TF summarization example (#12617)
* Adding a TF summarization example

* Style pass

* Style fixes

* Updates for review comments

* Adding README

* Style pass

* Remove unused import
2021-07-12 15:58:38 +01:00
..
benchmarking Examples reorg (#11350) 2021-04-21 11:11:20 -04:00
language-modeling Fix group_lengths for short datasets (#12558) 2021-07-08 07:23:41 -04:00
multiple-choice remove extra white space from log format (#12360) 2021-06-25 13:20:14 -07:00
question-answering Fix copies 2021-06-28 12:26:40 -04:00
summarization TF summarization example (#12617) 2021-07-12 15:58:38 +01:00
text-classification remove extra white space from log format (#12360) 2021-06-25 13:20:14 -07:00
token_classification NER example for Tensorflow (#12469) 2021-07-05 15:42:18 +01:00
README.md Move old TF text classification script to legacy (#11361) 2021-04-21 17:36:18 +01:00

Examples

This folder contains actively maintained examples of use of 🤗 Transformers using the TensorFlow backend, organized along NLP tasks. It is under construction so we thank you for your patience!

Files containing tf such as run_tf_glue.py are the old-style files that will be rewritten very soon! Files without this such as run_text_classification.py are the newer ones. This message will be removed when the revamp is complete.

The Big Table of Tasks

Here is the list of all our examples:

  • with information on whether they are built on top of Keras (if not, they still work, they might just lack some features),
  • whether or not they leverage the 🤗 Datasets library.
  • links to Colab notebooks to walk through the scripts and run them easily,
Task Example datasets Keras support 🤗 Datasets Colab
language-modeling WikiText-2 - - -
multiple-choice SWAG - - -
question-answering SQuAD - - -
summarization XSum - - -
text-classification GLUE - - -
text-generation n/a - n/a -
token-classification CoNLL NER - - -
translation WMT - - -