This is the web interface for libindic librarires, developed to provide an easy way to try out the features.
Clone this repository, and prepare a virtual envirorment
python -m venv ENV_DIR
And activate it using
source ENV_DIR/bin/activate
Install all the required libraries
pip install -r requirements.txt
Run the webserver
flask run
You may also run the same using gunicorn.
gunicorn libindic.web:app
For the script rendered module, there is a dependecy on some system libraries.
Pango
and cairo
can not be installed with pip and need to be installed
from your platform’s packages. lxml
and CFFI
can, but you’d still need
their own dependencies. This section lists system packages for lxml or
CFFI when available, the dependencies otherwise. lxml needs libxml2
and libxslt
, CFFI needs libffi
. On Debian, the package names with
development files are libxml2-dev
, libxslt1-dev
and libffi-dev
.
sudo apt-get install python-dev python-pip python-lxml libcairo2 \
libpango1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info
sudo yum install python-devel python-pip python-lxml cairo pango gdk-pixbuf2\
libffi-devel
sudo pacman -S python-pip python-lxml cairo pango gdk-pixbuf2
sudo port install py27-pip py27-lxml cairo pango gdk-pixbuf2 libffi
brew install python cairo pango gdk-pixbuf libxml2 libxslt libffi
The following modules are available under libindic:
- Soundex
- ApproxSearch
- Transliteration
- Spellchecker
- Hyphenation
- Chardetails
- Payyans
- Text Similarity
- N Gram
- Sort
- Indic Stemmer
- Katpayadi Numbers
- shingling
- Indic-fortune
- scriptrender
Modules to be used with libindic can be configured in the app.conf file. Modules marked 'yes' should be installed before running SILPA