How to use the pytextrank.limit_keyphrases function in pytextrank

To help you get started, we’ve selected a few pytextrank examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fabric8-analytics / fabric8-analytics-stack-analysis / tagging_platform / helles / npm_tagger / pytextrank_textrank_scoring.py View on Github external
def get_key_phrases(path_stage2):
    """Get all found key phrases."""
    phrases = set([p for p in pytextrank.limit_keyphrases(
        os.path.join(PATH_PREFIX, path_stage2), phrase_limit=3)])
    return phrases

pytextrank

Python implementation of TextRank as a spaCy pipeline extension, for graph-based natural language work plus related knowledge graph practices; used for for phrase extraction of text documents.

MIT
Latest version published 10 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages