huggingface / huggingface/course
Errors in the notebook of chapter1 part 3
- Dominant language
- MDX
- Stars
- 4.2k
- Forks
- 1.4k
- Avg merge
- 13m
- Merged PRs (30d)
- 1
Description
As I was following this course, I encounter some error messages in the notebook :
## 1. Name entity recognition :
Original code :
```py
from transformers import pipeline
ner = pipeline("ner", grouped_entities=True)
ner("My name is Sylvain and I work at Hugging Face in Brooklyn.")
```
This leads to the following error : ```TypeError: TokenClassificationPipeline._sanitize_parameters() got an unexpected keyword argument 'grouped_entities'```
Suggested correction :
```py
from transformers import pipeline
ner = pipeline("ner", aggregation_strategy='simple')
ner("My name is Sylvain and I work at Hugging Face in Brooklyn.")
```
## 2. Summarization
This appears to be deprecated in transformers V5.
Either this example is to be removed, or done using text-generation, as recommended in the V5 migration guide.
## 3. Translation
This appears to be deprecated in transformers V5.
Either this example is to be removed, or done using text-generation, as recommended in the V5 migration guide.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.