View on
Ted Pedersen > WordNet-SenseRelate-AllWords >


Annotate this POD


Open  0
View/Report Bugs

NAME ^ - [Web] The server for allwords.cgi and version.cgi


This script implements the backend of the web interface for WordNet::SenseRelate::AllWords

This script listens to a port waiting for a request form allwords.cgi or version.cgi. If disambiguation request is made by allwords.cgi, the server first gets input options from allwords.cgi. Then it creates AllWords object. Using AllWords object and input options disambiguate method is called. The result returned by disambiguate is checked and appropriate message is sent back to allwords.cgi client.

Client-Server Communication The server loads all the required modules and listens to the port 32323. The client sends informtation with a preamble to know the server what kind of input data it is going to get. For example, the client reads the text to be disambiguated from the user and sends the context file to the server as below

<start-of-context> context-line 1 context-line 2 context-line 3 . . . <end-of-context>

The tags <start-of-context> and <end-of-context> are not going to conflict with the text to be disambiguated as we clean the text before disambiguation and hence the characters '<' and '>' will be removed from the text.

If the version information is requested, appropriate version information of the respective components is fetched and is passed to version.cgi client.

If the client requests for trace level, then trace output is fetched calling getTrace() method of

Along with sending all information to the client, the server also stores all the input data and result files on the server machine in a unique directory for each client.


 Varada Kolhatkar, University of Minnesota, Duluth
 kolha002 at

 Ted Pedersen, University of Minnesota, Duluth
 tpederse at

This document last modified by : $Id:,v 1.39 2009/05/27 19:56:57 kvarada Exp $


allwords.cgi, version.cgi, README.web.pod


Copyright (c) 2008, Varada Kolhatkar, Ted Pedersen, Jason Michelizzi

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

Note: a copy of the GNU Free Documentation License is available on the web at and is included in this distribution as FDL.txt.

syntax highlighting: