[
https://issues.apache.org/jira/browse/OPENNLP-544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492908#comment-13492908
]
Chris Fournier commented on OPENNLP-544:
----------------------------------------
My use case for the patch is for a 3rd party app that uses the Span class
sometimes inside other objects that extend something else (giving the
appearance of multiple inheritance), or simply to add a Span-like contract
(i.e., Spannable) to objects which have a beginning and end position.
In opennlp, many things could extend Span instead of contain one, e.g.,
opennlp.tools.coref.mention.Mention, opennlp.tools.parser.Constituent,
opennlp.tools.parser.Parse, but there may be objects which could extend
something else yet can still act like a Span. After a quick look I couldn't
find any, unfortunately.
> Added an interface for opennlp.tools.util.Span
> ----------------------------------------------
>
> Key: OPENNLP-544
> URL: https://issues.apache.org/jira/browse/OPENNLP-544
> Project: OpenNLP
> Issue Type: Improvement
> Components: Tokenizer
> Affects Versions: tools-1.5.3
> Reporter: Chris Fournier
> Priority: Trivial
> Labels: newbie, patch
> Fix For: tools-1.5.3
>
> Attachments: Spannable_OPENNLP-544-1.5.3.patch
>
>
> Added an interface, opennlp.tools.util.Spannable, to allow for the creation
> of objects that can span text and fulfill the same functionality as Span
> without necessarily needing to extend it (currently implemented only by
> opennlp.tools.util.Span).
--
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