TextAnalyticsModelFactory.AnalyzeSentimentResult 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.
Overloads
AnalyzeSentimentResult(String, TextAnalyticsError) |
Initializes a new instance of AnalyzeSentimentResult for mocking purposes. |
AnalyzeSentimentResult(String, TextDocumentStatistics, DocumentSentiment) |
Initializes a new instance of AnalyzeSentimentResult for mocking purposes. |
AnalyzeSentimentResult(String, TextAnalyticsError)
- Source:
- TextAnalyticsModelFactory.cs
Initializes a new instance of AnalyzeSentimentResult for mocking purposes.
public static Azure.AI.TextAnalytics.AnalyzeSentimentResult AnalyzeSentimentResult (string id, Azure.AI.TextAnalytics.TextAnalyticsError error);
static member AnalyzeSentimentResult : string * Azure.AI.TextAnalytics.TextAnalyticsError -> Azure.AI.TextAnalytics.AnalyzeSentimentResult
Public Shared Function AnalyzeSentimentResult (id As String, error As TextAnalyticsError) As AnalyzeSentimentResult
Parameters
- error
- TextAnalyticsError
Sets the Error property.
Returns
A new instance of AnalyzeSentimentResult for mocking purposes.
Applies to
AnalyzeSentimentResult(String, TextDocumentStatistics, DocumentSentiment)
- Source:
- TextAnalyticsModelFactory.cs
Initializes a new instance of AnalyzeSentimentResult for mocking purposes.
public static Azure.AI.TextAnalytics.AnalyzeSentimentResult AnalyzeSentimentResult (string id, Azure.AI.TextAnalytics.TextDocumentStatistics statistics, Azure.AI.TextAnalytics.DocumentSentiment documentSentiment);
static member AnalyzeSentimentResult : string * Azure.AI.TextAnalytics.TextDocumentStatistics * Azure.AI.TextAnalytics.DocumentSentiment -> Azure.AI.TextAnalytics.AnalyzeSentimentResult
Public Shared Function AnalyzeSentimentResult (id As String, statistics As TextDocumentStatistics, documentSentiment As DocumentSentiment) As AnalyzeSentimentResult
Parameters
- statistics
- TextDocumentStatistics
Sets the Statistics property.
- documentSentiment
- DocumentSentiment
Sets the DocumentSentiment property.
Returns
A new instance of AnalyzeSentimentResult for mocking purposes.
Applies to
Azure SDK for .NET
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk