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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/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.



4830
4831
4832
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4830

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



4809
4810
4811
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4809

def evaluate_list
  @evaluate_list
end

#ignore_listGoogle::Apis::HealthcareV1beta1::FilterList

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



4814
4815
4816
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4814

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)


4827
4828
4829
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4827

def strict_matching
  @strict_matching
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4835
4836
4837
4838
4839
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4835

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