https://github.com/cogcomp/apelles
CogComp-nlp demo
https://github.com/cogcomp/apelles
nodejs visualization visualization-library
Last synced: 4 months ago
JSON representation
CogComp-nlp demo
- Host: GitHub
- URL: https://github.com/cogcomp/apelles
- Owner: CogComp
- Created: 2017-01-02T13:45:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-10T01:21:42.000Z (about 6 years ago)
- Last Synced: 2025-10-03T19:58:49.328Z (5 months ago)
- Topics: nodejs, visualization, visualization-library
- Language: HTML
- Homepage: http://nlp.cogcomp.org
- Size: 3.58 MB
- Stars: 2
- Watchers: 10
- Forks: 8
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`
1. Start server with `node comparison.js --port `.
This command can be run from any working directory, with `` relative to current working directory.
Example: `node comparison.js --port 3154 prediction gold`
1. Browse `:`. 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
``
by adding a new option:
`YOUR_VIEW_NAME`