Class: TencentCloud::Nlp::V20190408::CompoundParticiple
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::CompoundParticiple
- Defined in:
- lib/v20190408/models.rb
Overview
复合粒度分词和词性标注的结果。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(word = nil, beginoffset = nil, length = nil, pos = nil) ⇒ CompoundParticiple
constructor
A new instance of CompoundParticiple.
Constructor Details
#initialize(word = nil, beginoffset = nil, length = nil, pos = nil) ⇒ CompoundParticiple
Returns a new instance of CompoundParticiple.
250 251 252 253 254 255 |
# File 'lib/v20190408/models.rb', line 250 def initialize(word=nil, beginoffset=nil, length=nil, pos=nil) @Word = word @BeginOffset = beginoffset @Length = length @Pos = pos end |
Instance Attribute Details
#BeginOffset ⇒ Object
248 249 250 |
# File 'lib/v20190408/models.rb', line 248 def BeginOffset @BeginOffset end |
#Length ⇒ Object
248 249 250 |
# File 'lib/v20190408/models.rb', line 248 def Length @Length end |
#Pos ⇒ Object
248 249 250 |
# File 'lib/v20190408/models.rb', line 248 def Pos @Pos end |
#Word ⇒ Object
248 249 250 |
# File 'lib/v20190408/models.rb', line 248 def Word @Word end |
Instance Method Details
#deserialize(params) ⇒ Object
257 258 259 260 261 262 |
# File 'lib/v20190408/models.rb', line 257 def deserialize(params) @Word = params['Word'] @BeginOffset = params['BeginOffset'] @Length = params['Length'] @Pos = params['Pos'] end |