Skip to main content

Keywords extractor with Graph and BERT methods

Project description

KinGBERT

KinGBERT(Keywords in Graph with BERT) is a minimal keyword extraction library with graph methods to extract keywords. Use Sentence-BERT embedding for founding the most significant keywords.

Installation

KinGBERT is available on PyPI.

pip install KinGBERT

To clone this repository, run

git clone https://github.com/sokolheavy/KinGBERT.git

How to use

We use the KinGBERTExtractor class, which can be configured to generate keywords from text.

text = """What is data science?
    Data science is a multidisciplinary approach to extracting actionable insights from the large and ever-increasing volumes of data collected and created by today’s organizations. 
    Data science encompasses preparing data for analysis and processing, performing advanced data analysis, and presenting the results to reveal patterns and enable stakeholders to draw informed conclusions.
    Data preparation can involve cleansing, aggregating, and manipulating it to be ready for specific types of processing. Analysis requires the development and use of algorithms, analysis and AI models. It’s driven by software that combs through data to find patterns within to transform these patterns into predictions that support business decision-making. The accuracy of these predictions must be validated through scientifically designed tests and experiments. And the results should be shared through the skillful use of data visualization tools that make it possible for anyone to see the patterns and understand trends."""

Just extract 5 keywords from the text.

extractor = KinGBERTExtractor()
keywords = extractor.generate(doc)
>>> from KinGBERT import KinGBERTExtractor
>>> extractor = KinGBERTExtractor(top_k=5)
>>> keywords = extractor.generate(text)
>>> print(keywords)
['data science', 'insights', 'analysis', 'experiments', 'algorithms']

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

KinGBERT-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

KinGBERT-0.0.2-py2-none-any.whl (5.4 kB view details)

Uploaded Python 2

File details

Details for the file KinGBERT-0.0.2.tar.gz.

File metadata

  • Download URL: KinGBERT-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for KinGBERT-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9c2dbf62e02152b9d14d4fda716f9584c83c5a54dfb10296cf705e08ebaa0476
MD5 e50a702d1b6008bab93b39471a9e9963
BLAKE2b-256 c635aed9e1e9d3b5718dcb7e7f1965cb2f522b286b1c3f2ccee1774ba498128c

See more details on using hashes here.

File details

Details for the file KinGBERT-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: KinGBERT-0.0.2-py2-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for KinGBERT-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 53196f38803f3e9d0e1d7903ddb2bd722d225488ea74082cd70e5b3acd5cf258
MD5 9af6600f3593ee5383baa53ec5d8e282
BLAKE2b-256 5591f21fa4d09ca227d84207f50924327f836de2b7ba45bdcd0a05009579e785

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