Class: TencentCloud::Tci::V20190318::TextItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tci::V20190318::TextItem
- Defined in:
- lib/v20190318/models.rb
Overview
当前句子的信息
Instance Attribute Summary collapse
- #Confidence ⇒ Object
- #Mbtm ⇒ Object
- #Metm ⇒ Object
- #Tag ⇒ Object
- #Text ⇒ Object
- #TextSize ⇒ Object
- #Words ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(words = nil, confidence = nil, mbtm = nil, metm = nil, tag = nil, text = nil, textsize = nil) ⇒ TextItem
constructor
A new instance of TextItem.
Constructor Details
#initialize(words = nil, confidence = nil, mbtm = nil, metm = nil, tag = nil, text = nil, textsize = nil) ⇒ TextItem
Returns a new instance of TextItem.
4172 4173 4174 4175 4176 4177 4178 4179 4180 |
# File 'lib/v20190318/models.rb', line 4172 def initialize(words=nil, confidence=nil, mbtm=nil, metm=nil, tag=nil, text=nil, textsize=nil) @Words = words @Confidence = confidence @Mbtm = mbtm @Metm = metm @Tag = tag @Text = text @TextSize = textsize end |
Instance Attribute Details
#Confidence ⇒ Object
4170 4171 4172 |
# File 'lib/v20190318/models.rb', line 4170 def Confidence @Confidence end |
#Mbtm ⇒ Object
4170 4171 4172 |
# File 'lib/v20190318/models.rb', line 4170 def Mbtm @Mbtm end |
#Metm ⇒ Object
4170 4171 4172 |
# File 'lib/v20190318/models.rb', line 4170 def Metm @Metm end |
#Tag ⇒ Object
4170 4171 4172 |
# File 'lib/v20190318/models.rb', line 4170 def Tag @Tag end |
#Text ⇒ Object
4170 4171 4172 |
# File 'lib/v20190318/models.rb', line 4170 def Text @Text end |
#TextSize ⇒ Object
4170 4171 4172 |
# File 'lib/v20190318/models.rb', line 4170 def TextSize @TextSize end |
#Words ⇒ Object
4170 4171 4172 |
# File 'lib/v20190318/models.rb', line 4170 def Words @Words end |
Instance Method Details
#deserialize(params) ⇒ Object
4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 |
# File 'lib/v20190318/models.rb', line 4182 def deserialize(params) unless params['Words'].nil? @Words = [] params['Words'].each do |i| word_tmp = Word.new word_tmp.deserialize(i) @Words << word_tmp end end @Confidence = params['Confidence'] @Mbtm = params['Mbtm'] @Metm = params['Metm'] @Tag = params['Tag'] @Text = params['Text'] @TextSize = params['TextSize'] end |