GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CentreForDigitalHumanities/spindle-server: Simple Flask-based webserver for Spindle

BranchesTags
Open more actions menu

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.py
app.py
 
 
atom_map.tsv
atom_map.tsv
 
 
bert_config.json
bert_config.json
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

DOI License

Spindle Server

Spindle Server contains a Dockerfile that can be used to create a containerised Flask server with the Spindle parser, which produces type-logical analyses of Dutch sentences. This project is built as a dependency to ParsePort.

Contents

The main entry point is a Dockerfile that will create a container, install the necessary dependencies and move the atom_map.tsv and bert_config.json files over to the container. In addition, this repository expects to find a file with PyTorch model weights (model_weights.pt).

Prerequisites

A host machine with Docker installed and internet access.

Usage

  1. Put a copy of model_weights.pt in the root directory of this repository.

  2. Build an image with docker build -t spindle-server:latest .

  3. Run container and expose a port with docker run -d -p 32768:32768 --name spindle-server spindle-server

  4. After successful startup, the server will setup the parser. This may take a few minutes.

  5. Connect to the parser by sending a request to localhost:32768. The request should be a JSON object of the shape { 'input': '<my-sentence>'}, where <my-sentence> should be replaced with a Dutch sentence.

  6. If the parse fails, a response with status code 500 is returned. If the parser returns a so-called proof, it is included in the response.

  7. Upon successful parsing, the server will return a JSON object containing the following properties.

    • tex: the full analysis of the sentence in .tex format;
    • proof: the proof of the analysis (in JSON format);
    • lexical_phrases: analyses of the individual phrases (in JSON format).

Licence

Spindle Server is shared under a BSD 3-Clause licence. See LICENSE for more information.

Citation

If you wish to cite this repository, please use the metadata provided in our CITATION.cff file.

Contact

For questions, small feature suggestions, and bug reports, feel free to create an issue. If you do not have a Github account, you can also contact the Centre for Digital Humanities.

About

Simple Flask-based webserver for Spindle

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.