Keywordanalyz
This script analyzes language and keywords in a given text.
How to use
After you cloned the repository and installed the needed packages with poetry (using poetry install), you can use the script like the following:
import keywordanalyz
kw = keywordanalyz.TextAnalyser(maximum_keywords=10)
# You can also specify the length of the keywords using max_n_gram_size (defaults to 3)
text = "Global warming is a significant issue that has been a concern for many years."
print(kw.analyse(text))
# Output: {'language': 'en', 'keywords': [('Global warming', 0.015380821171891606), ('significant issue', 0.02570861714399338), ('Global', 0.09568045026443411), ('years', 0.09568045026443411), ('warming', 0.15831692877998726), ('significant', 0.15831692877998726), ('issue', 0.15831692877998726), ('concern', 0.15831692877998726)]}
# You can also set the language of the text:
print(kw.analyse(text, language="en"))
# Output is the same as before
Metadata
Release files for keywordanalyz 0.2.0
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 | |
|---|---|---|---|---|
| keywordanalyz-0.2.0.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| keywordanalyz-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / keywordanalyz-0.2.0.tar.gz
| Download URL | keywordanalyz-0.2.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d17ab751d2e015681a3e70bc8810a6840fb7fcdfed8deb06c3a911152121065
|
|
BLAKE2b-256 checksum How to use checksums |
050b084b9b145b008914b66f1f9744e1865848956b11834dd775b75be7f887fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.5 Linux/6.15.4-1-default
|
Release files / keywordanalyz-0.2.0-py3-none-any.whl
| Download URL | keywordanalyz-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ee2d66a346a26704e932e83eea755e1171276baf453f494db85ceaff42efa86
|
|
BLAKE2b-256 checksum How to use checksums |
e448077782c9b9620800ec299c7cc65206f1c24003ca0efc9a5b95a66a44c382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.5 Linux/6.15.4-1-default
|
Security for keywordanalyz 0.2.0
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.