Professional Documents
Culture Documents
Lab 1 DFD
Lab 1 DFD
create_Index
Input
get Document of
type .txt from
given dir Char
Yes End
is 'q'
No
If there is a file No
Exit indexer
Search
function
Yes
Tokize the
Tokenizer user query
For each
sentence,
tokenize it into
words
stem the
verbs
if word is
noun or verb
verb stem the verb
Match the
word from the
indexer
noun word is
already in
indexer?
No
Returns the
matching
add an entry in document
the inverted related to
index pointing to words
this filename
Display the
result
add count
stores filename
and count