Class: Google::Apis::AiplatformV1beta1::NlpSaftLanguageSpan
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::NlpSaftLanguageSpan
- 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
-
#end ⇒ Fixnum
Corresponds to the JSON property
end. -
#language_code ⇒ String
A BCP 47 language code for this span.
-
#locales ⇒ Google::Apis::AiplatformV1beta1::NlpSaftLangIdLocalesResult
Optional field containing any information that was predicted about the specific locale(s) of the span.
-
#probability ⇒ Float
A probability associated with this prediction.
-
#start ⇒ Fixnum
Start and end byte offsets, inclusive, within the given input string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NlpSaftLanguageSpan
constructor
A new instance of NlpSaftLanguageSpan.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NlpSaftLanguageSpan
Returns a new instance of NlpSaftLanguageSpan.
37008 37009 37010 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37008 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Fixnum
Corresponds to the JSON property end
36982 36983 36984 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36982 def end @end end |
#language_code ⇒ String
A BCP 47 language code for this span.
Corresponds to the JSON property languageCode
36987 36988 36989 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36987 def language_code @language_code end |
#locales ⇒ Google::Apis::AiplatformV1beta1::NlpSaftLangIdLocalesResult
Optional field containing any information that was predicted about the
specific locale(s) of the span.
Corresponds to the JSON property locales
36993 36994 36995 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36993 def locales @locales end |
#probability ⇒ Float
A probability associated with this prediction.
Corresponds to the JSON property probability
36998 36999 37000 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36998 def probability @probability end |
#start ⇒ Fixnum
Start and end byte offsets, inclusive, within the given input string. A value
of -1 implies that this field is not set. Both fields must either be set with
a nonnegative value or both are unset. If both are unset then this
LanguageSpan applies to the entire input.
Corresponds to the JSON property start
37006 37007 37008 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37006 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
37013 37014 37015 37016 37017 37018 37019 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37013 def update!(**args) @end = args[:end] if args.key?(:end) @language_code = args[:language_code] if args.key?(:language_code) @locales = args[:locales] if args.key?(:locales) @probability = args[:probability] if args.key?(:probability) @start = args[:start] if args.key?(:start) end |