Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::RougeSpec (v0.59.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#rouge_type

def rouge_type() -> ::String
Returns
  • (::String) — Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.

#rouge_type=

def rouge_type=(value) -> ::String
Parameter
  • value (::String) — Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
Returns
  • (::String) — Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.

#split_summaries

def split_summaries() -> ::Boolean
Returns
  • (::Boolean) — Optional. Whether to split summaries while using rougeLsum.

#split_summaries=

def split_summaries=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether to split summaries while using rougeLsum.
Returns
  • (::Boolean) — Optional. Whether to split summaries while using rougeLsum.

#use_stemmer

def use_stemmer() -> ::Boolean
Returns
  • (::Boolean) — Optional. Whether to use stemmer to compute rouge score.

#use_stemmer=

def use_stemmer=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether to use stemmer to compute rouge score.
Returns
  • (::Boolean) — Optional. Whether to use stemmer to compute rouge score.