Class: Google::Apis::HealthcareV1beta1::InfoTypeConfig

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

Overview

Specifies how to use infoTypes for evaluation. For example, a user might only want to evaluate PERSON, LOCATION, and AGE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InfoTypeConfig

Returns a new instance of InfoTypeConfig.



3292
3293
3294
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 3292

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

Instance Attribute Details

#evaluate_listGoogle::Apis::HealthcareV1beta1::FilterList

List of infoTypes to be filtered. Corresponds to the JSON property evaluateList



3271
3272
3273
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 3271

def evaluate_list
  @evaluate_list
end

#ignore_listGoogle::Apis::HealthcareV1beta1::FilterList

List of infoTypes to be filtered. Corresponds to the JSON property ignoreList



3276
3277
3278
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 3276

def ignore_list
  @ignore_list
end

#strict_matchingBoolean Also known as: strict_matching?

If TRUE, infoTypes described by filter are used for evaluation. Otherwise, infoTypes are not considered for evaluation. For example: * Annotated text: " Toronto is a location" * Finding 1: "infoType": "PERSON", "quote": "Toronto", "start": 0, "end": 7 * Finding 2: "infoType": "CITY", "quote": "Toronto", "start": 0, "end": 7 * Finding 3: ``* Ground truth:"infoType": " LOCATION", "quote": "Toronto", "start": 0, "end": 7`Whenstrict_matching isTRUE: * Finding 1: 1 false positive * Finding 2: 1 false positive * Finding 3: 1 false negative Whenstrict_matchingisFALSE: * Finding 1: 1 true positive * Finding 2: 1 true positive * Finding 3: 1 false negative Corresponds to the JSON propertystrictMatching`

Returns:

  • (Boolean)


3289
3290
3291
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 3289

def strict_matching
  @strict_matching
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3297
3298
3299
3300
3301
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 3297

def update!(**args)
  @evaluate_list = args[:evaluate_list] if args.key?(:evaluate_list)
  @ignore_list = args[:ignore_list] if args.key?(:ignore_list)
  @strict_matching = args[:strict_matching] if args.key?(:strict_matching)
end