TextRank4ZH icon indicating copy to clipboard operation
TextRank4ZH copied to clipboard

高版本的python环境无法运行此代码

Open Gracdjd opened this issue 1 year ago • 0 comments

错误如下: AttributeError: module 'networkx' has no attribute 'from_numpy_matrix' image

高版本python环境难以降级networkx,所以 使用nx.from_numpy_array 代替 from_numpy_matrix 修复后效果: image

Gracdjd avatar Dec 01 '23 15:12 Gracdjd