Giter Club home page Giter Club logo

iscls-19's Introduction

Deep Learning Based Approach for Compound Type Identification in Sanskrit

Code for the paper titled "Revisiting the Role of Feature Engineering for Compound Type Identification in Sanskrit"
This code is adapted and modified from this tutorial by Ruder.

Requirements:

The following software must be installed on your machine.

  • Python 3.5
  • Tensorflow 1.13.1
  • numpy
  • gensim
  • pandas
  • scikit-learn

File organization

  • code : To get results reported in paper, simply run this python file.
  • data : contains data required to run this code
  • model : generated model will be stored to this folder

To run the code:

We have only provided our best word embedding model implementation i.e. FastText. Go to code/train.py file

python train.py

Dataset

Description of data files . We have used same transliteration scheme as that of Hellwig's

Corpora

file name discription
train/test.csv This is the dataset for compound type classification task.
compound_dic.pickle This file is dictionary mapping of compound classification dataset to get word embedding vectors.
Fast_text_features This folder contains fasttext embedding of classification dataset.

These features can be downloaded from here

Make sure these features are placed in path : data/fast_text_features

Sample data

There are four classes. They are represented by integer mapping: Avyaibhav(0), Bahuvrihi(1), Dvandva(2), Tatpurush(3)

Index Word1 Word2 Class
1 xqDa vikramaH 1
2 prawi icCakaH 0
3 saMmAna SuSrURA 2

Statistics of Corpora contained in Sanskrit

Corpus No of Verses No of words
Vedabase 13013 190343
DCS 127376 3797593
wiki 78K lines 663521
Total 4651457

iscls-19's People

Contributors

jivnesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.