You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+20-11
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,28 @@
1
1
# The MMIF Visualization Server
2
2
3
-
This application creates an HTML server that visualizes annotation components in a [MMIF](https://mmif.clams.ai) file. Supported annotations are:
3
+
This application creates an HTML server that visualizes annotation components in a [MMIF](https://mmif.clams.ai) file. It contains the following visualizations for any valid MMIF:
4
4
5
-
- Video or Audio file player with HTML5.
6
-
-[WebVTT](https://www.w3.org/TR/webvtt1/) for showing alignments.
5
+
- Video or Audio file player with HTML5 (assuming file refers to video and/or audio document).
7
6
- Pretty-printed MMIF contents.
8
-
- Javascript for bounding boxes.
9
-
- Named entity annotations with [displaCy.](https://explosion.ai/demos/displacy-ent)
7
+
- Interactive, searchable MMIF tree view with [JSTree](https://www.jstree.com/).
8
+
- Embedded [Universal Viewer](https://universalviewer.io/) (assuming file refers to video and/or image document).
9
+
10
+
11
+
The application also includes tailored visualizations depending on the annotations present in the input MMIF:
12
+
| Visualization | Supported CLAMS apps |
13
+
|---|---|
14
+
|[WebVTT](https://www.w3.org/TR/webvtt1/) for showing alignments of video captions. |[Whisper](https://github.com/clamsproject/app-whisper-wrapper), [Kaldi](https://github.com/clamsproject/app-aapb-pua-kaldi-wrapper)|
15
+
| Javascript bounding boxes for image and OCR annotations. |[Tesseract](https://github.com/clamsproject/app-tesseractocr-wrapper), [EAST](https://github.com/clamsproject/app-east-textdetection)|
16
+
| Named entity annotations with [displaCy.](https://explosion.ai/demos/displacy-ent)|[SPACY](https://github.com/clamsproject/app-spacy-wrapper)||
17
+
18
+
10
19
11
20
Requirements:
12
21
13
22
- A command line interface.
14
23
- Git (to get the code).
15
-
-[Docker](https://www.docker.com/) (if you run the visualizer using Docker).
16
-
- Python 3.6 or later (if you want to run the server without Docker).
24
+
-[Docker](https://www.docker.com/)or [Podman](https://podman.io/) (if you run the visualizer in a container).
25
+
- Python 3.6 or later (if you want to run the server containerless).
Download or clone this repository and build an image using the `Dockerfile` (you may use another name for the -t parameter, for this example we use `clams-mmif-visualizer` throughout).
37
+
Download or clone this repository and build an image using the `Dockerfile` (you may use another name for the -t parameter, for this example we use `clams-mmif-visualizer` throughout).**NOTE**: if using podman, just substitute `docker` for `podman` in the following commands.
In these notes we assume that the data are in a local directory named `/Users/Shared/archive` with sub directories `audio`, `image`, `text` and `video` (those subdirectories are standard in CLAMS, but the parent directory could be any directory depending on your local set up). We can now run a Docker container with
@@ -56,7 +65,7 @@ With this, the mounted directory `/data` in the container is accessable from ins
56
65
57
66
58
67
59
-
## Running the server without Docker
68
+
## Running the server without Docker/Podman
60
69
61
70
First install the python dependencies listed in `requirements.txt`:
0 commit comments