GithubHelp home page GithubHelp logo

teamtachyon / quillpad-server Goto Github PK

View Code? Open in Web Editor NEW
70.0 19.0 97.0 21.7 MB

Quillpad Server repository

Home Page: http://www.quillpad.in

License: BSD 3-Clause "New" or "Revised" License

Python 89.23% C 10.77%

quillpad-server's Introduction

For all further updates/language fixes please visit the fork by Cognirel - https://cognireltech.github.io/Quillpad-Server/. The original maintainers of Quillpad are maintaining the code there.

Quillpad Transliteration Server

Quillpad is an indic language input technology that revolutionized the Indian language typing scene. It is one of the most popular Indic input technologies with more than a billion words typed on the website alone.

Quillpad pioneered the successful use of machine learning for building a predictive language input technology. Quillpad has been rated as the best by many organisations that have embraced Quillpad.

Version

1.0.1

Preparation

There are several archive files in the repository which have to be extracted, these include trained transliteration models and additional text files necessary for the Quillpad Server

  • CherryPy-3.2.2.tar.gz
  • EnglishPronouncingTrees.tar.bz2
  • IndianPronouncingTrees.tar.bz2
  • additional_text_files.zip
  • bengali.tar.bz2
  • gujarati.tar.bz2
  • hindi.tar.bz2
  • kannada.tar.bz2
  • malayalam.tar.bz2
  • marathi.tar.bz2
  • nepali.tar.bz2
  • punjabi.tar.bz2
  • tamil.tar.bz2
  • telugu.tar.bz2
  • unique_word_files.zip

Kindly extract all of these archives into the repository folder itself.

Installation

Quillpad Server requires Python 2.7 to run.

First, we need to compile the Quillpad Model loader that will be used to load the trained transliteration models

$ cd Python\ Cart/python
$ python setup.py build_ext --inplace
$ cp QuillCCart.so ../../
$ cd ../../

Now, the Quillpad Server is ready to run

$ python startquill_cherry.py

Additional Information

  • Quillpad runs on port number 8090 (Additional configuration parameters are in quill_cherry8088.conf)

  • processWordJSON and processWord are the API endpoints over which the transliteration server can be accessed.

Example:

  * localhost:8090/processWordJSON?inString=hello&lang=hindi
  * localhost:8090/processWordJSON?inString=hello&lang=kannada

Development

Additional Quillpad Documentation coming soon. Thanks for your patience.

quillpad-server's People

Contributors

sharath-tachyon 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quillpad-server's Issues

Loaded english dictionary from...", fname

Traceback (most recent call last):
File "startquill_cherry.py", line 9, in
from QuillSourceProcessor import QuillSourceProcessor
File "/home/Quillpad-server/QuillSourceProcessor.py", line 131
"Loaded english dictionary from...", fname
^
IndentationError: unexpected indent

KeyError:'hindi' please help

raiderx@raiderx-Lenovo-Z50-70:~/Project/Quillpad-Server-master$ python startquill_cherry.py
Warning: Nevow not found... continuing
Failed to load keyboard map file for gujarati. Exception [Errno 2] No such file or directory: 'unique_gujarati_words.txt'
Failed to load keyboard map file for bengali. Exception [Errno 2] No such file or directory: 'unique_bengali_words.txt'
Failed to load keyboard map file for telugu. Exception [Errno 2] No such file or directory: 'unique_telugu_words.txt'
Failed to load keyboard map file for malayalam. Exception [Errno 2] No such file or directory: 'unique_malayalam_words.txt'
Failed to load keyboard map file for marathi. Exception [Errno 2] No such file or directory: 'unique_marathi_words.txt'
Failed to load keyboard map file for nepali. Exception [Errno 2] No such file or directory: 'unique_nepali_words.txt'
Failed to load keyboard map file for kannada. Exception [Errno 2] No such file or directory: 'unique_kannada_words.txt'
Failed to load keyboard map file for tamil. Exception [Errno 2] No such file or directory: 'unique_tamil_words.txt'
Failed to load keyboard map file for punjabi. Exception [Errno 2] No such file or directory: 'unique_punjabi_words.txt'
Failed to load keyboard map file for hindi. Exception [Errno 2] No such file or directory: 'unique_hindi_words.txt'
Traceback (most recent call last):
File "startquill_cherry.py", line 9, in
from QuillSourceProcessor import QuillSourceProcessor
File "/home/raiderx/Project/Quillpad-Server-master/QuillSourceProcessor.py", line 10, in
import primaryHelper
File "/home/raiderx/Project/Quillpad-Server-master/primaryHelper.py", line 227, in
init()
File "/home/raiderx/Project/Quillpad-Server-master/primaryHelper.py", line 221, in init
d = loadedUniqueWords['hindi']
KeyError: 'hindi'

Unable to run

i tried to run on window 7 , window 10 and Ubuntu 16.04 but no success
i window it give dll error but what type of dll missing not a name of dll so not able to get solve that one
another on Ubuntu its freeze after loading primary rule for Hindi after some retry it gonna automatically stop after loading primary rule for Hindi and return to type new command

