Class: Google::Apis::AiplatformV1beta1::NlpSaftLanguageSpanSequence
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::NlpSaftLanguageSpanSequence
- 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
-
#language_spans ⇒ Array<Google::Apis::AiplatformV1beta1::NlpSaftLanguageSpan>
A sequence of LanguageSpan objects, each assigning a language to a subspan of the input.
-
#probability ⇒ Float
The probability of this sequence of LanguageSpans.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NlpSaftLanguageSpanSequence
constructor
A new instance of NlpSaftLanguageSpanSequence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NlpSaftLanguageSpanSequence
Returns a new instance of NlpSaftLanguageSpanSequence.
32850 32851 32852 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32850 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_spans ⇒ Array<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
32843 32844 32845 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32843 def language_spans @language_spans end |
#probability ⇒ Float
The probability of this sequence of LanguageSpans.
Corresponds to the JSON property probability
32848 32849 32850 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32848 def probability @probability end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32855 32856 32857 32858 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32855 def update!(**args) @language_spans = args[:language_spans] if args.key?(:language_spans) @probability = args[:probability] if args.key?(:probability) end |