Class: TencentCloud::Mps::V20190612::AiRecognitionTaskTransTextSegmentItem

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

Overview

翻译片段。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(confidence = nil, starttimeoffset = nil, endtimeoffset = nil, text = nil, trans = nil, wordlist = nil) ⇒ AiRecognitionTaskTransTextSegmentItem

Returns a new instance of AiRecognitionTaskTransTextSegmentItem.



3743
3744
3745
3746
3747
3748
3749
3750
# File 'lib/v20190612/models.rb', line 3743

def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, text=nil, trans=nil, wordlist=nil)
  @Confidence = confidence
  @StartTimeOffset = starttimeoffset
  @EndTimeOffset = endtimeoffset
  @Text = text
  @Trans = trans
  @Wordlist = wordlist
end

Instance Attribute Details

#ConfidenceObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Trans:

    翻译文本。

  • Wordlist:

    字词时间戳信息。



3741
3742
3743
# File 'lib/v20190612/models.rb', line 3741

def Confidence
  @Confidence
end

#EndTimeOffsetObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Trans:

    翻译文本。

  • Wordlist:

    字词时间戳信息。



3741
3742
3743
# File 'lib/v20190612/models.rb', line 3741

def EndTimeOffset
  @EndTimeOffset
end

#StartTimeOffsetObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Trans:

    翻译文本。

  • Wordlist:

    字词时间戳信息。



3741
3742
3743
# File 'lib/v20190612/models.rb', line 3741

def StartTimeOffset
  @StartTimeOffset
end

#TextObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Trans:

    翻译文本。

  • Wordlist:

    字词时间戳信息。



3741
3742
3743
# File 'lib/v20190612/models.rb', line 3741

def Text
  @Text
end

#TransObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Trans:

    翻译文本。

  • Wordlist:

    字词时间戳信息。



3741
3742
3743
# File 'lib/v20190612/models.rb', line 3741

def Trans
  @Trans
end

#WordlistObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Trans:

    翻译文本。

  • Wordlist:

    字词时间戳信息。



3741
3742
3743
# File 'lib/v20190612/models.rb', line 3741

def Wordlist
  @Wordlist
end

Instance Method Details

#deserialize(params) ⇒ Object



3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
# File 'lib/v20190612/models.rb', line 3752

def deserialize(params)
  @Confidence = params['Confidence']
  @StartTimeOffset = params['StartTimeOffset']
  @EndTimeOffset = params['EndTimeOffset']
  @Text = params['Text']
  @Trans = params['Trans']
  unless params['Wordlist'].nil?
    @Wordlist = []
    params['Wordlist'].each do |i|
      wordresult_tmp = WordResult.new
      wordresult_tmp.deserialize(i)
      @Wordlist << wordresult_tmp
    end
  end
end