{
if(loadedWords != null)
return;
loadedWords = new Vector<String>();
instances = new Vector<Integer>();
CSVFileReader in;
try {
in = new CSVFileReader(Configuration.BAG_OF_WORDS_FINAL, ',');
Vector<String> fields = in.readFields();
while(fields!=null)
{
loadedWords.add(fields.get(0));
instances.add(Integer.parseInt(fields.get(1)));
fields = in.readFields();
}
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}