cannot import name ‘TextKwargs‘ from ‘transformers.processing_utils‘
目录
报错代码:
测试代码:
报错:
cannot import name 'TextKwargs' from 'transformers.processing_utils'
报错代码:
from transformers.processing_utils import (TextKwargs,ProcessingKwargs,ProcessorMixin,
)
ok的版本:
transformers 4.45.1
测试代码:
python -c "from transformers.processing_utils import (TextKwargs,ProcessingKwargs,ProcessorMixin,)"