MACHINE LEARNING
NLP and Sentiment Analysis in Nepal: From Public Models to Useful Workflows
Krishna Mishra connects his public sentiment, NER and Nepali-tokenizer work with practical questions about text classification, language coverage and human review.
Start with the information a text task needs to produce
Natural language processing covers tasks that work with language, including classification, entity extraction and retrieval. Sentiment analysis assigns a sentiment-related label to text, while named entity recognition identifies spans belonging to defined entity categories. These tasks should have separate output definitions rather than being treated as interchangeable features of a generic chatbot.
I am Krishna Mishra, founder and AI Automation Architect at AI Automation Nepal. My public work includes a transformer sentiment-analysis repository, a published sentiment model, a named-entity-recognition repository and a Nepali tokenizer. They provide specific project references for learning about text processing; they do not establish performance across every language or business domain.
A model’s original task shapes how its output can be used
A model developed around movie sentiment sees a particular kind of text. Customer support messages, short social comments and business enquiries can use different language. Before applying the result elsewhere, compare predictions with reviewed examples from the intended use case. A familiar label name does not prove that the model interprets the new context correctly.
Keep the original text accessible to an authorised reviewer. A message can express praise for one part of a service and dissatisfaction with another, so a single sentiment label may hide information the team needs. The workflow may be better served by a summary and a review flag than by an automatic decision based on one category.
Nepali language support needs direct evaluation
Written Nepali, Romanised Nepali and mixed Nepali-English messages can create different input patterns. A tokenizer determines how text is represented for the model, but publishing a tokenizer does not prove that every downstream task works well. Language coverage should be checked at the task level with relevant examples.
Review spelling variation, short messages and ambiguous wording if they occur in the actual workflow. Preserve enough context for a person to check the result without retaining unnecessary personal data in logs. Ask what the application should do when the language or input is outside the model’s evaluated scope.
Entity extraction is a proposal until business rules validate it
An entity model can identify text spans under its trained labels, but a detected name or date is not automatically a verified customer field. A business application may need additional parsing, validation or staff confirmation. Keep extracted values distinct from information already confirmed in the system of record.
For example, a feedback workflow might suggest a service category and highlight a reference number from a message. It should check the format and permitted record access before looking up the reference. This is a design example; the existence of my NER repository is not evidence that a particular company workflow has been deployed.
Evaluate mistakes that affect the next action
Inspect false positives, missed categories and conflicting messages rather than relying only on an aggregate score. The cost of incorrectly marking a support issue as resolved is different from the cost of placing an ordinary message in a review queue. Select thresholds and escalation rules around those consequences.
Document the model version, preprocessing and test examples so later changes can be compared fairly. A well-structured output from an API still needs semantic validation. The relevant question is whether the label or extraction helps the team make the intended next decision reliably.
Compare classical text features with contextual representations
My NLP notes cover TF-IDF, word embeddings, contextual representations and sequence models as well as preprocessing. A TF-IDF classifier is a useful baseline for a well-defined text task. A transformer can represent context differently, but should earn its additional complexity through evaluation on relevant examples. A newer or larger model is not automatically the right operational choice.
RNN, LSTM and GRU models process sequences with recurrent state; attention-based transformers provide a different mechanism for relating positions. The appropriate comparison depends on sequence lengths, data, compute and the task. The public sentiment repository supports a specific project claim. Studying several architectures is not evidence that all of them power a live customer system.
Use a confusion matrix to expose a misleading accuracy
Consider a hypothetical evaluation with 100 messages, only 10 of which are urgent complaints. Predicting every message as non-urgent yields 90% accuracy while finding none of the urgent complaints. For that task, inspect urgent-class recall and false positives as well as the overall score. The example illustrates evaluation; it is not a result from my sentiment model.
Negation and code-switching deserve explicit test cases. Removing the word not from an English complaint or stripping a meaningful emoji can change the signal. A tokenizer and preprocessing policy must be compatible with the selected model. Compare candidate preprocessing choices on the same held-out data rather than applying every cleanup step from a general checklist.
Connect public NLP work with a scoped automation discussion
Through AI Automation Nepal, I connect model outputs with the wider process: record updates, review queues and staff handoffs. A useful discussion begins with the messages received, the output required and the acceptable errors. The public repositories below make the technical background inspectable without claiming an unsupported business outcome.
For training or service enquiries, use the company contact. Bring a few representative messages with private details removed and explain what staff should do after classification. That helps distinguish a learning exercise, a reviewed prototype and a system intended for routine operations.