| Home | Trees | Indices | Help |
|
|---|
|
|
A WordNet Browser application which launches the default browser (if it is not already running) and opens a new tab with a connection to http://localhost:port/ . It also starts an HTTP server on the specified port and begins serving browser requests. The default port is 8000. (For command-line help, run "python wordnet -h") This application requires that the user's web browser supports Javascript.
BrowServer is a server for browsing the NLTK Wordnet database It first launches a browser client to be used for browsing and then starts serving the requests of that and maybe other clients
Usage:
browserver.py -h browserver.py [-s] [-p <port>]
Options:
-h or --help
Display this help message.
-l <file> or --log-file <file>
Logs messages to the given file, If this option is not specified
messages are silently dropped.
-p <port> or --port <port>
Run the web server on this TCP port, defaults to 8000.
-s or --server-mode
Do not start a web browser, and do not allow a user to
shotdown the server through the web interface.
|
|||
| MyServerHandler | |||
|
Reference A reference to a page that may be generated by page_word |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| str |
|
||
|
|||
|
|||
|
|||
| str |
|
||
|
|||
| str |
|
||
|
|||
|
|||
| A tuple (str,str) |
|
||
| A tuple (str,str) |
|
||
| A tuple (str,str) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
firstClient = True
|
|||
server_mode = None
|
|||
logfile = None
|
|||
FAVICON_BASE64_DATA =
|
|||
HYPONYM = 0
|
|||
HYPERNYM = 1
|
|||
PART_HOLONYM = 3
|
|||
PART_MERONYM = 4
|
|||
ATTRIBUTE = 5
|
|||
SUBSTANCE_HOLONYM = 6
|
|||
SUBSTANCE_MERONYM = 7
|
|||
MEMBER_HOLONYM = 8
|
|||
MEMBER_MERONYM = 9
|
|||
VERB_GROUP = 10
|
|||
INSTANCE_HYPONYM = 12
|
|||
INSTANCE_HYPERNYM = 13
|
|||
CAUSE = 14
|
|||
ALSO_SEE = 15
|
|||
SIMILAR = 16
|
|||
ENTAILMENT = 17
|
|||
ANTONYM = 18
|
|||
FRAMES = 19
|
|||
PERTAINYM = 20
|
|||
CLASS_REGIONAL = 23
|
|||
CLASS_USAGE = 24
|
|||
CLASS_CATEGORY = 11
|
|||
DERIVATIONALLY_RELATED_FORM = 25
|
|||
INDIRECT_HYPERNYMS = 26
|
|||
html_header =
|
|||
html_trailer =
|
|||
explanation =
|
|||
full_hyponym_cont_text =
|
|||
|
|||
Extract the unique counter from the URL if it has one. Otherwise return null. |
Run NLTK Wordnet Browser Server.
|
This function returns the complete pos tuple for the partial pos tuple given to it. It attempts to match it against the first non-null component of the given pos tuple. |
Get synset relations data for a synset. Note that this doesn't yet support things such as full hyponym vs direct hyponym. |
Return a HTML page of NLTK Browser format constructed from the word and body
|
Returns the HTML string for one synset or word
|
Builds the HTML string for the relations of a synset
|
Return a HTML page for the given word.
|
Returns a tuple of the HTML page built and the new current word
|
Returns a tuple of the HTML page built and the new current word
|
Return the upper frame page, If with_shutdown is True then a 'shutdown' button is also provided to shutdown the server. |
|
|||
FAVICON_BASE64_DATA
|
html_header
|
explanation
|
full_hyponym_cont_text
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:40 2011 | http://epydoc.sourceforge.net |