Giter Site home page Giter Site logo

anuragsinghchaudhary / swell-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spraakbanken/swell-editor

0.0 1.0 0.0 2.25 MB

Editor for normalising learner texts (error annotation and tagging.)

License: MIT License

TypeScript 93.48% JavaScript 4.59% Shell 0.47% TeX 1.39% Makefile 0.01% Dockerfile 0.06%

swell-editor's Introduction

SweLL normalization editor

This is an editor for pseudonymizing, normalising, and correction annotating learner texts.

Actually it is a glorified diff editor which makes a word-aligned parallel text, like this:

This tool is in active development, and described further here:

Slides, change slides with up and down arrows:

Build status

Running the tool

yarn
yarn run serve

Testing

yarn run test

End to end:

yarn run serve # start server on port 1234
yarn run test:e2e

Coverage:

yarn run coverage

While developing:

yarn run doctest:watch

Deployment

SB-specific:

yarn run deploy

Updating the taxonomy

The intent is that the taxonomy should come from the backend. However, it can also be updated in src/Editor/Config.ts and then deployed (see above).

Backend connection

The url hash contains two fields for talking to a backend: backend and essay. The backend should a base64 encoded url. You can set this from the developer console like this:

store.update({
  backend: 'https://spraakbanken.gu.se/swell/dev-backend/annotation/essay/',
  essay: 'K0Rv',
})

The store is only fetched on page load, so you'll need to reload the page after setting this.

The start_mode flag can be anon, norm or corr and will start the editor in that mode.

Note that while there is a backend connected it is not possible to change mode (anonymisation or normalisation) or edit the source text.

The backurl will add a back link to an url (base64-encoded).

Images of Spaghetti as a Service

There is also a web-service that takes a compact description of a parallell corpus sentence and renders it as a png, like this:

This is run with

yarn run iosaas

The frontend and backend dependencies are shared in one big package.json for convenience.

SB-specific: The web service is run on kork using supervisord on port 8003 and its htaccess file is on k2 at /export/htdocs_sbws/ws/swell.

swell-editor's People

Contributors

arildm avatar jroxendal avatar cajosc avatar elenavolodina avatar malinahlberg avatar

Watchers

James Cloos 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.