Outline ------- My java program saves the words from ten text files into a tree map called frequencyData (it also records the frequency of each word).
There is a for loop to read each document file and the names of each file are stored in a string array (Docs).
Question -------- How can I change the program so that a tree map is made for each document file? [I'm guessing a will have to create a new tree map within the for loop.]
Also, How do I determine the name of each new tree map? (eg. frequencyData1, frequencyData2....frequencyData10)
I am in serious need for a solution for creating an inverted index for a information retrieval project. The program works by reading ten text files and accepting a user query (which I have already done).
Has anyone done Information retrieval in java before?
Do I have to create Hash Maps or Tree Sets or ArrayList to do Vector Representation.
I need to store: ----------------- Index Term (String) , Doc Frequency (int) , Document Number/ID (int), Term Frequency (int).