Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Start

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

Read the file


and split it into
sentences No

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

You might also like