Changed Charset in InputStream
This commit is contained in:
parent
8a5da64fb9
commit
4bfa775728
4
README.md
Normal file
4
README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# Dico-FR
|
||||
|
||||
Une application de dictionnaire simple pour attribuer les POS d'un texte en français.
|
||||
|
@ -17,7 +17,8 @@ public class POSTagger {
|
||||
|
||||
protected void init() {
|
||||
try (InputStream lIS = POSTagger.class.getResourceAsStream("/dict.txt")) {
|
||||
BufferedReader lISR = new BufferedReader(new InputStreamReader(lIS, "Windows-1252"));
|
||||
BufferedReader lISR = new BufferedReader(new InputStreamReader(lIS));
|
||||
// BufferedReader lISR = new BufferedReader(new InputStreamReader(lIS, "Windows-1252"));
|
||||
lISR.lines().forEach(aS -> {
|
||||
String[] lS = aS.split("\\t");
|
||||
String[] lType = lS[2].split(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user