Observed since 20 Oct, 19:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A powerful Named Entity Recognition and Resolution library with semantic matching
A powerful Named Entity Recognition (NER) and Entity Resolution library designed for complex text processing tasks. It combines state-of-the-art NLP models (spaCy, Transformers) with robust knowledge bases (Wikidata, WordNet) to provide accurate entity extraction, canonicalization, and semantic matching.
pip install advanced-text-processing
After installation, download the required models:
# Download spaCy model
python -m spacy download en_core_web_lg
# Download NLTK data
python -c "import nltk; nltk.download('wordnet'); nltk.download('omw-1.4')"
See Installation Guide for detailed instructions.
from ner_lib import recognize_entities
text = "Apple Inc. was founded by Steve Jobs in Cupertino."
result = recognize_entities(text)
for entity in result['entities']:
print(f"{entity['text']} ({entity['type']})")
# Output:
# Apple Inc. (ORG)
# Steve Jobs (PERSON)
# Cupertino (GPE)
from ner_lib import canonicalize_entity
# Canonicalize an entity mention
result = canonicalize_entity("apple inc", mode="progressive")
print(f"Canonical: {result['canonical_name']}")
print(f"Aliases: {result['aliases']}")
# Output:
# Canonical: Apple Inc.
# Aliases: ['Apple', 'AAPL', 'Apple Computer', ...]
from ner_lib import Config, canonicalize_relationship
# Configure semantic matching
config = Config()
config.semantic_matching.enabled = True
config.semantic_matching.canonical_relationships = ["depends_on", "created_by"]
# Canonicalize a relationship phrase
result = canonicalize_relationship("relies heavily on", config=config)
print(f"Canonical: {result['canonical_name']}")
# Output: Canonical: depends_on
We welcome contributions! Please see our Contributing Guide for details on how to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
This library stands on the shoulders of giants. We gratefully acknowledge the following open-source projects:
See ACKNOWLEDGEMENTS.md for the full list of dependencies and credits.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.1 | 25 Nov 2025 | 30 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 19:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:027413bfcfd6c7de889be5484a7898a9c230c949ae4bfd5a89d7a277d76ac6d8