Coder Social home page Coder Social logo

apelles's Introduction

Apelles

This is a visualization library designed around cogcomp's NLP datastructures.

Basics

Requirements: NodeJS, NPM should be installed.

To install dependencies: npm install in the root directory to install required NodeJS modules.

There are two use-cases for the system:

  1. Demo for visualization of annotations (served over networks)
  2. Diff-ing tool for local files containing annotations

Running the demo server

To start the dev server: node server.js

Local comparison and display tool

comparison.js provides a tool for viewing annotations from static files (TextAnnotations serialized as json}, including comparing several different versions of the same annotation of the same text.

Usage for comparing multiple annotation versions:

  1. Create two or more folders, representing versions, of annotation JSON files with identical file names.

    Example: prediction/sample.json and gold/sample.json

  2. Start server with node comparison.js --port <PORT> <FOLDER#1> <FOLDER#2>. This command can be run from any working directory, with <FOLDER> relative to current working directory.

    Example: node comparison.js --port 3154 prediction gold

  3. Browse <SERVER ADDRESS>:<PORT>. All files named according to 1. will be shown under the first drop-down list. Multiple files and view types can be chosen to display vertically in order.

    Example: localhost:3154

Usage for visualizing a single version of annotations:

Same as for multiple versions, but specify a single directory.

Adding a new annotation type

If the name is not already in the available view list, in apelles/public/comparison.html edit the selectpicker element <select class="selectpicker col-xs-12" id="view-selector" data-actions-box="true" multiple> by adding a new option: <option value="MENU_VERSION_OF_YOUR_VIEW_NAME" selected>YOUR_VIEW_NAME</option>

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.