Name
Text::SenseClusters::LabelEvaluation::Wikipedia::GetWikiData - Module for getting the information about a topic from wikipedia.
SYNOPSIS
#The following code snippet will show how to use this module.
# Including the LabelEvaluation Module.
use Text::SenseClusters::LabelEvaluation::Wikipedia::GetWikiData;
# Defining the topic name for which we will create the file containing their detail
# data from the wikipedia.
my $topicName ="BillClinton";
# The following code will call the getWikiDataForTopic() function from the
# GetWikiData modules. It will create the file containing the wikipedia
# information about the topic.
my $fileName =
Text::SenseClusters::LabelEvaluation::Wikipedia::GetWikiData::getWikiDataForTopic(
$topicName);
print "\nName of the File created for the topic \'$topicName\' is $fileName \n";
DESCRIPTION
Given a topic, this module is responsible for getting the wikipedia
information about it and writing it to file with the file-name as,
'<topic_Name>.txt'
function: getWikiDataFileForTopic
This function will fetch data about a topics from the Wikipedia, then it will write the fetched data into a new file 'topic_Name.txt'.
@argument1 : Name of the topic for which we need to fetch data from the Wikipedia.
@return : Name of the file in which this function has written the data,'topic_Name.txt'.
@description : 1). Reading the topic to read from the function arguments. 2). Use this topic name to create file name in which we will write data about the topic. 3). Get the data from the Wikipedia module about the topic and write it into the above mentioned topic. 4). Return the file name.
function: getWikiDataForTopic() -
This function will fetch data about a topics from the Wikipedia and return to user.
@argument1 : Name of the topic for which we need to fetch data from the Wikipedia. @return : String data about the topics.
SEE ALSO
http://senseclusters.cvs.sourceforge.net/viewvc/senseclusters/LabelEvaluation/
Last modified by : $Id: GetWikiData.pm,v 1.4 2013/02/09 23:43:45 jhaxx030 Exp $
AUTHORS
Ted Pedersen, University of Minnesota, Duluth
tpederse at d.umn.edu
Anand Jha, University of Minnesota, Duluth
jhaxx030 at d.umn.edu
COPYRIGHT AND LICENSE
Copyright (C) 2012 Ted Pedersen, Anand Jha
See http://dev.perl.org/licenses/ for more information.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to:
The Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA