if __name__ == '__main__':
run = MAIN('tf-idf', 'test.txt')
keywords = run.main()
print(keywords)
运行run.py文件 命令:python run.py 直接返回所提取的关键字
tf-idf原理介绍连接: 关键词提取/关键字提取之TF-IDF算法:https://www.cnblogs.com/Richer01/p/10089136.html
if __name__ == '__main__':
run = MAIN('tf-idf', 'test.txt')
keywords = run.main()
print(keywords)
运行run.py文件 命令:python run.py 直接返回所提取的关键字
tf-idf原理介绍连接: 关键词提取/关键字提取之TF-IDF算法:https://www.cnblogs.com/Richer01/p/10089136.html