Documentation code sample fixes (#21302)

* Fixed the following:
pipe -> pipeline
out in pipe(data()) is a list of dict, not a dict

* Fixed the TypeError: __init__() missing 1 required positional argument: 'key'

* Added a tip: code sample requires additional libraries to run

* Fixed custom config's name

* added seqeval to the required libraries

* fixed a missing dependency,
fixed metric naming,
added checkpoint to fix the datacollator

* added checkpoint to fix the datacollator,
added missing dependency
This commit is contained in:
Maria Khalusova
2023-01-25 11:33:39 -05:00
committed by GitHub
parent 015443f42b
commit 238449414f
5 changed files with 33 additions and 19 deletions

View File

@@ -32,7 +32,7 @@ See the token classification [task page](https://huggingface.co/tasks/token-clas
Before you begin, make sure you have all the necessary libraries installed:
```bash
pip install transformers datasets evaluate
pip install transformers datasets evaluate seqeval
```
We encourage you to login to your Hugging Face account so you can upload and share your model with the community. When prompted, enter your token to login: