Class: Google::Apis::AiplatformV1beta1::NlpSaftLanguageSpanSequence

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NlpSaftLanguageSpanSequence

Returns a new instance of NlpSaftLanguageSpanSequence.



33909
33910
33911
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33909

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#language_spansArray<Google::Apis::AiplatformV1beta1::NlpSaftLanguageSpan>

A sequence of LanguageSpan objects, each assigning a language to a subspan of the input. Corresponds to the JSON property languageSpans



33902
33903
33904
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33902

def language_spans
  @language_spans
end

#probabilityFloat

The probability of this sequence of LanguageSpans. Corresponds to the JSON property probability

Returns:

  • (Float)


33907
33908
33909
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33907

def probability
  @probability
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33914
33915
33916
33917
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33914

def update!(**args)
  @language_spans = args[:language_spans] if args.key?(:language_spans)
  @probability = args[:probability] if args.key?(:probability)
end