Skip to content

Commit

Permalink
created readme.org
Browse files Browse the repository at this point in the history
  • Loading branch information
finn committed Jan 25, 2024
1 parent 2537b09 commit c3389d8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
5 changes: 0 additions & 5 deletions README.md

This file was deleted.

46 changes: 46 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
* Stanza NLP Service
** Features
- On-Demand Model Downloads: Automatically downloads necessary Stanza models for different languages as required.
- Pipeline Caching: Quick second-response times by caching pipelines.

** Usage

*** Run the Docker Container
#+begin_src bash
docker run -p 5000:5000 -v stanza_resources:/root/stanza_resources vivalence/dockerized-stanza-nlp
#+end_src
- Maps host's port 5000 to container's port 5000 for accessing the service.

*** Run Docker Compose (if applicable)
#+begin_src yaml
version: '3'
services:
stanza-nlp:
image: vivalence/dockerized-stanza-nlp
ports:
- "5000:5000"
volumes:
- stanza_resources:/root/stanza_resources
volumes:
stanza_resources:
#+end_src

** Data Structure / API Interface
- POST request to /nlp endpoint with the following JSON structure:
#+begin_src json
{
"language": "en",
"text": "Hello World!",
"processors": "tokenize,mwt,pos,lemma,depparse"
}
#+end_src

** Response
- The service returns a JSON response containing processed NLP data:
#+begin_src json
{
"sentences": [...],
"entities": [...]
}
#+end_src
- Includes tokenized sentences, POS tags, lemmas, and dependency parse information.

0 comments on commit c3389d8

Please sign in to comment.