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 Booleanenable()Get the enable value.DoublescoreThreshold()Get the scoreThreshold value.IntegertopAnswersWithSpan()Get the topAnswersWithSpan value.AnswerSpanRequestDTOwithEnable(Boolean enable)Set the enable value.AnswerSpanRequestDTOwithScoreThreshold(Double scoreThreshold)Set the scoreThreshold value.AnswerSpanRequestDTOwithTopAnswersWithSpan(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.
-
-