You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Jonathan Ackerman (JIRA)" <ji...@apache.org> on 2017/02/21 19:57:44 UTC

[jira] [Created] (OPENNLP-993) DocumentCategorizerME does not load tokenizer specified in model manifest

Jonathan Ackerman created OPENNLP-993:
-----------------------------------------

             Summary: DocumentCategorizerME does not load tokenizer specified in model manifest
                 Key: OPENNLP-993
                 URL: https://issues.apache.org/jira/browse/OPENNLP-993
             Project: OpenNLP
          Issue Type: Bug
          Components: Doccat
    Affects Versions: 1.7.1
            Reporter: Jonathan Ackerman


DocumentCategorizerME no longer loads the tokenizer specified in the model manifest. Instead it always uses a WhitespaceTokenizer.

This appears to due to a change in 1.7.1 where the constructors for the DoccatFactory were modified to create a WhitespaceTokenizer.

This means the logic in the DoccatFactory.getTokenizer() method does try to load the tokenizer in model's manifest as "tokenizer" is not null when getTokenizer() is first called. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)