TextAnalysisModelFactory.NamedEntity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of NamedEntity.
public static Azure.AI.Language.Text.NamedEntity NamedEntity (string text = default, string category = default, string subcategory = default, int offset = 0, int length = 0, double confidenceScore = 0);
static member NamedEntity : string * string * string * int * int * double -> Azure.AI.Language.Text.NamedEntity
Public Shared Function NamedEntity (Optional text As String = Nothing, Optional category As String = Nothing, Optional subcategory As String = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0, Optional confidenceScore As Double = 0) As NamedEntity
Parameters
- text
- String
Entity text as appears in the request.
- category
- String
Entity type.
- subcategory
- String
(Optional) Entity sub type.
- offset
- Int32
Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned.
- length
- Int32
Length for the entity text. Use of different 'stringIndexType' values can affect the length returned.
- confidenceScore
- Double
Confidence score between 0 and 1 of the extracted entity.
Returns
A new NamedEntity instance for mocking.