Class AnswerSpanRequestDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.AnswerSpanRequestDTO
-
- Direct Known Subclasses:
QueryDTOAnswerSpanRequest
public class AnswerSpanRequestDTO extends Object
To configure Answer span prediction feature.
-
-
Constructor Summary
Constructors Constructor Description AnswerSpanRequestDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
enable()
Get the enable value.Double
scoreThreshold()
Get the scoreThreshold value.Integer
topAnswersWithSpan()
Get the topAnswersWithSpan value.AnswerSpanRequestDTO
withEnable(Boolean enable)
Set the enable value.AnswerSpanRequestDTO
withScoreThreshold(Double scoreThreshold)
Set the scoreThreshold value.AnswerSpanRequestDTO
withTopAnswersWithSpan(Integer topAnswersWithSpan)
Set the topAnswersWithSpan value.
-
-
-
Method Detail
-
enable
public Boolean enable()
Get the enable value.- Returns:
- the enable value
-
withEnable
public AnswerSpanRequestDTO withEnable(Boolean enable)
Set the enable value.- Parameters:
enable
- the enable value to set- Returns:
- the AnswerSpanRequestDTO object itself.
-
scoreThreshold
public Double scoreThreshold()
Get the scoreThreshold value.- Returns:
- the scoreThreshold value
-
withScoreThreshold
public AnswerSpanRequestDTO withScoreThreshold(Double scoreThreshold)
Set the scoreThreshold value.- Parameters:
scoreThreshold
- the scoreThreshold value to set- Returns:
- the AnswerSpanRequestDTO object itself.
-
topAnswersWithSpan
public Integer topAnswersWithSpan()
Get the topAnswersWithSpan value.- Returns:
- the topAnswersWithSpan value
-
withTopAnswersWithSpan
public AnswerSpanRequestDTO withTopAnswersWithSpan(Integer topAnswersWithSpan)
Set the topAnswersWithSpan value.- Parameters:
topAnswersWithSpan
- the topAnswersWithSpan value to set- Returns:
- the AnswerSpanRequestDTO object itself.
-
-