public class QueryResponsePassage
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Constructor and Description |
---|
QueryResponsePassage() |
Modifier and Type | Method and Description |
---|---|
List<ResultPassageAnswer> |
getAnswers()
Gets the answers.
|
String |
getCollectionId()
Gets the collectionId.
|
Double |
getConfidence()
Gets the confidence.
|
String |
getDocumentId()
Gets the documentId.
|
Long |
getEndOffset()
Gets the endOffset.
|
String |
getField()
Gets the field.
|
Double |
getPassageScore()
Gets the passageScore.
|
String |
getPassageText()
Gets the passageText.
|
Long |
getStartOffset()
Gets the startOffset.
|
public String getPassageText()
The content of the extracted passage.
public Double getPassageScore()
The confidence score of the passage's analysis. A higher score indicates greater confidence.
public String getDocumentId()
The unique identifier of the ingested document.
public String getCollectionId()
The unique identifier of the collection.
public Long getStartOffset()
The position of the first character of the extracted passage in the originating field.
public Long getEndOffset()
The position of 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()
An estimate of the probability that the passage is relevant.
public List<ResultPassageAnswer> getAnswers()
An array of extracted answers to the specified query.
Copyright © 2021 IBM Cloud. All rights reserved.