WordNet(String sentiPath) {
        System.out.println("Initializing Wordnet database...");
        sentimentMap = new SentiMap();

        // create BufferedReader
        BufferedReader br = null;
        try {
            br = new BufferedReader(new FileReader(sentiPath));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
            System.exit(1);
        }

        // add pos/neg sentiment words
        String line;
        int cnt = 0;
        try {

            while ((line = br.readLine()) != null) {
                cnt++;
                if (line.substring(0, 1).equals("#")) { // skip commented out lines
                    continue;
                } else {
                    String[] sentiLine = line.split("\t");
                    Double posVal = Double.valueOf(sentiLine[2]);
                    Double negVal = Double.valueOf(sentiLine[3]);
                    String synsetWords = sentiLine[4];
                    ArrayList<String> synsetWordList = getSynsetWords(synsetWords);
                    for (String word : synsetWordList) {
                        addSentiWord(word, posVal, negVal);
                    }

                }
            }
        } catch (IOException e) {
            System.out.println("Error in reading WordNet database");
            e.printStackTrace();
        }
    }