We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
应该在那个项目里面,另外,您的项目链接打不开,无法查看。
Sorry, something went wrong.
wawltor
No branches or pull requests
请提出你的问题
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
The text was updated successfully, but these errors were encountered: