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/17 12:08:00 UTC
[jira] [Assigned] (OPENNLP-1388) Inconsistency in span.getCoveredText()
[ https://issues.apache.org/jira/browse/OPENNLP-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Zemerick reassigned OPENNLP-1388:
--------------------------------------
Assignee: Jeff Zemerick
> 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
> Assignee: 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)