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
Metadata
Release files for pyunit-topicmodel 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyunit-topicmodel-1.0.2.tar.gz | 12.8 kB | Without provenance | Details for pyunit-topicmodel-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyunit_topicmodel-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for pyunit_topicmodel-1.0.2-py3-none-any.whl |
Total release size: 27.6 kB
Release files / pyunit-topicmodel-1.0.2.tar.gz
| Download URL | pyunit-topicmodel-1.0.2.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15e36d688fe23e9188df621de5a538d870627dcf3c4e8b4a709c2f000a5fb9fd
|
|
BLAKE2b-256 checksum How to use checksums |
9fc53e205101c59756ddfafa1533310e312b91d64b279eb6d880aef022d9ced1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / pyunit_topicmodel-1.0.2-py3-none-any.whl
| Download URL | pyunit_topicmodel-1.0.2-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4191add9dd09404e0f7cab2d2432543aa15a0940c01e81368ac82f027d54ed1
|
|
BLAKE2b-256 checksum How to use checksums |
fa85c14bbcbfe0bbdc9de212adf8ce34b9b04f93419f3c9c73bd6172f39af060
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for pyunit-topicmodel 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.