Giter Site home page Giter Site logo

nlpbox / rstviewer-service Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 20 KB

DEPRECATED, please use rstweb-service instead.

Home Page: https://github.com/nlpbox/rstweb-service

Python 90.18% Dockerfile 9.82%
rhetorical-structure-theory rs3 rest api

rstviewer-service's Introduction

Warning

This repository is DEPRECATED, please use the REST API of rstWeb instead: https://github.com/NLPbox/rstweb-service

rstviewer-service

This docker container allows you to build, install and run rstviewer as a REST API in a docker container.

rstviewer is a command-line tool for converting Rhetorical Structure Theory rs3 files into images. It is heavily based on Amir Zeldes' rstWeb, a web based annotation tool for rhetorical structures.

Installation

You can either build the service locally and run it like this:

git clone https://github.com/NLPbox/rstviewer-service
cd rstviewer-service
docker build -t rstviewer-service .
docker run -p 8000:8000 -ti rstviewer-service

Or, you can just run a pre-built docker container from Docker Hub:

docker run -p 8000:8000 -ti nlpbox/rstviewer-service

Usage

rstviewer-service can either convert an .rs3 file into a .png image of the Rhetorical Structure tree or return a base64 encoded string of a .png image.

curl -X POST -F "[email protected]" http://localhost:8000/rs3_to_png > output.png
curl -X POST -F "[email protected]" http://localhost:8000/rs3_to_png_base64 | base64 --decode > decoded.png

rstviewer-service's People

Contributors

arne-cl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.