[
https://issues.apache.org/jira/browse/OPENNLP-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003174#comment-14003174
]
Mark Giaconia commented on OPENNLP-684:
---------------------------------------
Based on dev thread regarding the desire to keep the Span object immutable,
does anyone have a problem with me removing the setter, making the prob field
final, and then adding appropriate constructors?
> Span object should include probability.
> ----------------------------------------
>
> Key: OPENNLP-684
> URL: https://issues.apache.org/jira/browse/OPENNLP-684
> Project: OpenNLP
> Issue Type: Improvement
> Components: Chunker, Name Finder, POS Tagger, Sentence Detector
> Affects Versions: 1.6.0
> Environment: Java 7
> Reporter: Mark Giaconia
> Assignee: Mark Giaconia
> Priority: Minor
> Fix For: 1.6.0
>
>
> Currently users must use the probs() method on the impls of NameFinderME and
> SentenceDetectorME in order to get the probs for the returned Spans. It would
> be better if the Spans were returned with a prob double as an internal field.
> This way, users who need the probs would still be able to use the Interfaces
> as well.
--
This message was sent by Atlassian JIRA
(v6.2#6252)