Text::SenseClusters::LabelEvaluation::Wikipedia::GetWikiData - Module for getting the information about a topic from wikipedia.


        #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";

        # This tells to not to create the temp files (which will held the data feteched from 
        # wikipedia). To keep this file make it 0.
        my $isClean = 1;

        # 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 = 
                                                        $topicName, $isClean);

        print "\nName of the File created for the topic \'$topicName\' is $fileName \n";


                Given a topic, this module is responsible for getting the wikipedia 
                information about it and writing it to file with the file-name as, 

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.


Last modified by : $Id:,v 1.6 2013/03/18 02:17:16 jhaxx030 Exp $


        Ted Pedersen, University of Minnesota, Duluth
        tpederse at

        Anand Jha, University of Minnesota, Duluth
        jhaxx030 at


Copyright (C) 2012 Ted Pedersen, Anand Jha

See 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