You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
输出日志如下:
[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.
[]
请教大佬,我的最后输出结果怎么是空列表呢?该怎么改?
The text was updated successfully, but these errors were encountered:
我的脚本如下:
#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.
[]
请教大佬,我的最后输出结果怎么是空列表呢?该怎么改?
The text was updated successfully, but these errors were encountered: