Class: TencentCloud::Nlp::V20190408::BasicParticiple
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::BasicParticiple
- 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) ⇒ BasicParticiple
constructor
A new instance of BasicParticiple.
Constructor Details
#initialize(word = nil, beginoffset = nil, length = nil, pos = nil) ⇒ BasicParticiple
Returns a new instance of BasicParticiple.
84 85 86 87 88 89 |
# File 'lib/v20190408/models.rb', line 84 def initialize(word=nil, beginoffset=nil, length=nil, pos=nil) @Word = word @BeginOffset = beginoffset @Length = length @Pos = pos end |
Instance Attribute Details
#BeginOffset ⇒ Object
82 83 84 |
# File 'lib/v20190408/models.rb', line 82 def BeginOffset @BeginOffset end |
#Length ⇒ Object
82 83 84 |
# File 'lib/v20190408/models.rb', line 82 def Length @Length end |
#Pos ⇒ Object
82 83 84 |
# File 'lib/v20190408/models.rb', line 82 def Pos @Pos end |
#Word ⇒ Object
82 83 84 |
# File 'lib/v20190408/models.rb', line 82 def Word @Word end |
Instance Method Details
#deserialize(params) ⇒ Object
91 92 93 94 95 96 |
# File 'lib/v20190408/models.rb', line 91 def deserialize(params) @Word = params['Word'] @BeginOffset = params['BeginOffset'] @Length = params['Length'] @Pos = params['Pos'] end |