Class: TencentCloud::Nlp::V20190408::SentencePair

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

Overview

待分析的句子对

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sourcetext = nil, targettext = nil) ⇒ SentencePair

Returns a new instance of SentencePair.



513
514
515
516
# File 'lib/v20190408/models.rb', line 513

def initialize(sourcetext=nil, targettext=nil)
  @SourceText = sourcetext
  @TargetText = targettext
end

Instance Attribute Details

#SourceTextObject

Parameters:

  • SourceText:

    需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)

  • TargetText:

    目标句子。(仅支持UTF-8格式,不超过500字符)



511
512
513
# File 'lib/v20190408/models.rb', line 511

def SourceText
  @SourceText
end

#TargetTextObject

Parameters:

  • SourceText:

    需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)

  • TargetText:

    目标句子。(仅支持UTF-8格式,不超过500字符)



511
512
513
# File 'lib/v20190408/models.rb', line 511

def TargetText
  @TargetText
end

Instance Method Details

#deserialize(params) ⇒ Object



518
519
520
521
# File 'lib/v20190408/models.rb', line 518

def deserialize(params)
  @SourceText = params['SourceText']
  @TargetText = params['TargetText']
end