No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hey guys i need an help to do the following : I am trying to compare the words in the array to the words in the text file. And if the word in the text file matches the word in the array it should be given a higher value and … |
|
[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define TRAINING_LIST "./rc/training.list" #define TRAINING_FILE "./training_set/%s" #define TEST_PATH "./test_set/%s" #define PREDICTION_FILE "./prediction.txt" #define FEATURE_FILE "./feat/features.txt" #define MAX_RATINGS 100480508 // Ratings in entire training set (+1) #define MAX_CUSTOMERS 480190 // Customers in the entire training set (+1) #define MAX_MOVIES 17771 // Movies in … |
|
[CODE] void MatchWord(Match temp, int duplicatedoc, int originaldoc, string * words) { Idea is to send in a match and then call the binary search on the matching words and see if they are found. If they are found, give them a higher weight and if not found, give it … |