[ 
https://issues.apache.org/jira/browse/OPENNLP-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeff Zemerick updated OPENNLP-1388:
-----------------------------------
    Description: 
Span.getCoveredText() is getting the string based on the character start/end 
and not the token start/end.

Example:

string = "Neil Abercrombie Anibal Acevedo-Vila Gary Ackerman"
span = [0..2) person

span.getCoveredText(sentence)) returns "Ne" and not "Neil Abercrombie"

What is the correct behavior?

  was:
Span.getCoveredText() is getting the string based on the character start/end 
and not the token start/end.

Example:

string = "Neil Abercrombie Anibal Acevedo-Vila Gary Ackerman"
span = [0..2) person

span.getCoveredText(sentence)) returns "Ne" and not "Neil Abercrombie"


> Inconsistency in span.getCoveredText()
> --------------------------------------
>
>                 Key: OPENNLP-1388
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1388
>             Project: OpenNLP
>          Issue Type: Task
>    Affects Versions: 1.9.4, 2.0.0
>            Reporter: Jeff Zemerick
>            Priority: Major
>
> Span.getCoveredText() is getting the string based on the character start/end 
> and not the token start/end.
> Example:
> string = "Neil Abercrombie Anibal Acevedo-Vila Gary Ackerman"
> span = [0..2) person
> span.getCoveredText(sentence)) returns "Ne" and not "Neil Abercrombie"
> What is the correct behavior?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to