Research Article

Contribution to Semantic Analysis of Arabic Language

Algorithm 1

WSD-AL algorithm.
: Sentence contained the word to be disambiguated;
CU: Context of use generated;
: Corpus; : root;
: Glosses from the dictionary generated in Section 3;
AW: ambiguous word;
, : word;
(1) For each {
(2)     Assign weight = the position on the left or on the right of the ambiguous word;
     }
(3) For each Glosses of AW {
(4) Lemmatizing ( ); // Generate the root
(5) For each {
(6) Approximate String-Matching (char , int , char , int ); // Generate a list of occurrences ;
  }
(7) For each {
(8)    Load all the sentences that contains these occurrences to generate the context of use CU;
   
Context-Matching ( , CU) {
(9)   For each {
(10)    For each CU containing AW {
    (11)   ;
    (12)   ;
    (13)   ;
(14) If the result given by each measure are different then
   (15) Apply the leak algorithm between the proposed glosses proposed;
       Else
   (16) Affiliate the sense proposed by the different similarity measures;