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
/home/wiggin/miniconda3/envs/paddle_env/lib/python3.8/site-packages/_distutils_hack/__init__.py:26: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
[2024-07-01 23:27:22,616][ WARNING] - if you run ring_flash_attention.py, please ensure you install the paddlenlp_ops by following the instructions provided at https://github.com/PaddlePaddle/PaddleNLP/blob/develop/csrc/README.md
Traceback (most recent call last):
File "extract.py", line 5, in <module>
ie = Taskflow('information_extraction', schema=schema)
File "/home/wiggin/PaddleNLP/paddlenlp/taskflow/taskflow.py", line 809, in __init__
self.task_instance = task_class(
File "/home/wiggin/PaddleNLP/paddlenlp/taskflow/information_extraction.py", line 538, in __init__
self._construct_tokenizer()
File "/home/wiggin/PaddleNLP/paddlenlp/taskflow/information_extraction.py", line 595, in _construct_tokenizer
self._tokenizer = AutoTokenizer.from_pretrained(
File "/home/wiggin/PaddleNLP/paddlenlp/transformers/auto/tokenizer.py", line 223, in from_pretrained
raise ValueError("use_fast is deprecated")
ValueError: use_fast is deprecated
稳定复现步骤 & 代码
extract.py 如下:
# 信息抽取
from pprint import pprint
from paddlenlp import Taskflow
schema = ['时间', '选手', '赛事名称'] # Define the schema for entity extraction
ie = Taskflow('information_extraction', schema=schema)
pprint(ie("2月8日上午北京冬奥会自由式滑雪女子大跳台决赛中中国选手谷爱凌以188.25分获得金牌!"))
运行出错如上所述。
The text was updated successfully, but these errors were encountered:
软件环境
重复问题
错误描述
稳定复现步骤 & 代码
extract.py
如下:运行出错如上所述。
The text was updated successfully, but these errors were encountered: