[ 
https://issues.apache.org/jira/browse/OPENNLP-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17123866#comment-17123866
 ] 

Jeffrey T. Zemerick commented on OPENNLP-1304:
----------------------------------------------

My first thought was maybe there wasn't enough training data and that led to 
the NPE. I felt like we might had seen that happen before.

If you run into it again please let us know. I'll close this ticket for 
housekeeping but feel free to reopen it. 

> NullPointerException in LemmatizerME
> ------------------------------------
>
>                 Key: OPENNLP-1304
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1304
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Lemmatizer
>    Affects Versions: 1.9.2
>            Reporter: Markus Jelsma
>            Priority: Major
>         Attachments: ja-lemma.bin
>
>
> In our unit tests we have a basic lemmatizer model for Japanese. The 
> Lemmatizer throws:
> {code:java}
> java.lang.NullPointerException
>         at 
> opennlp.tools.lemmatizer.LemmatizerME.predictSES(LemmatizerME.java:116)
>         at 
> opennlp.tools.lemmatizer.LemmatizerME.lemmatize(LemmatizerME.java:91) {code}
> for the following input:
> {code:java}
> tokens: デン, ・, ヘルデル
> tags: PROPN, SYM, PROPN {code}
> I attached the used lemmatizer model in case if needed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to