[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRougeSpec\u003c/code\u003e class in the Vertex AI v1beta1 API calculates the recall of n-grams in predictions compared to a reference, providing a score between 0 and 1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRougeSpec\u003c/code\u003e is a sealed class that implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports specifying different Rouge types (e.g., rougen[1-9], rougeL, rougeLsum) through its \u003ccode\u003eRougeType\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSplitSummaries\u003c/code\u003e and \u003ccode\u003eUseStemmer\u003c/code\u003e are optional boolean properties that control splitting of summaries when using rougeLsum and applying stemming respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are 2 constructors for this class, one default and one that takes in another \u003ccode\u003eRougeSpec\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class RougeSpec (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RougeSpec)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.RougeSpec) \n\n public sealed class RougeSpec : IMessage\u003cRougeSpec\u003e, IEquatable\u003cRougeSpec\u003e, IDeepCloneable\u003cRougeSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class RougeSpec.\n\nSpec for rouge score metric - calculates the recall of n-grams in prediction\nas compared to reference - returns a score ranging between 0 and 1. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RougeSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RougeSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RougeSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RougeSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RougeSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RougeSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RougeSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### RougeSpec()\n\n public RougeSpec()\n\n### RougeSpec(RougeSpec)\n\n public RougeSpec(RougeSpec other)\n\nProperties\n----------\n\n### RougeType\n\n public string RougeType { get; set; }\n\nOptional. Supported rouge types are rougen\\[1-9\\], rougeL, and rougeLsum.\n\n### SplitSummaries\n\n public bool SplitSummaries { get; set; }\n\nOptional. Whether to split summaries while using rougeLsum.\n\n### UseStemmer\n\n public bool UseStemmer { get; set; }\n\nOptional. Whether to use stemmer to compute rouge score."]]