Class QueryResultPassage
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryResultPassage
- All Implemented Interfaces:
 com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryResultPassage
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A passage query result.
- 
Constructor Summary
Constructors Constructor Description QueryResultPassage() - 
Method Summary
Modifier and Type Method Description List<ResultPassageAnswer>getAnswers()Gets the answers.DoublegetConfidence()Gets the confidence.LonggetEndOffset()Gets the endOffset.StringgetField()Gets the field.StringgetPassageText()Gets the passageText.LonggetStartOffset()Gets the startOffset.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString 
- 
Constructor Details
- 
QueryResultPassage
public QueryResultPassage() 
 - 
 - 
Method Details
- 
getPassageText
Gets the passageText.The content of the extracted passage.
- Returns:
 - the passageText
 
 - 
getStartOffset
Gets the startOffset.The position of the first character of the extracted passage in the originating field.
- Returns:
 - the startOffset
 
 - 
getEndOffset
Gets the endOffset.The position of the last character of the extracted passage in the originating field.
- Returns:
 - the endOffset
 
 - 
getField
Gets the field.The label of the field from which the passage has been extracted.
- Returns:
 - the field
 
 - 
getConfidence
Gets the confidence.Estimate of the probability that the passage is relevant.
- Returns:
 - the confidence
 
 - 
getAnswers
Gets the answers.An arry of extracted answers to the specified query.
- Returns:
 - the answers
 
 
 -