Class: AWSCDK::Comprehend::CfnFlywheel::EntityRecognitionConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Comprehend::CfnFlywheel::EntityRecognitionConfigProperty
- Defined in:
- comprehend/cfn_flywheel.rb
Overview
Configuration required for an entity recognition model.
Instance Attribute Summary collapse
-
#entity_types ⇒ AWSCDK::IResolvable, ...
readonly
Up to 25 entity types that the model is trained to recognize.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entity_types: nil) ⇒ EntityRecognitionConfigProperty
constructor
A new instance of EntityRecognitionConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entity_types: nil) ⇒ EntityRecognitionConfigProperty
Returns a new instance of EntityRecognitionConfigProperty.
733 734 735 736 |
# File 'comprehend/cfn_flywheel.rb', line 733 def initialize(entity_types: nil) @entity_types = entity_types Jsii::Type.check_type(@entity_types, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29tcHJlaGVuZC5DZm5GbHl3aGVlbC5FbnRpdHlUeXBlc0xpc3RJdGVtUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "entityTypes") unless @entity_types.nil? end |
Instance Attribute Details
#entity_types ⇒ AWSCDK::IResolvable, ... (readonly)
Up to 25 entity types that the model is trained to recognize.
742 743 744 |
# File 'comprehend/cfn_flywheel.rb', line 742 def entity_types @entity_types end |
Class Method Details
.jsii_properties ⇒ Object
744 745 746 747 748 |
# File 'comprehend/cfn_flywheel.rb', line 744 def self.jsii_properties { :entity_types => "entityTypes", } end |
Instance Method Details
#to_jsii ⇒ Object
750 751 752 753 754 755 756 |
# File 'comprehend/cfn_flywheel.rb', line 750 def to_jsii result = {} result.merge!({ "entityTypes" => @entity_types, }) result.compact end |