NLP
Named Entity Recognition in Nepal: From Text to Structured Information
Krishna Mishra explains NER using his public repository, including entity spans, annotation quality and reviewed information extraction.
Recognise the task before extracting fields
Named entity recognition identifies spans of text and assigns entity categories such as person, organisation or location. My public Named Entity Recognition repository is part of my NLP work alongside sentiment analysis and Nepali tokenisation. I am Krishna Mishra, founder of AI Automation Nepal in Kathmandu, Nepal. The code linked below is the evidence available for this project.
NER is different from deciding whether a message sounds positive. Its output includes where an entity appears and what kind of entity it is. A sentence may contain several people and places, so identifying an entity does not by itself tell the business which person is the customer or which place is the intended delivery address.
Define labels and annotation rules consistently
Before training or evaluating, document the entities that matter for the task. Decide whether an organisation’s suffix belongs in the span and how to handle initials, punctuation or nested names. Inconsistent annotations can make a model appear wrong when the underlying label policy is unclear.
Use representative language and domain examples. Names, organisations and addresses in Nepal may differ from the examples in an English pretrained model’s training data. A public NER repository is not proof that a model has already been validated for every Nepali administrative or business-document format.
Evaluate spans as well as entity categories
A prediction can identify the right category but select only half a name. Review span boundaries and entity-level precision, recall and F1 under a documented matching rule. Include sentences without entities and ambiguous words that sometimes describe a person and sometimes a location. An overall token-level accuracy can hide errors in the entities that matter.
Keep annotated evaluation examples separate from development choices. Inspect recurring errors and compare a suitable baseline before adding complexity. An extracted name is not a verified identity, and a detected date still needs interpretation in context. The application should preserve uncertainty rather than treating every entity as a confirmed business fact.
A worked example of entities versus business fields
In the invented sentence Sita from Example Traders will visit Bharatpur on Friday, an NER system might suggest a person, an organisation, a location and a date expression. Those spans do not by themselves establish a billing contact, a delivery address or a calendar date. A downstream application still needs the intended schema and the missing context.
Review whether Example Traders is captured as the full organisation span, whether Friday needs a reference date and whether the organisation is relevant to the requested record. If the input includes several names, avoid choosing one silently. Show the suggested fields to an authorised reviewer before using them to update a customer record.
Keep span-level evaluation separate from field-validation checks. A correctly extracted phrase can still be incomplete for the business task. Public repository work supports an NLP-project description; it does not justify asserting that the extractor verifies identities or interprets every document format.
Connect extraction to a reviewed application
An illustrative workflow could suggest structured fields from an enquiry for a staff member to check. Preserve the original text for the authorised reviewer, show the suggested values and validate required formats before saving. Do not automatically overwrite an existing customer record based only on a model’s interpretation.
Through AI Automation Nepal, I connect NLP discussions with CRM, APIs and human-reviewed automation. The useful question is which manual reading task the extraction supports and how a reviewer corrects mistakes. My linked code demonstrates public project work; a new document type or customer workflow needs its own sample review and acceptance test.