Package nltk :: Package app :: Module wxwordnet_app
[hide private]
[frames] | no frames]

Module wxwordnet_app

source code


Wordnet Interface: Graphical Wordnet Browser

    python wxbrowse.py
    
    This has a GUI programmed using wxPython and thus needs wxPython
    to be installed.

    Features of wxbrowse.py:

     - A short help display at the start
     - Notebook UI: tabsheets with independent search histories
     - Menu
     - File functions: page save&open, print&preview
     - Tabsheet functions: open&close; start word search in a new tabsheet
     - Page history: previous&next page
     - Font size adjustment: increase&decrease&normalize
     - Show Database Info:
       - counts of words/synsets/relations for every POS
       - example words as hyperlinks, 1 word for every relation&POS pair
     - Help
     - The position and size of the browser window and the font size
       chosen is remembered between sessions.
     - Possibility to give several words/collocations to be searched
       and displayed at the same time by separating them with a comma
       in search word(s) field
     - Tries to deduce the stems of the search word(s) given
     - Showing the parts of speech for a word typed in the search field
     - Showing the parts of speech for a word clicked in one of the
       synsets
     - Showing the relation names for a synset when S: is clicked and
       hiding them again at the second click.
     - Showing the synsets for a relation. This covers most of the
       relations for nouns and some relations for other POS's also.

Classes [hide private]
MyHtmlWindow
NB
HtmlPanel
MyHtmlFrame
Functions [hide private]
 
_initalize_options() source code
 
_adjust_pos_and_size(frame) source code
 
get_static_wx_help_page()
Return static WX help page.
source code
 
app() source code
Variables [hide private]
  frame_title = 'NLTK Wordnet Browser'
  help_about = frame_title+ __doc__
  options_dict = {}
  nltk_prefs_dir = os.path.curdir
  pickle_file_name = os.path.join(nltk_prefs_dir, (frame_title+ ...
  WORDNET_DB_INFO_FILEPATH = 'NLTK Wordnet Browser Database Info...
Variables Details [hide private]

pickle_file_name

Value:
os.path.join(nltk_prefs_dir, (frame_title+ os.path.extsep+ 'pkl'))

WORDNET_DB_INFO_FILEPATH

Value:
'NLTK Wordnet Browser Database Info.html'