Class: TencentCloud::Nlp::V20190408::SentencePair
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::SentencePair
- Defined in:
- lib/v20190408/models.rb
Overview
待分析的句子对
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sourcetext = nil, targettext = nil) ⇒ SentencePair
constructor
A new instance of SentencePair.
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
#SourceText ⇒ Object
511 512 513 |
# File 'lib/v20190408/models.rb', line 511 def SourceText @SourceText end |
#TargetText ⇒ Object
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 |