Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WoodProgrammer/Turkish-Language-NLP-API

Repository files navigation

ENGLISH DOCUMENTATION VALIDATOR FOR TURKISH AUTHORS

TLNP is a Turkish Language formatting API for creating perfect documents.At now it is on the Raw potatoes release.

Validate the accuracy of word:

 $ curl localhost:5000/waz
 $ {
 "freq": null,
 "occurs": "250.0",
 "status": false,
 "word": "was"
}

Validate the accuracy of word:

 $ curl localhost:5000/validators/eurovision%20ukraine
 $ {
 "accuracy": 100,
 "all_words": "eurovision ukraine",
 "true_words": "[u'eurovision', u'ukraine']"
 }

And Result

Validate the paragrapgh:

And Result

#NOTICE:On our road map we will add the succes score of whole paragrapgh

For use this API:

First:

For Linux

 $ sudo apt-get install python-pip python-dev build-essential

For OSX:

$ sudo curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
$ sudo python get-pip.py

And after:

This is for creating own virtual workspace. $ pip install virtualenv

After installed these modules without any error.

`$ cd FLASK-API/
 $ source api/bin/activate`

You can activate the virtualenv but you need install packages again:

 `$(api) pip install -r requirements.txt`

(FOR YOUR HOST .) $ pip install -r requirements.txt Adding data to your REDIS-DB-SERVER:

 $ python FLASK-API/api/interface/data_clean.py

For run the server:

`(api) $ python server.py`

And server is runnig:

`localhost:5000/api`
After client-test:
`$ python client.py`
`localhost:4000`

FOR USE THE ON DOCKER: Change the directory

 $ cd composetest

Build container on your system:

$ docker-compose build

Wake up the containers

$ docker-compose up

localhost:5000 is default IP on your local address.

Notice: On this docker we only added redis test service.We will integrate the other main web services.

If you did not install Docker to on your host machine look the Docker-Docs:

DOCKER-DOCUMENTATION

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /