[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eBleuSpec\u003c/code\u003e class within the Vertex AI v1beta1 API, specifically in the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBleuSpec\u003c/code\u003e is a class that calculates the bleu score metric, assessing the precision of n-grams in a prediction compared to a reference, with scores ranging from 0 to 1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBleuSpec\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBleuSpec\u003c/code\u003e class has two constructors: a default constructor \u003ccode\u003eBleuSpec()\u003c/code\u003e and a copy constructor \u003ccode\u003eBleuSpec(BleuSpec other)\u003c/code\u003e that accepts another \u003ccode\u003eBleuSpec\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eIt has one property \u003ccode\u003eUseEffectiveOrder\u003c/code\u003e which if true computes bleu score accordingly.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class BleuSpec (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.BleuSpec)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.BleuSpec) \n\n public sealed class BleuSpec : IMessage\u003cBleuSpec\u003e, IEquatable\u003cBleuSpec\u003e, IDeepCloneable\u003cBleuSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class BleuSpec.\n\nSpec for bleu score metric - calculates the precision of n-grams in the\nprediction as compared to reference - returns a score ranging between 0 to 1. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BleuSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BleuSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.BleuSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BleuSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.BleuSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BleuSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.BleuSpec), [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### BleuSpec()\n\n public BleuSpec()\n\n### BleuSpec(BleuSpec)\n\n public BleuSpec(BleuSpec other)\n\nProperties\n----------\n\n### UseEffectiveOrder\n\n public bool UseEffectiveOrder { get; set; }\n\nOptional. Whether to use_effective_order to compute bleu score."]]