Skip to main content

A keyword analyser which uses YAKE and Lingua

Project description

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)
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keywordanalyz-0.2.0rc1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keywordanalyz-0.2.0rc1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file keywordanalyz-0.2.0rc1.tar.gz.

File metadata

  • Download URL: keywordanalyz-0.2.0rc1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.5 Linux/6.15.4-1-default

File hashes

Hashes for keywordanalyz-0.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 7be55f18c0eadb94e2267b60d64acd6d2864bf6040c9813da2622f59f568771f
MD5 0c12abab067751a07e8f3c6905a9a52d
BLAKE2b-256 b4891e9572095374920f37d220d941874ccc49049adfb0d45b3d43a9a691be27

See more details on using hashes here.

File details

Details for the file keywordanalyz-0.2.0rc1-py3-none-any.whl.

File metadata

  • Download URL: keywordanalyz-0.2.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.5 Linux/6.15.4-1-default

File hashes

Hashes for keywordanalyz-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 02065f402d4ed4d8df6738f2d509ca8b041c7638d824ab8a08e8b392358a3cf8
MD5 1c709939e3f31a4b2f2d1dcffe46f10a
BLAKE2b-256 97a129ad062c6126b484de2355438e83fadc7a956c5a4959261a2084250ffb25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page