共用方式為


DocumentLanguage Class

Definition

An object representing the detected language for a given text span.

public class DocumentLanguage : System.ClientModel.Primitives.IJsonModel<Azure.AI.DocumentIntelligence.DocumentLanguage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.DocumentIntelligence.DocumentLanguage>
type DocumentLanguage = class
    interface IJsonModel<DocumentLanguage>
    interface IPersistableModel<DocumentLanguage>
Public Class DocumentLanguage
Implements IJsonModel(Of DocumentLanguage), IPersistableModel(Of DocumentLanguage)
Inheritance
DocumentLanguage
Implements

Properties

Confidence

Confidence of correctly identifying the language.

Locale

Detected language. Value may an ISO 639-1 language code (ex. "en", "fr") or BCP 47 language tag (ex. "zh-Hans").

Spans

Location of the text elements in the concatenated content the language applies to.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DocumentLanguage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DocumentLanguage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DocumentLanguage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DocumentLanguage>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DocumentLanguage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to