Class: Google::Apis::LanguageV1::XpsExampleSet

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

Overview

Set of examples or input sources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsExampleSet

Returns a new instance of XpsExampleSet.



2352
2353
2354
# File 'lib/google/apis/language_v1/classes.rb', line 2352

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

Instance Attribute Details

#file_specGoogle::Apis::LanguageV1::XpsFileSpec

Spec of input and output files, on external file systems (CNS, GCS, etc). Corresponds to the JSON property fileSpec



2335
2336
2337
# File 'lib/google/apis/language_v1/classes.rb', line 2335

def file_spec
  @file_spec
end

#fingerprintFixnum

Fingerprint of the example set. Corresponds to the JSON property fingerprint

Returns:

  • (Fixnum)


2340
2341
2342
# File 'lib/google/apis/language_v1/classes.rb', line 2340

def fingerprint
  @fingerprint
end

#num_examplesFixnum

Number of examples. Corresponds to the JSON property numExamples

Returns:

  • (Fixnum)


2345
2346
2347
# File 'lib/google/apis/language_v1/classes.rb', line 2345

def num_examples
  @num_examples
end

#num_input_sourcesFixnum

Number of input sources. Corresponds to the JSON property numInputSources

Returns:

  • (Fixnum)


2350
2351
2352
# File 'lib/google/apis/language_v1/classes.rb', line 2350

def num_input_sources
  @num_input_sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2357
2358
2359
2360
2361
2362
# File 'lib/google/apis/language_v1/classes.rb', line 2357

def update!(**args)
  @file_spec = args[:file_spec] if args.key?(:file_spec)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @num_examples = args[:num_examples] if args.key?(:num_examples)
  @num_input_sources = args[:num_input_sources] if args.key?(:num_input_sources)
end