TextRank4ZH
TextRank4ZH copied to clipboard
高版本的python环境无法运行此代码
错误如下:
AttributeError: module 'networkx' has no attribute 'from_numpy_matrix'
高版本python环境难以降级networkx,所以 使用nx.from_numpy_array 代替 from_numpy_matrix
修复后效果: