/ainized-stanfordnlp

API server for StanfordNLP

Primary LanguagePythonMIT LicenseMIT

Run on Ainize

Ainized-StanfordNLP

This repository provides API server using stanfordNLP that contains tools for robust text analytics, including tokenization, multi-word token (MWT) expansion, lemmatization, part-of-speech (POS) and morphological features tagging and dependency parsing.

How to Deploy

Since docker image exceeds 20GB, I recommend using a API server on ainize.

Docker run

docker pull gkswjdzz/ainized-stanfordnlp
docker run -p 80:80 -t gkswjdzz/ainized-stanfordnlp

api server will be running on localhost.

How to Query

On Ainize

First, select language that you are trying to use.

then, write the sentences you want to analyze.

Wait a few seconds, the results come back.

On Local

curl -X POST "http://localhost/analyze" -H "accept: application/json" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "model_treebank={languages_treebank} sentences={sentences}"

You can see the detail of models for human languages from here.

References

StanfordNLP