Skip to content

[Question]: from utils import SVOInfo, 而SVOInfo根本不存在! #6462

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

Closed
520jefferson opened this issue Jul 21, 2023 · 1 comment
Closed
Assignees
Labels
question Further information is requested triage

Comments

@520jefferson
Copy link

520jefferson commented Jul 21, 2023

请提出你的问题

from paddlenlp import Taskflow

ddp = Taskflow("dependency_parsing")

from utils import SVOInfo

texts = ["9月9日上午纳达尔在亚瑟·阿什球场击败俄罗斯球员梅德韦杰夫", "2月8日谷爱凌夺得北京冬奥会第三金"]
results = ddp(texts)

###抽取句子中的SVO(主谓宾)结构化信息
svo_info = []
for result in results:
svo_info.append(SVOInfo(result).parse())

for i in range(len(texts)):
print("原文本:", texts[i])
print("包含的主谓宾结构:", svo_info[i])

代码见:https://aistudio.baidu.com/aistudio/projectdetail/6561820?forkThirdPart=1

@520jefferson 520jefferson added the question Further information is requested label Jul 21, 2023
@w5688414
Copy link
Contributor

w5688414 commented May 7, 2024

应该在那个项目里面,另外,您的项目链接打不开,无法查看。

@paddle-bot paddle-bot bot closed this as completed May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triage
Projects
None yet
Development

No branches or pull requests

3 participants