Skip to content
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

paddlehub lac的python api #74

Closed
OpenWaygate opened this issue Jul 14, 2019 · 2 comments
Closed

paddlehub lac的python api #74

OpenWaygate opened this issue Jul 14, 2019 · 2 comments

Comments

@OpenWaygate
Copy link

No description provided.

@OpenWaygate
Copy link
Author

找了半天, 只有这个

import paddlehub as hub

lac = hub.Module(name="lac")
test_text = ["今天是个好日子", "天气预报说今天要下雨", "下一班地铁马上就要到了"]

inputs = {"text": test_text}
results = lac.lexical_analysis(data=inputs)

for result in results:
    print(result['word'])
    print(result['tag'])

没有更多吗?

@Steffy-zxf
Copy link
Contributor

目前PaddleHub Module Lac只支持预测,不支持FineTune。想了解下,您想用Lac做什么呢?如果是分词或词性标注的话,以上API就能实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants