{"library":"rake-nltk","title":"RAKE NLTK","description":"RAKE-NLTK is a Python implementation of the Rapid Automatic Keyword Extraction (RAKE) algorithm, leveraging the Natural Language Toolkit (NLTK). It's designed to extract key phrases from text by analyzing word frequency and co-occurrence. The library, currently at version 1.0.6 (released September 2021), provides a straightforward interface for keyword extraction and offers configuration options for tokenizers, stopwords, and ranking metrics. Its release cadence is infrequent, with the last major update in 2021.","language":"python","status":"active","last_verified":"Sun May 17","install":{"commands":["pip install rake-nltk"],"cli":null},"imports":["from rake_nltk import Rake"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import nltk\nnltk.download('stopwords')\nnltk.download('punkt')\n\nfrom rake_nltk import Rake\n\ntext = \"\"\"Compatibility of systems of diophantine equations, strict inequations, and nonstrict inequations are considered. Upper bounds for components of a minimal set of solutions and algorithms of construction of minimal generating sets of solutions for all types of systems are given. These criteria and the corresponding algorithms for constructing a minimal supporting set of solutions can be used in solving all the considered types of systems and systems of mixed types.\"\"\"\n\nr = Rake()\n\nr.extract_keywords_from_text(text)\nranked_phrases = r.get_ranked_phrases()\nranked_phrases_with_scores = r.get_ranked_phrases_with_scores()\n\nprint(\"Top 5 ranked phrases:\")\nfor phrase in ranked_phrases[:5]:\n    print(f\"- {phrase}\")\n\nprint(\"\\nTop 5 ranked phrases with scores:\")\nfor score, phrase in ranked_phrases_with_scores[:5]:\n    print(f\"- {phrase} (Score: {score:.2f})\")\n","lang":"python","description":"Initialize the Rake object (which uses NLTK stopwords and punctuation by default) and extract keywords from text. This example also shows how to download the necessary NLTK corpora.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-17","installed_version":"1.0.6","pypi_latest":"1.0.6","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.2,"avg_import_s":0.74,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.68,"mem_mb":17.8,"disk_size":"35.5M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.3,"import_time_s":0.51,"mem_mb":17.8,"disk_size":"36M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.04,"mem_mb":20.5,"disk_size":"40.6M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.1,"import_time_s":0.89,"mem_mb":20.5,"disk_size":"42M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.83,"mem_mb":19.6,"disk_size":"31.6M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.8,"import_time_s":0.82,"mem_mb":19.6,"disk_size":"33M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.75,"mem_mb":19.9,"disk_size":"31.3M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.9,"import_time_s":0.78,"mem_mb":19.9,"disk_size":"32M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.6,"mem_mb":17.4,"disk_size":"34.6M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"rake-nltk","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.8,"import_time_s":0.52,"mem_mb":17.4,"disk_size":"36M"}]}}