Created
December 17, 2018 19:08
-
-
Save milindjagre/d27f5b79f1ca1d405c0145e5053bd17a to your computer and use it in GitHub Desktop.
This method returns a list with all the STOP WORDS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<String> getStopWords() throws IOException { | |
List<String> outputList = new ArrayList<String>(); | |
BufferedReader br = new BufferedReader(new FileReader( | |
"C:\\nlp_en_stop_words.txt")); | |
String line = null; | |
while ((line = br.readLine()) != null) { | |
outputList.add(line); | |
} | |
br.close(); | |
return outputList; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment