LexiFuzz NER: Named Entity Recognition Based on Dictionary and Fuzzy Matching
About
LexiFuzz NER is a Named Entity Recognition (NER) package designed to identify and extract named entities from unstructured text data. Leveraging a combination of dictionary-based and fuzzy matching techniques, LexiFuzz NER offers state-of-the-art accuracy in recognizing named entities in various domains, making it an invaluable tool for information extraction, natural language understanding, and text analytics.
Requirements
- Python 3.7 or Higher
- NLTK
- TheFuzz
Key Features
-
Dictionary-Based Recognition: LexiFuzz NER utilizes a comprehensive dictionary of named entities, encompassing a wide range of entities such as person names, organizations, locations, dates, and more. This dictionary is continuously updated to ensure high precision in entity recognition.
-
Fuzzy Matching: The package employs advanced fuzzy matching algorithms to identify named entities even in cases of typographical errors, misspellings, or variations in naming conventions. This ensures robustness in recognizing entities with varying textual representations.
-
Customization: LexiFuzz NER allows users to easily customize and expand the entity dictionary to suit specific domain or application requirements. This flexibility makes it adaptable to a wide array of use cases.
Usage
Manual Installation via Github
- Clone Repository
git clone https://github.com/hanifabd/lexifuzz-ner.git - Installation
cd lexifuzz-ner && pip install .
Installation Using Pip
- Installation
pip install lexifuzz-ner
Inference
-
Usage
from lexifuzz_ner.ner import find_entity dictionary = { 'individual_product' : ['tahapan', 'xpresi', 'gold', 'berjangka'], 'brand' : ["bca", "bank central asia"] } text = "i wanna ask about bca tahapn savings product" entities = find_entity(text, dictionary, 90) print(entities)
-
Result
{ 'entities': [ { 'id': '55a20c6b-bd4a-43ee-8853-b961ac537ca8', 'entity': 'bca', 'category': 'brand', 'score': 100, 'index': {'start': 18, 'end': 20}}, { 'id': '08917da5-ed51-44bb-9be9-52f17df2640a', 'entity': 'tahapn', 'category': 'individual_product', 'score': 92, 'index': {'start': 22, 'end': 28} } ], 'text': 'i wanna ask about bca tahapn savings product', 'text_annotated': 'i wanna ask about [bca]{55a20c6b-bd4a-43ee-8853-b961ac537ca8} [tahapn]{08917da5-ed51-44bb-9be9-52f17df2640a} savings product' }
Metadata
Release files for lexifuzz-ner 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lexifuzz_ner-0.0.8.tar.gz | 5.3 kB | Without provenance | Details for lexifuzz_ner-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lexifuzz_ner-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for lexifuzz_ner-0.0.8-py3-none-any.whl |
Total release size: 10.9 kB
Release files / lexifuzz_ner-0.0.8.tar.gz
| Download URL | lexifuzz_ner-0.0.8.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcb510728d77a69d63011f28bdf9b4dedfb01e5b0a789d9f942d90a7099982e2
|
|
BLAKE2b-256 checksum How to use checksums |
db7d38381e4854298a30a5f6e8d07be94b9908a093a3f7336073649dab8bf0a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / lexifuzz_ner-0.0.8-py3-none-any.whl
| Download URL | lexifuzz_ner-0.0.8-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4433d714a4e0e01eb6b74d5858fabd22a66bf12e1f70286a378212ebb6611db2
|
|
BLAKE2b-256 checksum How to use checksums |
dbb4246340a34bc438fd9cbd6217da49a6a5f8e1686909d1aaebcc00e06409de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Security for lexifuzz-ner 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.