olam-ml-en
API written in Flask to find English meaning for a Malayalam word. This API uses Olam dictionary
Requirements
- MongoDB
- Python
- Libindic Normalizer, already included under
dist/
Install
$ git clone https://github.com/sreecodeslayer/olam-ml-en.git
$ cd olam-ml-en
$ pip install dist/libindic-normalizer*.tar.gz
$ pip install -r requirements.txt
$ python app.py
Also, if your MongoDB is having Auth, please provide the auth uri for MongoClient in
app.py
, see here
Usage
Send GET request as
http://127.0.0.1:1122/search?text=കാര്യം
will give a JSON
output as:
{
"result": [
"Tender spot",
"Thing",
"Turn",
"Problem",
"Proceeding",
"Purpose",
"Pursuit",
"Question",
"Relation",
"Requirement",
"In case",
"Item",
"Matter",
"Pace",
"Part",
"Particular",
"Point",
"Act",
"Affair",
"Business",
"Concern",
"Deed",
"Fact",
"Factor"
]
}
or
http://127.0.0.1:1122/search?text=നിറഞ്ഞു വഴിയുന്ന
will give a JSON
output as:
{
"result": [
"Profuse"
]
}
Mentions
- Libindic Normalizer for the module to handle ZWNJ Chillu in Malayalam texts.