RAKE is an unsupervised, domain-independent algorithm that extracts keyphrases from individual documents by analyzing word co-occurrence patterns. The algorithm identifies candidate phrases by splitting text on stopwords and punctuation, treating the resulting contiguous sequences as candidate keyphrases. Each word within these candidates is then scored based on its degree (co-occurrence frequency with other words) and frequency, with the final phrase score being the sum of its constituent word scores.
Glossary
RAKE

What is RAKE?
RAKE (Rapid Automatic Keyword Extraction) is a seminal unsupervised, domain-independent algorithm for extracting keyphrases by analyzing word co-occurrence and stopword-delimited sequences.
The core insight of RAKE is that keyphrases typically contain multiple content words in sequence without intervening stopwords. Candidate phrases containing words that appear frequently together in the document receive higher salience scores. This statistical approach requires no training data or external corpora, making it highly portable across domains. However, its reliance on a predefined stopword list means performance can degrade on documents with domain-specific stopwords or highly technical jargon where standard stopword lists are insufficient.
Key Features of RAKE
RAKE (Rapid Automatic Keyword Extraction) is an unsupervised, domain-independent algorithm that identifies keyphrases by analyzing word co-occurrence and stopword-delimited sequences without requiring a training corpus.
Stopword-Delimited Phrase Segmentation
RAKE segments text into candidate phrases using stopwords (e.g., 'the', 'and', 'of') as boundaries. The algorithm splits the document at each stopword or punctuation delimiter, treating the resulting contiguous word sequences as candidate keyphrases. This approach is computationally efficient and language-agnostic, requiring only a stopword list rather than a trained part-of-speech tagger. For example, in the sentence 'The extraction of keyphrases from documents,' the candidates become 'extraction,' 'keyphrases,' and 'documents.'
Co-occurrence Graph Scoring
RAKE constructs a word co-occurrence graph where vertices represent distinct words and edges connect words that appear together within candidate phrases. Each word receives a score based on its degree (number of co-occurring words) and frequency (total occurrences). The word score is calculated as deg(w) / freq(w), rewarding words that appear in diverse contexts while penalizing common words. Candidate phrase scores are the sum of their constituent word scores, effectively identifying phrases with high semantic density.
Unsupervised and Domain-Independent
Unlike supervised methods that require labeled training data, RAKE operates without any prior knowledge of the document's domain. It relies solely on statistical properties of the input text, making it immediately applicable to new domains without retraining. This domain independence is achieved by using generic stopword lists and frequency-based scoring rather than domain-specific features or external knowledge bases. The algorithm performs consistently across scientific articles, news reports, and technical documentation without parameter tuning.
Computational Efficiency
RAKE achieves O(n) time complexity relative to the number of words in the document, making it suitable for real-time and large-scale applications. The algorithm requires only a single pass through the text for phrase segmentation and a second pass for scoring. Memory overhead is minimal, as the co-occurrence graph stores only unique words rather than full n-gram combinations. This efficiency enables RAKE to process thousands of documents per second on commodity hardware, contrasting with embedding-based methods that require GPU acceleration.
Adjoining Keyword Handling
RAKE includes a mechanism for handling interior stopwords within multi-word phrases. After initial scoring, the algorithm identifies candidate phrases that appear adjacent to each other separated only by a stopword and evaluates whether combining them produces a higher-scoring phrase. For example, 'bag of words' may initially split into 'bag' and 'words,' but RAKE can recognize the combined form as a valid keyphrase if it appears frequently. This step recovers common technical phrases that contain internal stopwords.
Evaluation Benchmarks
RAKE has been evaluated against human-assigned keyphrases on standard datasets, demonstrating strong precision for present keyphrase extraction. In the original paper, RAKE achieved precision scores comparable to supervised systems when extracting author-assigned keywords from technical abstracts. The algorithm performs particularly well on documents with clear topical focus and distinct vocabulary, though it may underperform on highly ambiguous or conversational text where stopword patterns are less reliable indicators of phrase boundaries.
RAKE vs. Other Keyphrase Extraction Algorithms
A feature-level comparison of Rapid Automatic Keyword Extraction against other prominent unsupervised keyphrase extraction methods.
| Feature | RAKE | YAKE | TextRank | KeyBERT |
|---|---|---|---|---|
Core Mechanism | Word co-occurrence & degree centrality | Statistical features & sliding window | Graph-based PageRank on co-occurrence | Cosine similarity to document embedding |
External Corpus Required | ||||
Language Independence | ||||
Handles Multi-word Phrases | ||||
Candidate Generation Method | Stopword-delimited sequences | N-gram sliding window with POS filtering | POS-filtered n-gram sequences | N-gram extraction with Max Sum Similarity |
Scoring Basis | Word degree / frequency ratio | 5 statistical features (casing, position, frequency, relatedness, dispersion) | Vertex centrality via PageRank convergence | Embedding cosine similarity |
Typical Speed (words/sec) | ~500,000 | ~300,000 | ~50,000 | ~5,000 |
Domain Adaptability | High (no training required) | High (no training required) | High (no training required) | Medium (embedding model dependent) |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear, technical answers to the most common questions about the Rapid Automatic Keyword Extraction (RAKE) algorithm, its mechanics, and its role in unsupervised keyphrase extraction pipelines.
RAKE (Rapid Automatic Keyword Extraction) is an unsupervised, domain-independent algorithm for extracting keyphrases from individual documents. It operates on the principle that keyphrases are sequences of content words that occur between stop words and phrase delimiters. The algorithm first segments the text into candidate phrases by splitting on stop words and punctuation. It then builds a word co-occurrence graph where vertices are content words and edges are weighted by their co-occurrence frequency within these candidate phrases. Each candidate phrase is scored by summing the scores of its constituent words, where a word's score is calculated as the ratio of its degree (total co-occurrences) to its frequency. The top-scoring phrases are returned as the document's keyphrases, requiring no training data or external corpora.
Related Terms
Explore the core algorithms and evaluation metrics that form the foundation of unsupervised keyphrase extraction, contrasting RAKE with its statistical and graph-based counterparts.
TF-IDF
A foundational statistical measure that evaluates word importance by balancing term frequency against inverse document frequency. Unlike RAKE's stopword-delimited approach, TF-IDF requires a corpus to calculate the rarity of a term. It excels at filtering out common, non-discriminative words but struggles with multi-word phrase cohesion compared to RAKE's contiguous scoring method.
YAKE
A lightweight, unsupervised method that extracts keyphrases from a single document without external corpora. YAKE relies on five statistical features—casing, position, frequency, relatedness, and dispersion—to score candidates. While RAKE focuses on word co-occurrence within stopword windows, YAKE provides a more holistic statistical model, often yielding higher precision on short-form text.
TextRank
A graph-based ranking algorithm that builds a co-occurrence network of words and applies PageRank to identify salient phrases. Unlike RAKE, which scores candidates directly, TextRank iteratively computes vertex centrality. This makes TextRank highly effective for identifying thematic keywords in long-form documents but computationally heavier due to graph construction and convergence requirements.
KeyBERT
A modern method leveraging BERT embeddings to extract keywords most similar to a document's semantic representation. KeyBERT generates candidate n-grams and ranks them via cosine similarity to the document embedding. This provides a semantic depth that RAKE's statistical co-occurrence lacks, though it requires significantly more computational resources for transformer inference.
F1@K
The standard evaluation metric computing the harmonic mean of precision and recall for the top-K predicted keyphrases against a gold-standard set. When benchmarking RAKE, F1@K reveals its strength in recall (capturing many candidate phrases) but often highlights a precision deficit compared to supervised methods, as RAKE lacks semantic filtering of irrelevant high-frequency terms.
Candidate Scoring
The process of assigning numerical weights to candidate phrases using features like frequency, position, and semantic similarity. RAKE's scoring mechanism sums the degree and frequency of constituent words within a co-occurrence graph. Understanding this step is critical for tuning RAKE's output, as the scoring function directly determines which stopword-delimited sequences are promoted to final keyphrases.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us