NAME

allwords_server.pl - [Web] The server for allwords.cgi and version.cgi

SYNOPSIS

 $client = $sock->accept();

 my $obj = WordNet::SenseRelate::AllWords->new(%options);

 my @res = $obj->disambiguate (window => $windowSize, 
				scheme => $scheme, 
				tagged => $istagged, 
				context => [@context]);

 foreach $val (@res)
	print $client "\n$val : $gloss\n";
	

DESCRIPTION

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.

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 AllWords.pm.

After all processing is done, it moves the user_data along with the tarball of result files to htdocs/allwords/user_data directory.

AUTHORS

Varada Kolhatkar, University of Minnesota, Duluth
kolha002 at d.umn.edu

Ted Pedersen, University of Minnesota, Duluth
tpederse at d.umn.edu

This document last modified by : $Id: allwords_server.pl,v 1.7 2008/04/10 04:10:30 tpederse Exp $

SEE ALSO

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

COPYRIGHT AND LICENSE

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 http://www.gnu.org/copyleft/fdl.html and is included in this distribution as FDL.txt.