-
Recent Posts
Recent Comments
Categories
Tags
backpacking beer boston california cartography colors computers conspiracy consumer coverup cron database dd-wrt fibs finance fun functional-programming google government hiking homebrewing hugin jvm library maps netflix network news nuclear-power osx panoramic performance photography programming python quality question-answer recipe sanfrancsico sbt scala scalaz traffic-shaping type-erasure web
Archives
- January 2016
- April 2015
- February 2015
- May 2014
- April 2014
- February 2014
- July 2013
- April 2013
- October 2012
- March 2012
- December 2011
- November 2011
- June 2011
- December 2010
- November 2010
- August 2010
- July 2010
- June 2010
- September 2009
- August 2009
- May 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- August 2008
- July 2008
- March 2008
- February 2007
- June 2006
- May 2006
- April 2006
-
RSS Links
POD: Search::Lemur
NAME
Lemur – class to query a Lemur server, and parse the results
VERSION
Version 1.00
SYNOPSYS
DESCRIPTION
This module will make it easy to interact with a Lemur
Toolkit for Language Modeling and Information Retrieval
server for information retreival exercises. For more
information on Lemur, see http://www.lemurproject.org/.
This module takes care of all parsing of responses from
the server. You can just pass a query as a
space-separated list of terms, and the module will give
you back an array of
result
objects.Main Methods
new($url)
Create a new Lemur object, connecting to the given Lemur server.
The
$url
should be a full URL, ending in something like ‘lemur.cgi’.url()
Return the URL of the Lemur server
listdb()
Get some information about the databases available
Returns an array of Lemur::Database objects.
d([num])
Set the database number to query. This will specify the
database number instead of just using the default databse 0.
If the
num
is not specified, the the current database is returned.v(string)
Make a query to the Lemur server. The query should be a space-delimited
list of query terms. If the URL is has not been specified, this will die.
Be sure there is only one space between words, or something unexpected may
happen.
Returns an array of results (See the Lemur::result manpage). There will
be a result for each query term.
m(string)
Returns the lexicalized (stopped & stemmed) version of the given
word. This is affected by weather or not the current database
is stemmed and/or stopworded. Basically, this is the real word
you will end up searching for.
Returns a string.
AUTHOR
Patrick Kaeding,
<pkaeding at cpan.org>
BUGS
Please report any bugs or feature requests to
bug-search-lemur at rt.cpan.org
, or through the web interface athttp://rt.cpan.org/NoAuth/ReportBug.html.
I will be notified, and then you’ll automatically be notified of progress on
your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
You can also look for information at:
http://annocpan.org/dist/Search-Lemur
http://cpanratings.perl.org/d/Search-Lemur
http://rt.cpan.org/NoAuth/Bugs.html
http://search.cpan.org/dist/Search-Lemur
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2007 Patrick Kaeding, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.