A Language Independent Approach To Develop URDUIR System
A Language Independent Approach To Develop URDUIR System
ABSTRACT
This is the era of Information Technology. Today the most important thing is how one gets the right information at right time. More and more data repositories are now being made available online. Information retrieval systems or search engines are used to access electronic information available on the internet. These information retrieval systems depend on the available tools and techniques for efficient retrieval of information content in response to the user query needs. During last few years, a wide range of information in Indian regional languages like Hindi, Urdu, Bengali, Oriya, Tamil and Telugu has been made available on web in the form of e-data. But the access to these data repositories is very low because the efficient search engines/retrieval systems supporting these languages are very limited. We have developed a language independent system to facilitate efficient retrieval of information available in Urdu language which can be used for other languages as well. The system gives precision of 0.63 and the recall of the system is 0.8.
KEYWORDS
Information Retrieval, Urdu IR, Stemming
1. INTRODUCTION
The rapid growth of electronic data has attracted the attention in the research and industry communities for efficient methods for indexing, analysis and retrieval of information from these large number of data repositories having wide range of data for a vast domain of applications. In this era of Information technology, more and more data is now being made available on online data repositories. Almost every information one need is now available on internet. English and European Languages basically dominated the web since its inception. However, now the web is getting multi-lingual. Especially, during last few years, a wide range of information in Indian regional languages like Hindi, Urdu, Bengali, Oriya, Tamil and Telugu has been made available on web in the form of e-data. But the access to these data repositories is very low because the efficient search engines/retrieval systems supporting these languages are very limited. Hence automatic information processing and retrieval is become an urgent requirement. Moreover, since India is a country having a wide range of regional languages, in the Indian context, the IR approach should be such that it can handle multilingual document collections.
Jan Zizka (Eds) : CCSIT, SIPP, AISC, PDCTA - 2013 pp. 397406, 2013. CS & IT-CSCP 2013
DOI : 10.5121/csit.2013.3645
398
A number of information retrieval systems are available to support English and some other European languages. Work involving development of IR systems for Indian languages is only of recent interests. Development of such systems is constraint by the lack of the availability of linguistic resources and tools in these languages. The reported works in this direction for Indian languages were focused on Hindi, Tamil, Bengali, Marathi and Oriya. But there is no reported work is done for Urdu language. There is no sufficient amount of resources available to retrieve information effectively available on internet in Indian Languages. So there is a need of some efficient tools and techniques to represent, express, store and retrieve the information available in different languages. The present work focuses on development of an efficient Information Retrieval system for Urdu Language.
2. INFORMATION RETRIEVAL
Information Retrieval is the sub domain of text mining and natural language processing. This is the science in which the software system retrieves the relevant documents or the information in response to the user query need. The Information Retrieval system match the given user quires with the data corpus available and rank the documents on the basis of the relevance with the user need. Then the IR system returns the top ranked documents containing relevant information to the user query. IR systems may be monolingual, bi-lingual or multilingual. The main objective of this thesis work is the development of the mono-lingual information retrieval system for Urdu language. To retrieve the relevant information on the basis of user query The IR system breaks the query statement and the data corpus in a standard format. The query is then matched with the documents presented in the corpus and ranked on the basis of the relevance with the query. Top ranked documents are then retrieved.
There are various approaches for converting the query statement and the corpus data in a standard format like stemming, morphological analysis, Stop word removal, indexing etc. Similarly there are various techniques or methods for query matching like cosine similarity, Euclidean distance etc. The efficiency of any Information Retrieval system depends on the term weighting schemes, strategies used for indexing the documents and the retrieval model used to develop the IR system.
2.1 Stemmer
Stemming is the backbone process of any IR system. Stemmers are used for getting base or root form (i.e. stems) from inflected (or sometimes derived) words. Unlike morphological analyzer, where the root words have some lexical meaning, its not necessary with the case of a stemmer.
399
A stemmer is used to remove the inflected part of the words to get their root form. Stemming is used to reduce the overhead of indexing and to improve the performance of an IR system. More specifically, stemmer increases recall of the search engine, whereas Precision decreases. However sometimes precision may increases depending upon the information need of the users. Stemming is the basic process of any query system, because a user who needs some information on plays may also be interested in documents that contain the word play (without the s).
2.4 The third factor which may affect the weighting function is the length of the document.
Hence the term weighting function can be represented by a triplet ABC here A- tf component B- idf component C- Length normalizing component The factor Term frequency within a document i.e. A may have following options:
400
Computer Science & Information Technology (CS & IT) Table 1: different options for considering term frequency
N tf = tfij B a tf = 0 or 1
tfij tf = 0.5 + 0.5 max tf in D j
(Raw term frequency) (binary weight) (Augmented term frequency) Logarithmic term frequency
tf = ln(tfij) + 1.0
The options for the factor inverse document frequency i.e. B is:
Table 2: different options for considering inverse document frequency
N T
Wt=tf Wt=tf*idf
N C
2.5 Indexing
To represent the documents in the corpus and the user query statement indexing is done. That is the process of transforming document text and given query statement to some representation of it is known as indexing. There are different index structures which can be used for indexing. The most commonly used data structure by IR system is inverted index. Indexing techniques concerned with the selection of good document descriptors, such as keywords or terms, to describe information content of the documents. A good descriptor is one that helps in describing the content of the document and in discriminating the document from other documents in the collection. The most widely used method is to represent the query and the document as a set of tokens i.e. index terms or keywords. For indexing a document, there are different indexing strategies as given below :
401
2.5.1 Character Indexing: in this scheme the tokens used for representing the documents are the characters present in the document. 2.5.2 Word Indexing: this approach uses words in the document to represent it. 2.5.3 N-gram indexing: this method breaks the words into n-grams, these n-grams are used to index the documents. 2.5.4 Compound Word Indexing: in this method bi-words or tri-words are used for indexing.
402
The one drawback of Boolean information retrieval model is that it requires Boolean query instead of free text. The second drawback is that this model cannot rank the documents on the basis of relevance with the user query. It just gives the document if it contains the query word, regardless the term count in the document or the actual importance of that query word in the document. 2.6.5 Vector Space model: This model represents documents and queries as vectors of features representing terms. Features are assigned some numerical value that is usually some function of frequency of terms. In this model, each document d is viewed as a vector of tfidf values, one component for each term. So we have a vector space where a. Terms are axes b. documents live in this space Ranking algorithm compute similarity between document and query vectors to yield a retrieval score to each document. The Postulate is: Documents related to the same information are close together in the vector space. 2.6.6 Probabilistic retrieval model: In this model, initialy some set of documents is retrieved by using vectorial model or boolean model. The user inspects these documents looking for the relevant ones and gives his feed back. IR system uses this feedback information to refine the search criteria. This process is repeated, untill user gets the desired information in response to his needs.
403
The above diagram shows a vector space model where axes ti and tj are the terms used for indexing.
Effectiveness is the performance measure of any IR system which describes, how much the IR system satisfy a users information need by retrieving relevant documents. Aspects of effectiveness include: a. Whether the retrieved documents are pertinent to the information need of the user. b. Whether the retrieved documents are ranked according to the relevance with the user query. c. Whether the IR system returns a reasonable number of relevant documents present in the corpus to the user etc.
3. OUR APPROACH
In this work, to develop an Information Retrieval system for Urdu language, the following methods and evaluation parameters are used.
3.1 Stemmer:For Developing Stemmer we have used an unsupervised approach [1] which gives
accuracy of 84.2.
404
3.2 Term Weighting scheme: For term weighting we have used the tf*idf 3.3 Indexing Scheme: in this work the query statement and the documents are represented
using the word indexing strategy.
3.4 Retrieval Model: To implement our IR system we have used the vector space model. 3.5 Encoding Scheme: As the system focuses on Urdu language, to access the data UTF8
character encoding is used.
3.6 Similarity Measure: for getting documents which are more closely related to the query
i.e.to measure the similarity between different documents in the corpus and the query statement, the cosine similarity measure is used.
3.7 Ranking of the document: for ranking of the retrieved documents in order to their
relevance with the query, cosine similarity values are used. The document having higher cosine value (min angular distance) with the query will be more similar i.e. contains the query terms more frequently and hence these documents will be considered more relevant to the user query.
4. EXPERIMENT
The data set used in this thesis for the training and testing of the developed Urdu IR system is taken from Emilie corpus. In this corpus documents are in xml format. The data set taken from EMILLE corpus a tagged data set consist of documents having information related to health issues, road safety issues, education issues, legal social issues, social issues, housing issues etc. The testing data set consist of documents from various domains such as:
Table 4: dataset specification used for Urdu IR
Domain Health Education Housing Legal Social issues Homeopathy Drama Myths Story and Novel Media Science History Politics
Number of Documents 33 8 8 8 12 32 13 10 21 15 47 33 21
Number of words 223412 115264 120327 108055 146083 527360 135680 202880 300160 224000 704000 502400 728320
405
27 34 21 48
A Query set consist of 200 queries is prepared manually for training and testing of the IR system.
As shown in the above table, the system has value of 0.13 as the minimum average precision and maximum average precision value of the system is 0.63. Similarly the minimum average recall value for the system is 0.5 and maximum average recall value was found out to be 0.8.
REFERENCES
[1] MohdShahid Husain et. al. A language Independent Approach to develop Urdu stemmer. Proceedings of the second International Conference on Advances in Computing and Information Technology. 2012. Rizvi, J et. al. Modeling case marking system of Urdu-Hindi languages by using semantic information. Proceedings of the IEEE International Conference on Natural Language Processing and Knowledge Engineering (IEEE NLP-KE '05). 2005. Butt, M. King, T. Non-Nominative Subjects in Urdu: A Computational Analysis. Proceedings of the International Symposium on Non-nominative Subjects, Tokyo, December, pp. 525-548, 2001. Chen, A. Gey, F. Building and Arabic Stemmer for Information Retrieval. Proceedings of the Text Retrieval Conference, 47, 2002.
[2]
[3] [4]
406 [5]
Computer Science & Information Technology (CS & IT) R. Wicentowski. "Multilingual Noise-Robust Supervised Morphological Analysis using the Word Frame Model." In Proceedings of Seventh Meeting of the ACL Special Interest Group on Computational Phonology (SIGPHON), pp. 70-77, 2004. Rizvi, Hussain M. Analysis, Design and Implementation of Urdu Morphological Analyzer. SCONEST, 1-7, 2005. Krovetz, R. View Morphology as an Inference Process. In the Proceedings of 5th International Conference on Research and Development in Information Retrieval, 1993. Thabet, N. Stemming the Quran. In the Proceedings of the Workshop on Computational Approaches to Arabic Script-based Languages, 2004. Paik, Pauri. A Simple Stemmer for Inflectional Languages. FIRE 2008. Sharifloo, A.A., Shamsfard M. A Bottom up Approach to Persian Stemming. IJCNLP, 2008 Kumar, A. and Siddiqui, T. An Unsupervised Hindi Stemmer with Heuristics Improvements. In Proceedings of the Second Workshop on Analytics for Noisy Unstructured Text Data, 2008. Kumar, M. S. and Murthy, K. N. Corpus Based Statistical Approach for Stemming Telugu. Creation of Lexical Resources for Indian Language Computing and Processing (LRIL), C-DAC, Mumbai, India, 2007. Qurat-ul-AinAkram, AsmaNaseer, SarmadHussain. Assas-Band, an Affix-Exception-List Based Urdu Stemmer. Proceedings of ACL-IJCNLP 2009. http://en.wikipedia.org/wiki/Urdu http://www.bbc.co.uk/languages/other/guide/urdu/steps.shtml http://www.andaman.org/BOOK/reprints/weber/rep-weber.htm Natural Language processing and Information Retrieval by TanveerSiddiqui, U S Tiwary. Information retrieval: data structure and algorithms by William B. Frakes, Ricardo Baeza-Yates. http://www.crulp.org/software/ling_resources.htm