6-Query Languages
6-Query Languages
3
Phrase Queries
5
Multiple-word Queries
6
Boolean Queries
1.Computer OR server
Finds documents containing either computer, server or both.
2. (computer OR server) NOT mainframe
Select all documents that discuss computers or servers, do not
select any documents that discuss mainframes.
8
Weighted Queries
What is Pattern?
An expression that defines a set of objects. Pattern shows the
internal representation of an object.
What is the pattern of a word?
In other words,
The semantics are of disjunction: A pattern P that defines a word
(c1, c2, …, cn) is interpreted as c1 v c2 v … v cn.
11
Pattern Queries
12
String Editing
The minimum cost of any edit sequence that transforms x1 x2 … xi into y1 y2 … yj (for i>0 and j>0) is the minimum of the three costs: delete, replace, or
insert operations.
The following recurrence equation is used for COST(i,j).
0 if i=0, j=0
COST(i-1,0) + D(xi) i>0, j=0 COST(0,j-1) + I(yj) j>0, i=0
COST'(i,j) i>0, j>0
where COST'(i,j) = min { COST(i-1,j) + D(xi), COST(i-1,j-1) + C(xi,yj), COST(i,j-1) + I(yj)
}
COST(i,j) =
14
Example
16
Natural language
04/25/24 18
Thank You !!!
04/25/24 19