Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

deephand/turkish-nlp-apis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turkish NLP APIs

This is a repo where I plan to put my experimental models behind a REST API to be deployed in Heroku. It is a Python Flask server running behind gunicorn.

Current APIs:

  1. /nlp/stemmer/q=**words**: returns the stems of words using a Seq2Seq Neural Model
    1. Params:
      • words (str): contains 1+ words. Special characters like quote, question mark will be discarded
    2. Returns:
      • stemmed words (str). Not wrapped in any JSON or similar for now.
    3. Model details:
    4. Training data details:
      • I once found a Turkish corpus from Zargan containing words, their roots, freqs, etc. Now it's not online. I used 50k word pairs for training & testing.
    5. Example Usages (already deployed):

Setup:

  1. curl https://cli-assets.heroku.com/install.sh | sh # https://devcenter.heroku.com/articles/heroku-cli#standalone-installation
  2. heroku login --interactive
  3. python -m venv venv
  4. . venv/bin/activate
  5. pip install -r requirements.txt
  6. heroku create
  7. git push heroku main

Local testing:

  1. heroku local

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages