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

Pei Chen commented on CTAKES-184:
---------------------------------

Thanks for catching that Tim.
This edge case (single word sentence) always seems to bite us in the rear end.
If you have  chance, could you commit a test data file that contains a single 
token sentence somewhere so that it could be used in the unit tests and 
regression-test?  If not, I'll try to add it in as soon as I get a chance over 
the next few weeks.
                
> srl gives NPE on one word sentences
> -----------------------------------
>
>                 Key: CTAKES-184
>                 URL: https://issues.apache.org/jira/browse/CTAKES-184
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-dependency-parser
>            Reporter: Tim Miller
>            Assignee: Tim Miller
>
> Problem is that with a one-word sentence, the head node and the token node 
> have the same span, and so using select* methods to get the token node 
> sometimes return the head node, which will not have certain pieces of 
> information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to