Skip to main content

Unsupervised automatic keyphrase extraction

Project description

SemCluster

Unsupervised Automatic Keyphrase Extraction Using Affinity Propagation

Installation

  1. Clone this Repo and its submodules using

    git clone --recurse-submodules git@code.siemens.com:palle.klewitz/semcluster.git
    
  2. Install esa-wiki

    cd ESA-Wiki
    python3 setup.py sdist bdist_wheel
    pip3 install dist/wiki_esa-0.0.1-py3-none-any.whl
    cd ..
    
  3. Install semcluster

    python3 setup.py sdist bdist_wheel
    pip3 install dist/semcluster-0.0.1-py3-none-any.whl
    

Usage

from semcluster import SemClusterKeywordExtractor

text = "The quick brown fox jumps over the lazy dog."

# Instantiate extractor
e = SemClusterKeywordExtractor()

# Extract phrases
keyphrases = e.extract_keyphrases(text, seed_threshold=0.7, verbose=True)

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

semcluster-0.0.1.tar.gz (34.6 MB view hashes)

Uploaded source

Built Distribution

semcluster-0.0.1-py3-none-any.whl (35.1 MB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page