question: protected Map < String , Double > loadBingLiu ( ) throws FileNotFoundException { Map < String , Double > lexiMap = new HashMap < String , Double > ( ) ; File file = new File ( "resources/lexi/bingliu/positive-words.txt" ) ; Scanner scanner = new Scanner ( file ) ; while ( scanner . hasNextLine ( ) ) { lexiMap . put ( scanner . nextLine ( ) , 1.0 ) ; } scanner . close ( ) ; File file2 = new File ( "resources/lexi/bingliu/negative-words.txt" ) ; Scanner scanner2 = new Scanner ( file2 ) ; while ( scanner2 . hasNextLine ( ) ) { lexiMap . put ( scanner2 . nextLine ( ) , - 1.0 ) ; } scanner2 . close ( ) ; return lexiMap ; }
target:  Loads and parses the BingLiu sentiment lexica