pyLDAvis实现LDA结果可视化时报错OSError:invalid argument

时间:2025-04-09 07:33:56
求助一下大家,我已经找到pyldavis的源码路径,但是点进去看并没有看到类似于def show这一行代码,咋办啊?我的源码内容如下:
# -*- coding: utf-8 -*-
"""
Topic Models (. LDA) visualization using D3
=============================================

Functions: General Use
----------------------
:func:`prepare`
transform and prepare a LDA model's data for visualization

:func:`prepared_data_to_html`
convert prepared data to an html string

:func:`show`
launch a web server to view the visualization

:func:`save_html`
save a visualization to a standalone html file

:func:`save_json`
save the visualization JSON data of to a file


Functions: IPython Notebook
---------------------------
:func:`display`
display a figure in an IPython notebook

:func:`enable_notebook`
enable automatic D3 display of prepared model data in the IPython notebook.

:func:`disable_notebook`
disable automatic D3 display of prepared model data in the IPython notebook.
"""