Giter VIP home page Giter VIP logo

varnamd-govarnam's Introduction

Varnam API Server

Varnam daemon which also acts as a HTTP server. This program powers http://varnamproject.com

Installation

You need to have govarnam installed on your local system for varnamd to run.

  • Clone
  • Run go get inside cloned folder
  • Use go run . for starting varnamd

Usage

varnamd supports the following command line arguments:

  • p int. Run daemon in specified port
  • max-handle-count int. Maximum number of handles can be opened for each language
  • host string. Host for the varnam daemon server.
  • ui string. UI directory path. Put your index.html here.
  • enable-internal-apis boolean. Enable internal APIs
  • enable-ssl boolean
  • cert-file-path string. Certificate file path
  • key-file-path string.
  • upstream string. Provide an upstream server
  • enable-download. string. Comma separated language identifier for which varnamd will download words from upstream
  • sync-interval int.
  • log-to-file boolean. If true, logs will be written to a file
  • version

API

Transliteration

https://api.varnamproject.com/tl/{langCode}/{Word}

Sample: https://api.varnamproject.com/tl/ml/Malayalam. Response:

{
  "success": true,
  "error": "",
  "at": "2020-07-02 11:10:30.309343848 +0000 UTC",
  "result": [
    "മലയാളം",
    "മലയാലം",
    "മലയാ‍ളം",
    "മലായാളം",
    "മലയളം",
    "മ്മലയലം",
    "മലയാളമാ",
    "മലയാളമാദ്ധ്യമത്തിലൂ",
    "മലയാളമാദ്ധ്യമത്തിലൂടെ",
    "മലയാളമാദ്ധ്യമത്തിൽ",
    "മലയാളമാദ്ധ്യമം"
  ],
  "input": "Malayalam"
}
see server.go for supported APIs.

varnamd-govarnam's People

Contributors

joicemjoseph avatar subins2000 avatar navaneeth avatar jijeshmohan avatar neenu-chacko avatar athul avatar kevinmartinjos avatar

Watchers

 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.