Class: TencentCloud::Ocr::V20181119::CandWord

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

候选字符集(包含候选字Character以及置信度Confidence)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CandWordsObject

Parameters:

  • CandWords:

    候选字符集的单词信息(包括单词Character和单词置信度confidence)



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