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

使用slda输出为空 #117

Open
stay-leave opened this issue Jun 23, 2022 · 0 comments
Open

使用slda输出为空 #117

stay-leave opened this issue Jun 23, 2022 · 0 comments

Comments

@stay-leave
Copy link

我的脚本如下:
#coding='utf-8'
import paddlehub as hub

slda_weibo = hub.Module(name="slda_weibo")

topic_dist = slda_weibo.infer_doc_topic_distribution("说点好对 一个ip地址这么容易被看见 真的需要帮助的时候又找不到了")
print(topic_dist)

输出日志如下:
[2022-06-24 00:30:28,337] [ WARNING] - The _initialize method in HubModule will soon be deprecated, you can use the init() to handle the initialization of the object
[2022-06-24 00:30:28,338] [ INFO] - Loading SLDA config.
[2022-06-24 00:30:28,575] [ INFO] - Loading word topic.
100%|████████████████████████████████████████████████████████████████████████| 175347/175347 [00:20<00:00, 8549.97it/s]
[2022-06-24 00:30:49,351] [ INFO] - Model Info: #num_topics=2000 #vocab_size=175347 alpha=0.100000 beta=0.010000
[2022-06-24 00:30:49,352] [ INFO] - Construct alias table for alias sampling method.
100%|████████████████████████████████████████████████████████████████████████| 175347/175347 [00:38<00:00, 4547.53it/s]
[2022-06-24 00:31:28,085] [ WARNING] - The _initialize method in HubModule will soon be deprecated, you can use the init() to handle the initialization of the object
W0624 00:31:28.119545 10160 analysis_predictor.cc:1694] Deprecated. Please use CreatePredictor instead.
[2022-06-24 00:31:31,333] [ INFO] - Finish initialization.
[]
请教大佬,我的最后输出结果怎么是空列表呢?该怎么改?

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

1 participant