int main(int argc, char *argv[]) { FILE * fp = fopen(argv[1], "r"); if (fp == NULL) { printf("Cannot open %s\r\n",argv[1]); return 0; } // Initialize the Hash Table InvFile.MakeHashTable(13023973); InvFile.Load(argv[1]); InvFile.MakeDocRec(); // allocate document records InvFile.DocLen(InvFile.Files); InvFile.SaveDocRec(argv[2]); printf("Saved %s\r\n",argv[2]); return 0; }
int main() { // Initialize the Hash Table InvFile.MakeHashTable(13023973); printf("Loading Inverted File\r\n"); InvFile.Load("data/InvFile.txt"); printf("Load Document Lengths\r\n"); InvFile.LoadDocRec("data/InvFile.doc"); // Start interactive retrieval InvFile.Retrieval(); return 0; }