explosion / explosion/spaCy

Bug[?]: ImportError after upgrading to transformers==5.0.0 and huggingface-hub==1.3.4

Open
#13,915 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
33.9k
Forks
4.7k
Avg merge
3m
Merged PRs (30d)
1

Description

File "C:\Users\**********\*********\venv\Lib\site-packages\spacy_transformers\data_classes.py", line 5, in
from transformers.tokenization_utils import BatchEncoding
ImportError: cannot import name 'BatchEncoding' from 'transformers.tokenization_utils' (unknown location)

- **spaCy version:** 3.8.11
- **Platform:** Windows-10-10.0.26100-SP0
- **Python version:** 3.11.4
- **Pipelines:** en_core_web_lg (3.8.0)
- spacy-transformers: 1.3.9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.