主题识别模型
Project description
pyTopicModel
使用Gensim框架,根据摘要(abstract)和标题(title)来实现主题算法
1、下载
pip install pyunit-topicmodel
2、使用
> topic -h
usage: 主题模型
输入主题模型需要的参数
positional arguments:
{train,predict} 选择程序模式
optional arguments:
-h, --help show this help message and exit
-d D 保存结果的文件夹
训练:
训练模型参数
-p P 加载分析的数据路径
-a A 摘要列名
-t T 标题列名
-r R R 主题数取值范围:至少是1
预测:
预测模型参数
-k K 预测主题数
3、训练模型
topic train -p 专利-医学其他领域.xlsx -a abo -t tio -d data -r 10 67
4、预测LDA
topic predict -d data -k 40
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyunit-topicmodel-1.0.1.tar.gz
(12.6 kB
view hashes)
Built Distribution
Close
Hashes for pyunit_topicmodel-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 208d1bc92058f6816ef0df21543476263b7ab33e67493b2f1871fb1cb0c089f4 |
|
MD5 | 98b2eef3e182b53da5b0badef25cb28a |
|
BLAKE2b-256 | 66e92c8eb1742c9b08380e7789753e44f10f308c5d65f9747c70473040044a51 |