-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 依存句法分析使用出错,提示LAC依赖,但是LAC已经安装 #9378
Comments
看起来是paddle版本过高导致,可以降低paddle版本到2.5版本 |
换到2.5版本后,解语不能用了,
句法分析报错
|
paddlepaddle和paddlenlp分别采用2.5.2,以及paddlepaddle采用2.5.2,paddleNLP采用2.6.1都会报错,目前安装在windows10上
|
是新装的还是以前装的,我现在是新装的不行,以前2.4的也可以
在 2024-11-08 10:22:02,"wawltor" ***@***.***> 写道:
我使用2.5.2的版本是可以正常运行的
default.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
软件环境
重复问题
错误描述
稳定复现步骤 & 代码
from paddlenlp import Taskflow
ddp = Taskflow("dependency_parsing", model="ddparser-ernie-gram-zh",use_pos=True)
运行之后,出现以下错误
Traceback (most recent call last):
File "D:\anaconda3\envs\py310\lib\site-packages\paddlenlp\taskflow\dependency_parsing.py", line 183, in init
from LAC import LAC
File "D:\anaconda3\envs\py310\lib\site-packages\LAC_init_.py", line 23, in
from .lac import LAC
File "D:\anaconda3\envs\py310\lib\site-packages\LAC\lac.py", line 28, in
import paddle.fluid as fluid
ModuleNotFoundError: No module named 'paddle.fluid'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "D:\anaconda3\envs\py310\lib\site-packages\paddlenlp\taskflow\taskflow.py", line 804, in init
self.task_instance = task_class(
File "D:\anaconda3\envs\py310\lib\site-packages\paddlenlp\taskflow\dependency_parsing.py", line 185, in init
raise ImportError("Please install the dependencies first, pip install LAC --upgrade")
ImportError: Please install the dependencies first, pip install LAC --upgrade
The text was updated successfully, but these errors were encountered: