Udostępnij za pośrednictwem


MultiLanguageInput Class

Definition

Contains an input document to be analyzed by the service.

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

Constructors

MultiLanguageInput(String, String)

Initializes a new instance of MultiLanguageInput.

Properties

Id

A unique, non-empty document identifier.

Language

(Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. (Following only applies to 2023-04-15-preview and above) For Auto Language Detection, use "auto". If not set, use "en" for English as default.

Text

The input text to process.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MultiLanguageInput>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MultiLanguageInput>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MultiLanguageInput>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MultiLanguageInput>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MultiLanguageInput>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to