You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Robert (Jira)" <ji...@apache.org> on 2022/01/18 06:19:00 UTC
[jira] [Updated] (OPENNLP-1353) DictonaryLemmatizer missing charset
[ https://issues.apache.org/jira/browse/OPENNLP-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert updated OPENNLP-1353:
----------------------------
Description:
The initialization of the DictonaryLemmatizer is not decoding the inputstream correctly due to missing charset.
My dictionary file for the lemmatizer is utf-8 encoded. At DictonaryLemmatizer initialization the system fallback encoding is used because no charset is specified for the InputStream. In my case windows-1252. This leads to the problem that the correct lemmas of words are not found.
E.g. My {{lemma.dict}} file contains following line:
{code:java}
mäuse NN maus //German word of mice
{code}
And it is decoded to:
{code:java}
mäuse NN maus
{code}
was:
The initialization of the DictonaryLemmatizer is not decoding the inputstream correctly due to missing charset.
My dictionary file for the lemmatizer is utf-8 encoded. At DictonaryLemmatizer initialization the system fallback encoding is used because no charset is specified for the InputStream. In my case windows-1252. This leads to the problem that the correct lemmas of words are not found.
E.g. My {{lemma.dict}} file contains following line:
mäuse NN maus
will be decoded to:
mäuse NN maus
> DictonaryLemmatizer missing charset
> -----------------------------------
>
> Key: OPENNLP-1353
> URL: https://issues.apache.org/jira/browse/OPENNLP-1353
> Project: OpenNLP
> Issue Type: Bug
> Components: Lemmatizer
> Affects Versions: 1.9.3
> Environment: Windows 10
> Reporter: Robert
> Priority: Major
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The initialization of the DictonaryLemmatizer is not decoding the inputstream correctly due to missing charset.
> My dictionary file for the lemmatizer is utf-8 encoded. At DictonaryLemmatizer initialization the system fallback encoding is used because no charset is specified for the InputStream. In my case windows-1252. This leads to the problem that the correct lemmas of words are not found.
> E.g. My {{lemma.dict}} file contains following line:
> {code:java}
> mäuse NN maus //German word of mice
> {code}
> And it is decoded to:
> {code:java}
> mäuse NN maus
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)