Skip to content
Sean Trott edited this page Jul 6, 2016 · 9 revisions

contact: seantrott at icsi.berkeley.edu


Another new tool in ECG 2.0 is the Lexicon Viewer, which allows you to view all of the words in a grammar, partitioned by part of speech (Verb, Noun, etc.) and "type" (MotionType, EntityType, etc.).

Opening the View

To open the Lexicon Viewer, navigate to Window –> Open View –> Other.

viewer

This will bring up a pop-up window that should resemble the window below. Underneath the Token folder, select the Lexicon Viewer icon:

Viewer2

Double-click the icon or click “Ok” to bring up the view. The view should look something like this:

View3

Using the view

The view is a four-layered expandable tree, which categorizes each lexical item into its part-of-speech and parent-type, respectively. Specifically, the layers are ordered as follows:

  1. Outer layer: part of speech (“Noun”, “Verb”, etc.).
  2. Middle layer: the type of parent construction (if lexical item is a token; “Color-Type”, “SelfMotionType”, etc.), or a general category called “Lexical-Cxns” (if lexical item is a lexical construction, rather than a token).
  3. Lexical Item: a String representing the lemma (if it’s a token) or construction name (if it’s a lexical construction).
  4. Constraints: the tree slot can be expanded to view a list of the constraints set by that token.

When the view first opens, each of the part-of-speech headings are collapsed. You can click the horizontal arrow next to each part-of-speech heading to open up the list of type-categories below. Highlighting a type-construction will open the page in the ECG Editor that contains that construction.

View4

You can expand each individual type-category to view the different tokens of that type construction. Highlighting a token will open the “.token” file in the ECG Editor that contains the definition for that token.

View5

You can expand the word to view the list of constraints it sets. This is useful for viewing actual semantic information about the token:

Vew6