-
Notifications
You must be signed in to change notification settings - Fork 0
Lexicon Viewer
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.).
To open the Lexicon Viewer, navigate to Window –> Open View –> Other.
This will bring up a pop-up window that should resemble the window below. Underneath the Token folder, select the Lexicon Viewer icon:
Double-click the icon or click “Ok” to bring up the view. The view should look something like this:
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:
- Outer layer: part of speech (“Noun”, “Verb”, etc.).
- 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).
- Lexical Item: a String representing the lemma (if it’s a token) or construction name (if it’s a lexical construction).
- 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.
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.
You can expand the word to view the list of constraints it sets. This is useful for viewing actual semantic information about the token: