Class: TencentCloud::Ocr::V20181119::CandWord
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::CandWord
- Defined in:
- lib/v20181119/models.rb
Overview
候选字符集(包含候选字Character以及置信度Confidence)
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(candwords = nil) ⇒ CandWord
constructor
A new instance of CandWord.
Constructor Details
#initialize(candwords = nil) ⇒ CandWord
Returns a new instance of CandWord.
1070 1071 1072 |
# File 'lib/v20181119/models.rb', line 1070 def initialize(candwords=nil) @CandWords = candwords end |
Instance Attribute Details
#CandWords ⇒ Object
1068 1069 1070 |
# File 'lib/v20181119/models.rb', line 1068 def CandWords @CandWords end |
Instance Method Details
#deserialize(params) ⇒ Object
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 |
# File 'lib/v20181119/models.rb', line 1074 def deserialize(params) unless params['CandWords'].nil? @CandWords = [] params['CandWords'].each do |i| words_tmp = Words.new words_tmp.deserialize(i) @CandWords << words_tmp end end end |