Changed Charset in InputStream
This commit is contained in:
@@ -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() {
|
protected void init() {
|
||||||
try (InputStream lIS = POSTagger.class.getResourceAsStream("/dict.txt")) {
|
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 -> {
|
lISR.lines().forEach(aS -> {
|
||||||
String[] lS = aS.split("\\t");
|
String[] lS = aS.split("\\t");
|
||||||
String[] lType = lS[2].split(" ");
|
String[] lType = lS[2].split(" ");
|
||||||
|
|||||||
Reference in New Issue
Block a user