Language

InferenceModelFactory.SentenceScore(Int32, Single) Method

Definition

A sentence-level relevance score for a submitted document.

public static Azure.Data.AI.SentenceScore SentenceScore(int index = 0, float score = 0);
static member SentenceScore : int * single -> Azure.Data.AI.SentenceScore
Public Shared Function SentenceScore (Optional index As Integer = 0, Optional score As Single = 0) As SentenceScore

Parameters

index
Int32

The zero-based position of the sentence in the document.

score
Single

The relevance score assigned to the sentence.

Returns

A new SentenceScore instance for mocking.

Applies to