English | 简体中文
🔥2022.08.19: The v2.3.0 version is released 🎉
2022.02.18: Release models to HuggingFace PaddlePaddle Space
For more previous release please refer to PaddleHub Release Note
Wenxin Big Models | Stable_Diffusion series | Disco Diffusion series |
Include ERNIE-ViLG, ERNIE-ViL, ERNIE 3.0 Zeus, supports applications such as text-to-image, writing essays, summarization, couplets, question answering, writing novels and completing text。 | Supports functions such as text_to_image, image_to_image, inpainting, ACGN external service, etc. | Support Chinese and English input |
Input Audio | Recognition Result |
---|---|
|
I knocked at the door on the ancient side of the building. |
|
我认为跑步最重要的就是给我带来了身体健康。 |
# install paddlepaddle with gpu
# !pip install --upgrade paddlepaddle-gpu
# or install paddlepaddle with cpu
!pip install --upgrade paddlepaddle
# install paddlehub
!pip install --upgrade paddlehub
import paddlehub as hub
lac = hub.Module(name="lac")
test_text = ["今天是个好天气。"]
results = lac.cut(text=test_text, use_gpu=False, batch_size=1, return_tag=True)
print(results)
#{'word': ['今天', '是', '个', '好天气', '。'], 'tag': ['TIME', 'v', 'q', 'n', 'w']}
!hub serving start -m lac
The release of this project is certified by the Apache 2.0 license.
We welcome you to contribute code to PaddleHub, and thank you for your feedback.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。