[ 
https://issues.apache.org/jira/browse/OPENNLP-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971804#action_12971804
 ] 

Jörn Kottmann commented on OPENNLP-8:
-------------------------------------

"... Yes, when I added a dot at the end of the input
string, it outputs two sentences and a probability array of two elements." 
(Miao Chen)

> 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: tools-1.5.0-sourceforge
>            Reporter: Jörn Kottmann
>             Fix For: tools-1.5.1-incubating
>
>
> 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.

Reply via email to