Home

Awesome

NLP for Nepali

This repository contains State of the Art Language models and Classifier for Nepali, which is official language of Nepal and one of the official status gained language of India.

The models trained here have been used in Natural Language Toolkit for Indic Languages (iNLTK)

Dataset

Created as part of this project

  1. Nepali Wikipedia Articles

  2. Nepali News Dataset

Results

Language Model Perplexity

Architecture/DatasetNepali Wikipedia Articles
ULMFiT31.5
TransformerXL29.3

Classification Metrics

ULMFiT
DatasetAccuracyKappa Score
Nepali News Dataset98.597.7

Visualizations

Embedding Space
ArchitectureVisualization
ULMFiTEmbeddings projection
TransformerXLEmbeddings projection

Pretrained Language Model

Download pretrained Language Models from here

Classifier

Download classifier from here

Tokenizer

Trained tokenizer using Google's sentencepiece

Download the trained model and vocabulary from here