public RecentTweetCache(String corpusFile, String stopWordsFile) {
		super();
		this.corpusFile = corpusFile;
		try {
			//fill corpus hash
			BufferedReader br = new BufferedReader(new FileReader(corpusFile));
			String line = null;
			line = br.readLine();
			line = line.replace("\n", "");
			corpusSize = Integer.parseInt(line);
			while ( (line = br.readLine()) != null){
				String[] wordCouple = line.split("\\s+");
				corpusHash.put(wordCouple[0], Integer.parseInt(wordCouple[1]));	
			}
			
			//fill stop words file
			this.stopWordsFile = stopWordsFile;
			br = new BufferedReader(new FileReader(stopWordsFile));
			while ( (line = br.readLine()) != null)
				stopWords.add(line);
			
		} catch (FileNotFoundException e) {
			System.out.println("Invalid Corpus File");
		} catch (IOException e) {
			System.out.println("Problem with line in corpus file");
		}
	}