Class: TencentCloud::Tci::V20190318::TextItem

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

Overview

当前句子的信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ConfidenceObject

Parameters:

  • Words:

    当前句子包含的所有单词信息

  • Confidence:

    当前句子的置信度

  • Mbtm:

    当前句子语音的起始时间点,单位为ms

  • Metm:

    当前句子语音的终止时间点,单位为ms

  • Tag:

    保留参数,暂无意义

  • Text:

    当前句子

  • TextSize:

    当前句子的字节数



4170
4171
4172
# File 'lib/v20190318/models.rb', line 4170

def Confidence
  @Confidence
end

#MbtmObject

Parameters:

  • Words:

    当前句子包含的所有单词信息

  • Confidence:

    当前句子的置信度

  • Mbtm:

    当前句子语音的起始时间点,单位为ms

  • Metm:

    当前句子语音的终止时间点,单位为ms

  • Tag:

    保留参数,暂无意义

  • Text:

    当前句子

  • TextSize:

    当前句子的字节数



4170
4171
4172
# File 'lib/v20190318/models.rb', line 4170

def Mbtm
  @Mbtm
end

#MetmObject

Parameters:

  • Words:

    当前句子包含的所有单词信息

  • Confidence:

    当前句子的置信度

  • Mbtm:

    当前句子语音的起始时间点,单位为ms

  • Metm:

    当前句子语音的终止时间点,单位为ms

  • Tag:

    保留参数,暂无意义

  • Text:

    当前句子

  • TextSize:

    当前句子的字节数



4170
4171
4172
# File 'lib/v20190318/models.rb', line 4170

def Metm
  @Metm
end

#TagObject

Parameters:

  • Words:

    当前句子包含的所有单词信息

  • Confidence:

    当前句子的置信度

  • Mbtm:

    当前句子语音的起始时间点,单位为ms

  • Metm:

    当前句子语音的终止时间点,单位为ms

  • Tag:

    保留参数,暂无意义

  • Text:

    当前句子

  • TextSize:

    当前句子的字节数



4170
4171
4172
# File 'lib/v20190318/models.rb', line 4170

def Tag
  @Tag
end

#TextObject

Parameters:

  • Words:

    当前句子包含的所有单词信息

  • Confidence:

    当前句子的置信度

  • Mbtm:

    当前句子语音的起始时间点,单位为ms

  • Metm:

    当前句子语音的终止时间点,单位为ms

  • Tag:

    保留参数,暂无意义

  • Text:

    当前句子

  • TextSize:

    当前句子的字节数



4170
4171
4172
# File 'lib/v20190318/models.rb', line 4170

def Text
  @Text
end

#TextSizeObject

Parameters:

  • Words:

    当前句子包含的所有单词信息

  • Confidence:

    当前句子的置信度

  • Mbtm:

    当前句子语音的起始时间点,单位为ms

  • Metm:

    当前句子语音的终止时间点,单位为ms

  • Tag:

    保留参数,暂无意义

  • Text:

    当前句子

  • TextSize:

    当前句子的字节数



4170
4171
4172
# File 'lib/v20190318/models.rb', line 4170

def TextSize
  @TextSize
end

#WordsObject

Parameters:

  • Words:

    当前句子包含的所有单词信息

  • Confidence:

    当前句子的置信度

  • Mbtm:

    当前句子语音的起始时间点,单位为ms

  • Metm:

    当前句子语音的终止时间点,单位为ms

  • Tag:

    保留参数,暂无意义

  • Text:

    当前句子

  • TextSize:

    当前句子的字节数



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