Skip to content

Commit

Permalink
[TextAnalytics] SummarySentece is now a struct (#22915)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinelski authored Jul 27, 2021
1 parent 8f78e33 commit a780874
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,11 @@ internal SentimentConfidenceScores() { }
public double Neutral { get { throw null; } }
public double Positive { get { throw null; } }
}
public partial class SummarySentence
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct SummarySentence
{
internal SummarySentence() { }
private readonly object _dummy;
private readonly int _dummyPrimitive;
public int Length { get { throw null; } }
public int Offset { get { throw null; } }
public double RankScore { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics
/// operation. The service attributes a rank score to it for measuring how relevant
/// the sentence is to the input document.
/// </summary>
public class SummarySentence
public readonly struct SummarySentence
{
internal SummarySentence(ExtractedSummarySentence sentence)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
using Azure.AI.TextAnalytics;
using NUnit.Framework;

/// <summary>
/// The suite of tests for the <see cref="TextAnalyticsModelFactory"/> class.
/// </summary>
namespace Azure.AI.TextAnalytics.Tests
{
/// <summary>
/// The suite of tests for the <see cref="TextAnalyticsModelFactory"/> class.
/// </summary>
public class TextAnalyticsModelFactoryTests
{
#region Extract Summary
Expand Down

0 comments on commit a780874

Please sign in to comment.