Class: TencentCloud::Ocr::V20181119::Words

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(confidence = nil, character = nil) ⇒ Words

Returns a new instance of Words.



14858
14859
14860
14861
# File 'lib/v20181119/models.rb', line 14858

def initialize(confidence=nil, character=nil)
  @Confidence = confidence
  @Character = character
end

Instance Attribute Details

#CharacterObject

Parameters:

  • Confidence:

    置信度 0 ~100

  • Character:

    候选字Character



14856
14857
14858
# File 'lib/v20181119/models.rb', line 14856

def Character
  @Character
end

#ConfidenceObject

Parameters:

  • Confidence:

    置信度 0 ~100

  • Character:

    候选字Character



14856
14857
14858
# File 'lib/v20181119/models.rb', line 14856

def Confidence
  @Confidence
end

Instance Method Details

#deserialize(params) ⇒ Object



14863
14864
14865
14866
# File 'lib/v20181119/models.rb', line 14863

def deserialize(params)
  @Confidence = params['Confidence']
  @Character = params['Character']
end