vi3k6i5/flashtext
Extract Keywords from sentence or Replace keywords in sentences.
Implements the Aho-Corasick algorithm with trie-based indexing for sub-linear keyword matching, enabling significantly faster extraction and replacement compared to regex approaches at scale. Supports flexible keyword mapping (synonyms to canonical forms), case-sensitive matching, span information retrieval, and customizable word boundary detection. Built as a pure Python library with batch operations for adding/removing keywords from dictionaries or lists.
5,706 stars and 2,269,594 monthly downloads. Used by 7 other packages. No commits in the last 6 months. Available on PyPI.
Stars
5,706
Forks
600
Language
Python
License
MIT
Category
Last pushed
Apr 13, 2025
Monthly downloads
2,269,594
Commits (30d)
0
Reverse dependents
7
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/vi3k6i5/flashtext"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
cbaziotis/ekphrasis
Ekphrasis is a text processing tool, geared towards text from social networks, such as Twitter...
andrewtavis/kwx
BERT, LDA, and TFIDF based keyword extraction in Python
alirezatheh/perke
A keyphrase extractor for Persian
vgrabovets/multi_rake
Multilingual Rapid Automatic Keyword Extraction (RAKE) for Python
gagan3012/keytotext
Keywords to Sentences