Giter Club home page Giter Club logo

schemes's Introduction

Language Files

Varnam Language support files. DOWNLOAD YOUR LANGUAGE FILES FROM releases.

Installation

  • Download your language support file from releases
  • Extract zip
  • Open a terminal in your extracted folder
  • Run (DO NOT RUN WITH sudo):
./install.sh install

It will ask for your password, enter it. You will also be asked to import words.

To check if installation is successful, try this command :

varnamcli -s ml enthaanu

It should give malayalam output if installation is successful.

Development

Folder structure:

  • schemes
    • ...
    • ml
      • ml.scheme - Scheme File
      • symbol-frequency-report.txt - Symbol Frequency Report
      • Other folders - Different pack folders
    • ...
  • install.sh.in - A placeholder script which will be copied to every scheme folder

Scheme

A scheme file is a mapping of English characters to Indian language characters. This helps in transliteration using a letter by letter conversion.

The scheme file is compiled to a file called Varnam Symbol Table (VST). Varnam uses VST to do transliteration. VST IS REQUIRED for basic language support in Varnam.

Read more on scheme

Symbol Frequency Report

This file is used to populate weight column in VST

File format:

ക 98
വ 98
അ 98
...

This file is made using scripts inside scripts folder. It has a README.

Packs

A language pack is a set of pre-trained Varnam Learning Files (VLF) that can be imported into any Varnam instance quickly. It has many words in it. It's basically a dictionary file to import words from.

Compiling A Scheme

Install dependencies:

sudo apt install ruby-ffi

Compile scheme:

./compile-scheme.rb -s schemes/ta/ta.scheme -o schemes/ta/ta.vst

The compiled scheme will be a SQLite Database with extension ".vst".

Now link the file to the place where Varnam will look for VST.

sudo ln -s $(realpath schemes/ta/ta.vst) /usr/local/share/varnam/schemes/ta.vst

Now Varnam can use it. Test it out :

varnamcli -s ta nandri

schemes's People

Contributors

subins2000 avatar khumnath avatar agx 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.