public static List<Word> load(File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException, IOException {

        List<Word> seedWords = new ArrayList<Word>();

        charsetName = (charsetName == null 
                ? Charset.defaultCharset().name() : charsetName);
        
        Reader reader = new InputStreamReader(new FileInputStream(file), charsetName);
        BufferedReader br = new BufferedReader(reader);
        String line;
        String[] fields = null;

        // For each line
        while ((line = br.readLine()) != null) {
            // If the line is a comment or is empty 
            if (line.matches("^\\s{0,}(#|/\\*|//).{0,}") || line.trim().isEmpty()) {
                continue; // ignore this line
            }
            
            fields = line.split("(;|:|,|\\s)\\s{0,}");
            
            if(fields.length < 2) {
                continue; // ignore this line
            }
            
            String seedWord = fields[0].trim();
            float polarity = Float.valueOf(fields[1].trim());
            
            Word w = new Word(seedWord);
            
            if(polarity>0) {
                w.setAsPositiveSeed();
            } else if(polarity<0) {
                w.setAsNegativeSeed();
            } else if(polarity == 0) {
                w.setAsNeutralSeed();
            }
            
            seedWords.add(w);
        }
        
        return seedWords;
    }