{"library":"pytextrank","title":"PyTextRank","description":"Python implementation of TextRank as a spaCy pipeline extension for graph-based natural language work including phrase extraction, keyword extraction, and knowledge graph extraction. Current version 3.3.0, requires Python >=3.7, follows spaCy's extension pattern. Development is active but releases are infrequent.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pytextrank"],"cli":null},"imports":["from spacy.lang.en import English\nimport spacy\nnlp = spacy.load('en_core_web_sm')\nnlp.add_pipe('pytextrank')\nfrom pytextrank import PyTextRank"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import spacy\nimport pytextrank\n\nnlp = spacy.load('en_core_web_sm')\nnlp.add_pipe('pytextrank')\n\ntext = \"Natural language processing enables computers to understand human language. It is used in chatbots and translation.\"\ndoc = nlp(text)\n\nfor phrase in doc._.phrases:\n    print(phrase.text, phrase.rank, phrase.count)","lang":"python","description":"Loads spaCy model, adds PyTextRank pipeline, processes text, and prints extracted keyphrases with rank and count.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}