#23 · Primary category: NLP Tools & Text Processing
flashtext
Extract Keywords from sentence or Replace keywords in sentences.
Project last updated:04/13/25
GitHub Stars
5.7K
Forks
597
Contributors
7
License
MIT
Why we included this project
Most keyword-matching tasks in Python end up as a pile of regular expressions, and that gets slow and hard to maintain once you have hundreds of terms. FlashText takes a different route: it's a lightweight library that builds a trie from your keyword list and scans each sentence once, which stays noticeably quicker than regex as your pattern set grows into the hundreds or thousands. The API is small, which is the point. You add keywords, optionally mapping messy variants like 'Big Apple' to a canonical name, then call extract_keywords or replace_keywords, with case sensitivity and span reporting when you need them. That covers tagging documents, normalizing product or entity names, and cleaning free-text fields before they reach a larger NLP pipeline. Teams that want predictable, explainable matching without a heavyweight model can drop it into existing Python code with minimal fuss.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量