public sealed class RougeSpec : IMessage<RougeSpec>, IEquatable<RougeSpec>, IDeepCloneable<RougeSpec>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1beta1 API class RougeSpec.
Spec for rouge score metric - calculates the recall of n-grams in prediction as compared to reference - returns a score ranging between 0 and 1.
Implements
IMessageRougeSpec, IEquatableRougeSpec, IDeepCloneableRougeSpec, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
RougeSpec()
public RougeSpec()RougeSpec(RougeSpec)
public RougeSpec(RougeSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
RougeSpec |
Properties
RougeType
public string RougeType { get; set; }Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
| Property Value | |
|---|---|
| Type | Description |
string |
|
SplitSummaries
public bool SplitSummaries { get; set; }Optional. Whether to split summaries while using rougeLsum.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
UseStemmer
public bool UseStemmer { get; set; }Optional. Whether to use stemmer to compute rouge score.
| Property Value | |
|---|---|
| Type | Description |
bool |
|