Class: TencentCloud::Nlp::V20190408::EvaluateSentenceSimilarityRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::EvaluateSentenceSimilarityRequest
- Defined in:
- lib/v20190408/models.rb
Overview
EvaluateSentenceSimilarity请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sentencepairlist = nil) ⇒ EvaluateSentenceSimilarityRequest
constructor
A new instance of EvaluateSentenceSimilarityRequest.
Constructor Details
#initialize(sentencepairlist = nil) ⇒ EvaluateSentenceSimilarityRequest
Returns a new instance of EvaluateSentenceSimilarityRequest.
355 356 357 |
# File 'lib/v20190408/models.rb', line 355 def initialize(sentencepairlist=nil) @SentencePairList = sentencepairlist end |
Instance Attribute Details
#SentencePairList ⇒ Object
353 354 355 |
# File 'lib/v20190408/models.rb', line 353 def SentencePairList @SentencePairList end |
Instance Method Details
#deserialize(params) ⇒ Object
359 360 361 362 363 364 365 366 367 368 |
# File 'lib/v20190408/models.rb', line 359 def deserialize(params) unless params['SentencePairList'].nil? @SentencePairList = [] params['SentencePairList'].each do |i| sentencepair_tmp = SentencePair.new sentencepair_tmp.deserialize(i) @SentencePairList << sentencepair_tmp end end end |