hey i am a beginner as far as python is concerned..i am having diff in understanding this code..i am supp to do it in python..if anyone can tell me wht it does it wud be really helpful
for qid,query in "as2.qrys":
for word in query:
docs = set(index[word])
for doc in docs:
number_of_matched_words [doc] ++
for doc in matches:
if number_of_matched_words[doc] == length(query):
print qid, 0, doc, 0, 1, 0