logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wnb - WordNet window-based browser interface

Bugs

       Please reports bugs to wordnet@princeton.edu.

WordNet 3.0                                         Dec 2006                                            WNB(1WN)

Description

wnb() provides a window-based interface for browsing the WordNet database, allowing synsets and relations
       to  be  displayed  as  formatted  text.   For each search word, different searches are available based on
       syntactic category and information available in the database.

       wnb is written in Tcl/Tk, which is available for Unix and Windows platforms.  This allows the  same  code
       to work on all supported WordNet platforms without modification.

Diagnostics

       If  the WordNet database files cannot be opened, error messages are displayed.  This is usually corrected
       by setting the environment variables described below to the proper location of the WordNet  database  for
       your installation.

Environment Variables (Unix)

WNHOME              Base directory for WordNet.  Default is /usr/local/WordNet-3.0.

       WNSEARCHDIR         Directory in which the WordNet database has been installed.  Default is WNHOME/dict.

Files

index.pos           database index files

       data.pos            database data files

       *.vrb               files of sentences illustrating the use of verbs

       pos.exc             morphology exception lists

Name

       wnb - WordNet window-based browser interface

Registry (Windows)

HKEY_LOCAL_MACHINE\SOFTWARE\WordNet\3.0\WNHome
                           Base directory for WordNet.  Default is C:\ProgramFiles\WordNet\3.0.

       HKEY_CURRENT_USER\SOFTWARE\WordNet\3.0\wnres
                           User's default browser options.

Searching The Database

       The  WordNet  browser  navigates  through  WordNet  in  two steps.  First a search word is entered and an
       overview of all the senses of the word in all syntactic categories is displayed in  the  Results  Window.
       The  senses  are  grouped  by  syntactic  category,  and each synset is annotated as described above with
       synset_offset, lex_filename, and sense_number as dictated  by  the  advanced  search  options  set.   The
       overview  search  also indicates how many of the senses in each syntactic category are represented in the
       tagged texts.  This is a way for the user to determine  whether  a  sense's  sense  number  is  based  on
       semantic  tagging data, or was arbitrarily assigned.  For each sense that has appeared in such texts, the
       number of semantic tags to that sense are indicated in parentheses after the sense number.

       Then, within a syntactic category, a specific search is selected.  The desired search  is  performed  and
       the  search  results  are  displayed  in the Results Window.  Additional searches on the same word can be
       performed, or a new search word can be entered.

       To enter a search word, click the mouse in the horizontal box labeled SearchWord, type  a  single  word,
       hyphenated string, or collocation and press RETURN.wnb()  responds  by  making  a  set  of Part of Speech buttons appear in the Search Selection line.  Each
       button corresponds to a syntactic category in which the search string is defined in WordNet.  At the same
       time, an Overview of the synsets for all senses of the search word is displayed in  the  Results  Window.
       The  Overview  includes the gloss for each synset and also indicates which of the senses have appeared in
       the semantically tagged texts.  For each sense that has appeared in such texts, the  number  of  semantic
       tags to that sense are indicated in parentheses after the sense number.

       The  pulldown  menus  in the Search Selection line list all of the WordNet searches that can be performed
       for the search word in that part of speech.  To select a search, highlight it by dragging  the  mouse  to
       it,  and  release  the  mouse  while  it is highlighted.  Drag the mouse outside of the pulldown list and
       release to hide the menu without making a selection.  Dragging  the  mouse  across  the  Part  of  Speech
       buttons displays the available searches for each syntactic category.

       To  restrict a search to one or more senses within a syntactic category, enter a comma or space separated
       list of sense numbers in the Senses box before selecting a search.

       After a search is selected, wnb() performs the search on the WordNet database and displays the  formatted
       results  in  the  Results  Window.   Whenever  search  results are displayed, a button entitled RedisplayOverview is present at the right edge of the Search Word Entry line.  Clicking on this button  redisplays
       the Overview of all synsets for the search word in the Results Window.

   ChangingtheSearchWord
       A  new  search  word  can  be  entered  at  any time by moving to the Search Word Entry box, if necessary
       highlighting it by clicking, erasing the old string, typing a new one and pressing  RETURN.   The  Senses
       box is cleared if necessary, the Part of Speech buttons applicable to the new search word appear, and the
       Overview for the new search word is displayed.

       The  middle  mouse button can also be used to select a new search word by placing the mouse over any word
       in the Results Window and clicking.  The selected word will replace the text in  the  Search  Word  Entry
       box, and the overview for that word will automatically be displayed.

       To  select  a  new search string collocation from text in the Results Window, highlight the text with the
       mouse and press CONTROL-S.InterruptingaSearch
       When a search is in progress the message "Searching...(pressescapetoabort)" is displayed in the Status
       Line.  Note that most searches return very quickly, so this  message  isn't  noticeable.   As  indicated,
       pressing  the  ESCAPE  key will interrupt the search.  The results of the search obtained before the time
       the search was interrupted are displayed in the Results Window.

