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

Jeff Zemerick edited comment on OPENNLP-1189 at 3/17/18 7:14 PM:
-----------------------------------------------------------------

This was identified as expected behavior. The change is to alter the 
documentation to say that tokens are automatically split on whitespace and at 
least one <SPLIT> must be included.


was (Author: jzemerick):
This was identified as expected behavior. The change is to alter the 
documentation to say that tokens should be separated by a <SPLIT> tag.

> Token model creation fails without at least one <SPLIT> tag
> -----------------------------------------------------------
>
>                 Key: OPENNLP-1189
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1189
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Tokenizer
>    Affects Versions: 1.8.4
>            Reporter: Jeff Zemerick
>            Assignee: Jeff Zemerick
>            Priority: Minor
>
> The tokenizer training documentation for 1.8.4 states that "Tokens are either 
> separated by a whitespace or by a special <SPLIT> tag." However, it appears 
> that training files if the training data does not contain at least one 
> <SPLIT> tag. To reproduce:
> Training on the sample data works fine:
> {quote}Pierre Vinken<SPLIT>, 61 years old<SPLIT>, will join the board as a 
> nonexecutive director Nov. 29<SPLIT>.
>  Mr. Vinken is chairman of Elsevier N.V.<SPLIT>, the Dutch publishing 
> group<SPLIT>.
>  Rudolph Agnew<SPLIT>, 55 years old and former chairman of Consolidated Gold 
> Fields PLC<SPLIT>,
>  was named a nonexecutive director of this British industrial 
> conglomerate<SPLIT>.
> {quote}
> Replacing the <SPLIT> tags with whitespace causes the training to fail with 
> InsufficientTrainingDataException:
> {quote}Pierre Vinken , 61 years old , will join the board as a nonexecutive 
> director Nov. 29 .
>  Mr. Vinken is chairman of Elsevier N.V. , the Dutch publishing group .
>  Rudolph Agnew , 55 years old and former chairman of Consolidated Gold Fields 
> PLC ,
>  was named a nonexecutive director of this British industrial conglomerate .
> {quote}
> Modifying the training data to contain a single <SPLIT> tag allows model 
> training to complete successfully:
> {quote}Pierre Vinken<SPLIT>, 61 years old , will join the board as a 
> nonexecutive director Nov. 29 .
>  Mr. Vinken is chairman of Elsevier N.V. , the Dutch publishing group .
>  Rudolph Agnew , 55 years old and former chairman of Consolidated Gold Fields 
> PLC ,
>  was named a nonexecutive director of this British industrial conglomerate .
> {quote}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to