Skip to content

Viewlabels Tutorial

linfrank edited this page Aug 16, 2012 · 1 revision

ViewLabels Tutorial

ViewLabels allows one to see a TextBase and how it has been labeled. This is a simple way to see whether data is loading correctly and see what has been labeled graphically. To run ViewLabels:

$ java –Xmx500M edu.cmu.minorthird.ui.ViewLabels –labels DATA

Note: XML tags or a labels file with the same name as the directory will be automatically loaded.

A window like this will appear:

The top left section is the collection of all documents, the bottom section contains the currently selected document, and the top right section are the controls for highlighting labels. To highlight a certain SpanType or SpanProp, click the respective tab and select a color and type you would like to see. Once something is selected, press the Apply button to see the results.

You can also compare two types, which is particularly useful when you are looking to compare extracted types to true types. Here is what it may look like:

As shown above, when both types math the word turns green. If a word is labeled as the first type but not the second, the word turns red, and if a word is labeled as the second type but not the first, the word turns blue.

Note: there may be a NullPointerException after you run ViewLabels; this is a swing bug and may be ignored.