See Also

wnintro(1WN),  wn(1WN), wnintro(3WN), lexnames(5WN), senseidx(5WN), wndb(5WN), wninput(5WN), morphy(7WN),
       wngloss(7WN), wngroups(7WN).

Shorcuts

       Clicking on any word in the Results Window while holding down the SHIFT key on the  keyboard  causes  the
       browser  to  replace SearchWord with the word and display its Overview and available searches.  Clicking
       on any word in the Results Window with the middle mouse button does the same thing.

       Pressing the CONTROL-S keys causes the browser to do as above on the text that is currently  highlighted.
       Under  Unix,  this will work even if the highlighted text is in another window.  This works on hyphenated
       strings and collocations, as well as individual words.

       Pressing the CONTROL-G keys displays the Substring Search Window.

Synopsis

wnb

Wnb Windows

wnb()  was  developed with the philosophy that only those searches and buttons that are applicable at the
       current time are displayed.  As a result, the appearance of the interface changes as it is used.  Use the
       standard windowing system mouse functions to open and close the WordNet Browser Window, move the  window,
       and change its size.

       The WordNet Browser Window contains the following areas, from top to bottom:

       Menubar             A  menubar  runs  along  the top of the browser window with pulldown menus and button
                           entitled File, History, Options, and Help.

       Search Word Entry   Below the Menubar is a line for entering the search word.  A search  word  can  be  a
                           single  word,  hyphenated  string, or a collocation.  Case is ignored.  Although only
                           uninflected forms of words are usually  stored  in  WordNet,  users  may  search  for
                           inflected   forms.    WordNet's   morphological   processor   finds   the  base  form
                           automatically.

       Search Selection    Below the Search Word Entry line is an area for selecting the search type and  senses
                           to  search.   Until a search word is entered this area is blank.  After a search word
                           is entered, buttons appear corresponding to  each  syntactic  category  (Noun,  Verb,
                           Adjective, Adverb) in which the search string is defined in WordNet.

                           At  the  right edge of the Search Selection line is a box for entering sense numbers.
                           When this box is empty, search results for all senses of the search word  that  match
                           the  search type are displayed.  The search may be restricted to one or more specific
                           senses by entering a comma or space separated list of sense  numbers  in  the  Senses
                           box.   These  sense numbers remain in effect until either the user changes or deletes
                           them, or a new search word is entered.

       Results Window      Most of the browser window consists of a large text buffer for displaying the results
                           of WordNet searches.  Horizontal and vertical scroll bars are present  for  scrolling
                           through the output.

       Status Line         A  status  line  is  at  the  bottom  of the browser window.  When search results are
                           displayed in the Results Window,  this  status  line  reflects  the  type  of  search
                           selected.   When  there is no search word entered, your are prompted to "Entersearchwordandpressreturn."  If the search word entered is not in  WordNet,  the  message
                           "Sorry,nomatchesfound." is displayed.

See Also