You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Jeff Zemerick (Jira)" <ji...@apache.org> on 2022/10/13 13:26:00 UTC

[jira] [Created] (OPENNLP-1388) Fix span.getCoveredText()

Jeff Zemerick created OPENNLP-1388:
--------------------------------------

             Summary: Fix span.getCoveredText()
                 Key: OPENNLP-1388
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1388
             Project: OpenNLP
          Issue Type: Task
    Affects Versions: 2.0.0, 1.9.4
            Reporter: Jeff Zemerick


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"



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