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

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.1.2.tar.gz (2.7 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.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file keywordanalyz-0.1.2.tar.gz.

File metadata

  • Download URL: keywordanalyz-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 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.1.2.tar.gz
Algorithm Hash digest
SHA256 d961196ee1eaa09e9e9c4b255fe845dc979d328a22d40bc658289268aa303eaa
MD5 1787ca0b4497a7fd4237bab7e1a9913b
BLAKE2b-256 d0f28c0fb96a744ea092bcfaf2c65aef7616ce6ccd980556f7a7aea77ef262bd

See more details on using hashes here.

File details

Details for the file keywordanalyz-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: keywordanalyz-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe7ce724b2a6a88cf056ede49ecfc9c808b10e7b9db451365748afbab74865ac
MD5 79156eab5fdd3bbd9a078c1195163f2f
BLAKE2b-256 4446658cd1f1b61e4b08c488098b515ae048d91eba7ea38b3f2b6aa344100893

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