Changed Charset in InputStream

This commit is contained in:
Olivier Duval 2024-10-22 09:45:39 +02:00
parent 8a5da64fb9
commit 4bfa775728
2 changed files with 6 additions and 1 deletions

4
README.md Normal file
View File

@ -0,0 +1,4 @@
# Dico-FR
Une application de dictionnaire simple pour attribuer les POS d'un texte en français.

View File

@ -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(" ");