HanLP (36.5K stars) edges out spaCy (34.1K) as the most-starred open source named entity recognition project on GitHub, with Flair a distant third at 14.4K. Below are all 50 NER libraries, models, datasets and labeling tools with 1,000+ stars in the Text Mining directory, ranked.
Named entity recognition is one of NLP's oldest jobs: find the people, places, companies, dates and amounts in a pile of text. For a while it looked like large language models would swallow it, since you can just ask a chatbot to list the entities. Then the GLiNER paper at NAACL 2024 showed a compact bidirectional encoder beating both ChatGPT and fine-tuned LLMs on zero-shot NER benchmarks, at a fraction of the cost. The other force reshaping the category is privacy. As HackerNoon's write-up on detecting and masking personal data in text explains, PII detection is NER with a gazetteer bolted on, and that's exactly what the fastest-moving repos on this list do.
How this list was built
The Text Mining directory tracks 7,044 open source text mining projects on GitHub. Its Named Entity Recognition filter tags 297 of them, holding about 367K stars between them. We kept repos with 1,000+ stars (67) and removed 17 that are tagged NER but aren't NER tools: general NLP courses and interview notes, paper lists, knowledge graph tutorials, pretraining frameworks and chatbot apps. That leaves 50. Star counts are from the directory's November 20, 2026 snapshot.
A few patterns stand out in the full category:
- Python owns it. 201 of the 297 NER repos are Python. JavaScript (13) and Java (12) are a distant second and third.
- Chinese NER is a world of its own. 66 of the 297 repos describe Chinese-language work, including 16 of the top 50. Chinese has no spaces between words, so segmentation and entity recognition are usually solved together.
- A lot of it is frozen. 166 of the 297 repos haven't been pushed since before 2024. Many are BiLSTM-CRF and early BERT implementations from 2018 to 2021: still useful for learning, risky to build on.
- The live edge is zero-shot and privacy. Of the 13 top-50 repos updated since October 2026, five are GLiNER, spacy-llm, Presidio, OpenMed and rizzo-pii.
- Check the license. 80 of the 297 repos list no license at all, including 8 in the top 50, and CoreNLP is GPL-3.0.
Quick picks by job
- Production pipelines: spaCy, stanza, CoreNLP, flair, spark-nlp
- Any entity type, zero-shot: GLiNER, spacy-llm, ontogpt
- PII detection and redaction: presidio, openmed, rizzo-pii
- Chinese: HanLP, lac, Jiagu, xmnlp, CLUENER2020
- JavaScript and the browser: compromise, nlp.js, wink-nlp
- Rust: rust-bert
- Dates, numbers and units: Recognizers-Text
- Training data and labeling: entity-recognition-datasets, universal-data-tool, YEDDA
- Scoring your model: seqeval
The full list: 50 open source NER tools, ranked by stars
- HanLP by hankcs: 36.5K stars, Python, Apache-2.0. Multilingual NLP toolkit that's strongest in Chinese: segmentation, POS tagging, NER, dependency and semantic parsing, coreference and more.
- spaCy by explosion: 34.1K stars, Python, MIT. Industrial-strength Python NLP with pretrained NER pipelines for many languages. The default pick for production entity extraction.
- flair by flairNLP: 14.4K stars, Python, other license. Simple PyTorch framework for sequence labeling, with pretrained NER models for English, German and other languages.
- compromise by spencermountain: 12.2K stars, JavaScript, MIT. Lightweight JavaScript NLP that tags people, places and organizations right in the browser.
- presidio by data-privacy-stack: 12K stars, Python, MIT. Detects, redacts, masks and anonymizes PII across text, images and structured data.
- CoreNLP by stanfordnlp: 10.1K stars, Java, GPL-3.0. Stanford's Java suite for tokenization, sentence splitting, NER, parsing and coreference.
- stanza by stanfordnlp: 7.9K stars, Python, other license. Stanford's Python library for tokenization, NER and parsing across many human languages.
- DeepPavlov by deeppavlov: 7K stars, Python, Apache-2.0. Open source library for dialog systems and chatbots, with NER models among its components.
- nlp.js by axa-group: 6.6K stars, JavaScript, MIT. NLP library for building bots, with entity extraction, sentiment analysis and language identification.
- openmed by maziyarpanahi: 5.8K stars, Python, Apache-2.0. Local-first healthcare AI: clinical NER and HIPAA PII de-identification on hardware you control.
- BERT-BiLSTM-CRF-NER by macanv: 4.9K stars, Python, no license listed. TensorFlow NER using BiLSTM-CRF on top of BERT fine-tuning, with a serving setup.
- DeepKE by zjunlp: 4.5K stars, Python, MIT. EMNLP 2022 toolkit for knowledge graph extraction, from entities to relations and attributes.
- Chinese-Names-Corpus by wainshine: 4.4K stars, Other, Apache-2.0. Corpus of Chinese, Japanese and English personal names for segmentation and person-name recognition.
- GLiNER by urchade: 4.3K stars, Python, Apache-2.0. Small bidirectional-encoder model that extracts any entity type you name, with no retraining.
- simpletransformers by ThilinaRajapakse: 4.3K stars, Python, Apache-2.0. Wraps Hugging Face Transformers so NER, classification and QA take a few lines of code.
- spark-nlp by JohnSnowLabs: 4.2K stars, Scala, Apache-2.0. John Snow Labs' NLP library for Apache Spark, with pretrained NER pipelines that run at cluster scale.
- lac by baidu: 4K stars, C++, Apache-2.0. Baidu's lexical analysis tool for Chinese segmentation, POS tagging, NER and word importance.
- snips-nlu by snipsco: 4K stars, Python, Apache-2.0. Python library that extracts intents and slot entities from text, built by Snips for voice assistants.
- Jiagu by ownthink: 3.4K stars, Python, MIT. Chinese NLP toolkit covering segmentation, POS tagging, NER, relation extraction, sentiment, keywords and summaries.
- pyhanlp by hankcs: 3.2K stars, Python, Apache-2.0. Python interface to HanLP for Chinese segmentation and entity recognition.
- rust-bert by guillaume-be: 3.1K stars, Rust, Apache-2.0. Rust-native transformer pipelines, including NER, built on BERT, DistilBERT, GPT-2 and others.
- HarvestText by blmoistawinde: 2.6K stars, Python, MIT. Chinese text mining and preprocessing: cleaning, new-word discovery, sentiment, entity recognition and linking, keywords.
- Kashgari by BrikerMan: 2.4K stars, Python, Apache-2.0. Transfer-learning framework on tf.keras for text labeling and classification.
- zh-NER-TF by Determined22: 2.3K stars, Python, no license listed. A simple BiLSTM-CRF model for Chinese NER in TensorFlow.
- named_entity_recognition by luopeixiang: 2.3K stars, Python, no license listed. Chinese NER implemented four ways (HMM, CRF, BiLSTM and BiLSTM+CRF), handy for learning the trade-offs.
- Information-Extraction-Chinese by crownpku: 2.3K stars, Python, no license listed. Chinese NER with IDCNN/BiLSTM+CRF, plus relation extraction with BiGRU and attention.
- BERT-NER-Pytorch by lonePatient: 2.2K stars, Python, MIT. Chinese NER with BERT using softmax, CRF and span heads.
- universal-data-tool by UniversalDataTool: 2.1K stars, JavaScript, MIT. Web and desktop app for labeling text, images and documents, including entity spans.
- sequence_tagging by guillaumegenthial: 2K stars, Python, Apache-2.0. LSTM-CRF named entity recognition in TensorFlow.
- NCRFpp by jiesutd: 1.9K stars, Python, Apache-2.0. Neural sequence labeling toolkit for NER, POS tagging and segmentation.
- LatticeLSTM by jiesutd: 1.8K stars, Python, no license listed. Code for the ACL 2018 paper on Chinese NER with a lattice LSTM.
- Recognizers-Text by microsoft: 1.8K stars, C#, MIT. Recognizes and resolves numbers, units, dates and times in multiple languages.
- NeuroNER by Franck-Dernoncourt: 1.7K stars, Python, MIT. Neural network NER built to be easy to use.
- entity-recognition-datasets by juand-r: 1.6K stars, Python, MIT. Collection of annotated corpora for NER across domains and languages.
- CLUENER2020 by CLUEbenchmark: 1.5K stars, Python, no license listed. Fine-grained Chinese NER dataset and benchmark.
- anago by Hironsan: 1.5K stars, Python, MIT. BiLSTM-CRF and ELMo for NER and POS tagging.
- ChineseNER by buppt: 1.5K stars, Python, no license listed. Chinese entity extraction with BiLSTM+CRF in TensorFlow and PyTorch.
- spacy-llm by explosion: 1.4K stars, Python, MIT. Plugs LLMs into spaCy pipelines, so you can prompt for entities and still get structured output.
- wink-nlp by winkjs: 1.4K stars, JavaScript, MIT. Developer-friendly JavaScript NLP with built-in entity recognition.
- natasha by natasha: 1.4K stars, Python, MIT. Basic Russian NLP, including NER for names, locations and organizations.
- xmnlp by SeanLee97: 1.3K stars, Python, Apache-2.0. Chinese NLP: segmentation, POS tagging, NER, sentiment, spelling correction, pinyin and more.
- Company-Names-Corpus by wainshine: 1.3K stars, Other, Apache-2.0. Corpus of company and organization names, abbreviations and brands for organization-name recognition.
- rizzo-pii by Rizzo-AI-Academy: 1.3K stars, Python, MIT. Local-first privacy guard that anonymizes documents before you share them with an LLM.
- BERT-NER by kaiyinzhou: 1.3K stars, Python, MIT. Google's BERT applied to NER on the CoNLL-2003 dataset.
- BERT-NER by kamalkraj: 1.2K stars, Python, AGPL-3.0. PyTorch named entity recognition with BERT.
- Entity-Relation-Extraction by yuanxiaosc: 1.2K stars, Python, no license listed. Pipeline entity and relation extraction with TensorFlow and BERT, from a 2019 Chinese information extraction competition.
- seqeval by chakki-works: 1.2K stars, Python, MIT. Python framework for scoring NER, POS tagging and other sequence labeling output.
- ontogpt by monarch-initiative: 1.1K stars, Jupyter Notebook, BSD-3-Clause. LLM-based ontological extraction tools, including SPIRES.
- YEDDA by jiesutd: 1.1K stars, Python, Apache-2.0. Lightweight collaborative text span annotation tool, nominated for ACL 2018 best demo.
- name-dataset by philipperemy: 1K stars, Python, Apache-2.0. Python library for names, useful as a gazetteer for person-name detection.
Want the other 247?
The long tail (100 to 999 stars) is where you'll find single-language pipelines for Vietnamese, Persian, Bengali and Turkish, medical and legal entity extractors, and research code for nested and few-shot NER. Browse all 297 on the Named Entity Recognition filter, or narrow by language, license and last-updated date. If your entities live inside PDFs, start with our ranking of 138 open source OCR and PDF parsers.
