Class: TencentCloud::Mps::V20190612::AiReviewPoliticalOcrTaskOutput
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::AiReviewPoliticalOcrTaskOutput
- Defined in:
- lib/v20190612/models.rb
Overview
Ocr 文字敏感信息
Instance Attribute Summary collapse
-
#Confidence ⇒ Object
- pass。
- review。
- block。
. -
#SegmentSet ⇒ Object
- pass。
- review。
- block。
. -
#Suggestion ⇒ Object
- pass。
- review。
- block。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(confidence = nil, suggestion = nil, segmentset = nil) ⇒ AiReviewPoliticalOcrTaskOutput
constructor
A new instance of AiReviewPoliticalOcrTaskOutput.
Constructor Details
#initialize(confidence = nil, suggestion = nil, segmentset = nil) ⇒ AiReviewPoliticalOcrTaskOutput
Returns a new instance of AiReviewPoliticalOcrTaskOutput.
3849 3850 3851 3852 3853 |
# File 'lib/v20190612/models.rb', line 3849 def initialize(confidence=nil, suggestion=nil, segmentset=nil) @Confidence = confidence @Suggestion = suggestion @SegmentSet = segmentset end |
Instance Attribute Details
#Confidence ⇒ Object
3847 3848 3849 |
# File 'lib/v20190612/models.rb', line 3847 def Confidence @Confidence end |
#SegmentSet ⇒ Object
3847 3848 3849 |
# File 'lib/v20190612/models.rb', line 3847 def SegmentSet @SegmentSet end |
#Suggestion ⇒ Object
3847 3848 3849 |
# File 'lib/v20190612/models.rb', line 3847 def Suggestion @Suggestion end |
Instance Method Details
#deserialize(params) ⇒ Object
3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 |
# File 'lib/v20190612/models.rb', line 3855 def deserialize(params) @Confidence = params['Confidence'] @Suggestion = params['Suggestion'] unless params['SegmentSet'].nil? @SegmentSet = [] params['SegmentSet'].each do |i| mediacontentreviewocrtextsegmentitem_tmp = MediaContentReviewOcrTextSegmentItem.new mediacontentreviewocrtextsegmentitem_tmp.deserialize(i) @SegmentSet << mediacontentreviewocrtextsegmentitem_tmp end end end |