vi3k6i5/flashtext

Extract Keywords from sentence or Replace keywords in sentences.

72
/ 100
Verified

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.

Stale 6m
Maintenance 2 / 25
Adoption 25 / 25
Maturity 25 / 25
Community 20 / 25

How are scores calculated?

Stars

5,706

Forks

600

Language

Python

License

MIT

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.