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.1.tar.gz (2.6 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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keywordanalyz-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 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.1.tar.gz
Algorithm Hash digest
SHA256 2c606c1582b986862c3db8055ddbdde78a161f3009836a5ffcca23d93f491d47
MD5 83f99f401a0c57bc9d7addac2bad76af
BLAKE2b-256 1463e575fc5d3d37b30b137ecd927d0ae058a887f569c7679b411e3c1c06eda1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keywordanalyz-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d20f9d61dadcf9aadb9bac73acca13c4375afe278573a482c1daafa1065704f9
MD5 ada7663912b09935e94a5f3f5ad10029
BLAKE2b-256 88468b7daa12b83a81526ca5b08d882ec3281f42c438923cff1b47b2951df014

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