public class QueryResultPassage
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Constructor and Description |
---|
QueryResultPassage() |
Modifier and Type | Method and Description |
---|---|
List<ResultPassageAnswer> |
getAnswers()
Gets the answers.
|
Double |
getConfidence()
Gets the confidence.
|
Long |
getEndOffset()
Gets the endOffset.
|
String |
getField()
Gets the field.
|
String |
getPassageText()
Gets the passageText.
|
Long |
getStartOffset()
Gets the startOffset.
|
public String getPassageText()
The content of the extracted passage.
public Long getStartOffset()
The position of the first character of the extracted passage in the originating field.
public Long getEndOffset()
The position after the last character of the extracted passage in the originating field.
public String getField()
The label of the field from which the passage has been extracted.
public Double getConfidence()
Estimate of the probability that the passage is relevant.
public List<ResultPassageAnswer> getAnswers()
An arry of extracted answers to the specified query.
Copyright © 2022 IBM Cloud. All rights reserved.