public class QueryPassages
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
documentId |
protected java.lang.Long |
endOffset |
protected java.lang.String |
field |
protected java.lang.Double |
passageScore |
protected java.lang.String |
passageText |
protected java.lang.Long |
startOffset |
Constructor and Description |
---|
QueryPassages() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDocumentId()
Gets the documentId.
|
java.lang.Long |
getEndOffset()
Gets the endOffset.
|
java.lang.String |
getField()
Gets the field.
|
java.lang.Double |
getPassageScore()
Gets the passageScore.
|
java.lang.String |
getPassageText()
Gets the passageText.
|
java.lang.Long |
getStartOffset()
Gets the startOffset.
|
@SerializedName(value="document_id") protected java.lang.String documentId
@SerializedName(value="passage_score") protected java.lang.Double passageScore
@SerializedName(value="passage_text") protected java.lang.String passageText
@SerializedName(value="start_offset") protected java.lang.Long startOffset
@SerializedName(value="end_offset") protected java.lang.Long endOffset
protected java.lang.String field
public java.lang.String getDocumentId()
The unique identifier of the document from which the passage has been extracted.
public java.lang.Double getPassageScore()
The confidence score of the passages's analysis. A higher score indicates greater confidence.
public java.lang.String getPassageText()
The content of the extracted passage.
public java.lang.Long getStartOffset()
The position of the first character of the extracted passage in the originating field.
public java.lang.Long getEndOffset()
The position of the last character of the extracted passage in the originating field.
public java.lang.String getField()
The label of the field from which the passage has been extracted.