i tried on 2 PC with all 3 OS but both have same result on window and Ubuntu
also tried in vmware 12.. is this work in vmware
help me to solve this........

screenshot from 2017-02-03 10-31-41
screenshot from 2017-02-03 10-27-51

Flow of code

Hi,

Can you please give a detail description of the flow of code?

Which one is first and how it connecting to others?

Not able to compile the Quillpad Model loader

I was trying to install quillpad on my windows 10 machine as quillpad is getting closed on their website. I have windows 10, python 3.7. I also downloaded Visual studio 2017 with native drivers. when I run I get this error.

QuillCNCart.c
QuillCNCart.c(12): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [16]'
QuillCNCart.c(104): warning C4013: 'PyInt_FromLong' undefined; assuming extern returning int
QuillCNCart.c(104): warning C4047: 'function': 'PyObject *' differs in levels of indirection from 'int'
QuillCNCart.c(104): warning C4024: 'PyDict_SetItemString': different types for formal and actual parameter 3
QuillCNCart.c(107): warning C4013: 'PyInt_AsLong' undefined; assuming extern returning int
QuillCNCart.c(108): warning C4047: 'function': 'PyObject *' differs in levels of indirection from 'int'
QuillCNCart.c(108): warning C4024: 'PyDict_SetItemString': different types for formal and actual parameter 3
QuillCNCart.c(156): warning C4047: 'function': 'PyObject *' differs in levels of indirection from 'int'
QuillCNCart.c(156): warning C4024: 'PyList_Append': different types for formal and actual parameter 2
QuillCNCart.c(229): error C2039: 'ob_type': is not a member of 'QuillCKnowledge'
QuillCNCart.c(4): note: see declaration of 'QuillCKnowledge'
QuillCNCart.c(247): warning C4013: 'Py_InitModule' undefined; assuming extern returning int
QuillCNCart.c(250): warning C4033: 'initQuillCCart' must return a value
QuillCNCart.c(247): warning C4047: 'initializing': 'PyObject *' differs in levels of indirection from 'int'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86_\x64\cl.exe' failed with exit status 2_

Appreciate any help in resolving this.

quillpad.in going down...

It is sad to see quillpad.in going down. You guys made it so easy to type in Indian languages. Hope to see it up again after a break...

Thanks a lot for hard work and good wishes for your new venture!

Different results on hosted Server

Hi

We have hosted the quillpad server we are getting different results to what your server gives.

Your Server:
http://xlit.quillpad.in/quillpad_backend2/processWordJSON?lang=gujarati&inString=narayan

{"twords": [{"optmap": {"નારયાન": ["ન", "ા", "ર", "", "ય", "ા", "ન"], "નારાયાં": ["ન", "ા", "ર", "ા", "ય", "ા", "ં"], "નારાયાણ": ["ન", "ા", "ર", "ા", "ય", "ા", "ણ"], "નારયાણ": ["ન", "ા", "ર", "", "ય", "ા", "ણ"], "નારયાં": ["ન", "ા", "ર", "", "ય", "ા", "ં"], "નારાયાન": ["ન", "ા", "ર", "ા", "ય", "ા", "ન"], "નારાયણ": ["ન", "ા", "ર", "ા", "ય", "", "ણ"], "નારાયં": ["ન", "ા", "ર", "ા", "ય", "", "ં"], "નારયન": ["ન", "ા", "ર", "", "ય", "", "ન"], "નારાયન": ["ન", "ા", "ર", "ા", "ય", "", "ન"], "નારયં": ["ન", "ા", "ર", "", "ય", "", "ં"], "નારયણ": ["ન", "ા", "ર", "", "ય", "", "ણ"]}, "word": true, "options": ["નારાયૈયાન", "નારયણ", "નારાયણ", "નારયાણ", "નારાયન", "નારાયાણ", "નારયં", "નારાયં", "નારયાં", "નારાયાં", "નારયન", "નારયાન", "નારાયાન"]}], "itrans": "નરયન", "inString": "narayan"}

Our server

http://quill.swaminarayan.faith/processWordJSON?lang=gujarati&inString=narayan
{"twords": [{"optmap": {"narayan": ["narayan"]}, "word": true, "options": ["narayan"]}], "itrans": "નરયન", "inString": "narayan"}

Is there is reason we are not getting multiple options?

Regards
Dinesh

No so file after build

today i build this but after running command i get some warning but no error it,s done but after it their is no QuillCCart.so file but in temp folder 4 file one of them is QuillCCart.lib i tried with these file but can not execute run command..
Error ...
QuillLanguage.py , line 17 in module
from QuillCCart import QuillCKnowledge
ImportError : No Module Name QuillCCart

my os is window 7 64 but it create a temp 32 folder for 4 file
imported i required module but this one ????????????
i can easily program in python but c is making problems
can i get a help about this...
thnx for your help..........

Running python startquill_cherry.py gives syntax error

Prems-Macbook-Pro:Quillpad-Server-master$ python startquill_cherry.py
File "startquill_cherry.py", line 497
cherrypy.engine.subscribe.('start_thread', connect)
^
SyntaxError: invalid syntax
Prems-Macbook-Pro:Quillpad-Server-master$

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.