[
https://issues.apache.org/jira/browse/OPENNLP-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970015#action_12970015
]
Jörn Kottmann commented on OPENNLP-8:
-------------------------------------
It seems to be a bug which only appears if the last sentence
is not terminated with an end-of-sentence char.
Figure out how to handle this case. The left over ist just returned
as a sentence in this case. Which prob should it get?
> SentenceDetectorME.getSentenceProbabilities() array is not always equal to
> number of returned sentences
> ---------------------------------------------------------------------------------------------------------
>
> Key: OPENNLP-8
> URL: https://issues.apache.org/jira/browse/OPENNLP-8
> Project: OpenNLP
> Issue Type: Bug
> Components: Sentence Detector
> Affects Versions: 1.5.0
> Reporter: Jörn Kottmann
>
> Miao Chen:
> "The sentence detector returns me two sentences: "2.1.4" and "About JAVA
> package" (which I can accept :)
> But the getSentenceProbabilities() returns me only one probability (which is
> 0.9924560093213692), and I don't know which "sentence" this probability is
> for. This method is supposed to return an array of probabilities, but in
> this case only one probability is returned."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.