Giter Site home page Giter Site logo

goru001 / nlp-for-malyalam Goto Github PK

View Code? Open in Web Editor NEW
36.0 4.0 9.0 323 KB

State of the Art Language models and Classifier for Malayalam, which is spoken by the Malayali people in the Indian state of Kerala and the union territories of Lakshadweep and Puducherry

License: MIT License

Jupyter Notebook 99.98% Python 0.02%

nlp-for-malyalam's Introduction

NLP for Malayalam

This repository contains State of the Art Language models and Classifier for Malayalam, which is spoken by the Malayali people in the Indian state of Kerala and the union territories of Lakshadweep and Puducherry.

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

Dataset

Created as part of this project

  1. Malayalam Wikipedia Articles

  2. Malayalam News Dataset

Open Source Datasets

  1. iNLTK Headlines Corpus - Malayalam : Uses the Malayalam News Dataset prepared above

Results

Language Model Perplexity (on validation set)

Architecture/Dataset Malayalam Wikipedia Articles
ULMFiT 26.39
TransformerXL 25.79

Classification Metrics

ULMFiT
Dataset Accuracy MCC Notebook to Reproduce results
iNLTK Headlines Corpus - Malayalam 95.56 93.29 Link

Visualizations

Word Embeddings
Architecture Visualization
ULMFiT Embeddings projection
TransformerXL Embeddings projection

Results of using Transfer Learning + Data Augmentation from iNLTK

On using complete training set (with Transfer learning)
Dataset Dataset size (train, valid, test) Accuracy MCC Notebook to Reproduce results
iNLTK Headlines Corpus - Malayalam (5036, 630, 630) 95.56 93.29 Link
On using 10% of training set (with Transfer learning)
Dataset Dataset size (train, valid, test) Accuracy MCC Notebook to Reproduce results
iNLTK Headlines Corpus - Malayalam (503, 630, 630) 82.38 73.47 Link
On using 10% of training set (with Transfer learning + Data Augmentation)
Dataset Dataset size (train, valid, test) Accuracy MCC Notebook to Reproduce results
iNLTK Headlines Corpus - Malayalam (503, 630, 630) 84.29 76.36 Link

Pretrained Models

Language Models

Download pretrained Language Model from here

Tokenizer

Trained tokenizer using Google's sentencepiece

Download the trained model and vocabulary from here

nlp-for-malyalam's People

Contributors

goru001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nlp-for-malyalam's Issues

LFS data limit exceeded

@goru001 While cloning the repo, getting the following error message:

Downloading language-model/embeddings.tsv (45 MB)
Error downloading object: language-model/embeddings.tsv (0509f1b): Smudge error: Error downloading language-model/embeddings.tsv (0509f1b101ebcace773f9eccdd9be921002e751a4288804e64d49b410a8a1755): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Errors logged to /media/athul/ee4ac28b-dca1-4dd5-b1ef-1e0be6e5e867/home/athul/nlp/nlp-for-malyalam/.git/lfs/logs/20200211T154509.772925999.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: language-model/embeddings.tsv: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'``
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.