You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UserWarning: `as_target_tokenizer` is deprecated and will be removed in v5 of Transformers. You can tokenize your labels by using the argument `text_target` of the regular `__call__` method (either in the same call as your input texts if you use the same keyword arguments, or in a separate call.
warnings.warn(
第十章:翻译任务中提到的默认分词器编码设定采用的上下文管理器
as_target_tokenizer()
即将被废弃在当前版本的transformer中使用
as_target_tokenizer()
虽然还能够正常运行,但将会给出一个warning提示该API将会在下一个大版本中被移除huggingface官方推荐的做法为改用
text_target
参数进行编码,在官方文档中有详细的注解因此个人推荐将原文的表述更改为
The text was updated successfully, but these errors were encountered: