Skip to main content

Table 1 Pseudo code of proposed system

From: A hybrid semantic query expansion approach for Arabic information retrieval

Step 1

For each term \(t_{i}\) in query q Construct set of synonyms \(q_{c}\) based on wordnet

Step 2

Create extended query set \(q^{\prime }\) by unifying original query q with \(q_{c}\).

Step 3

For each term \(t_{i^{\prime }}\,in \,q^{\prime }\)

Extract the most similar relevant sense of the term within query Context based on word2vec(c)

Step 4

Select the most frequent m terms from PRD

Step 5

Unify m with c for generating final candidate term that produce the Sense of query context

Step 6

For each final candidate term tf from step 5

Compute average weight using Eqs. 6, 7, 8

Step 7

Select optimal average weight for each term in final candidate term using PSO algorithm

Step 8

Unify the top optimal term from step 7 with original query q