Class: TencentCloud::Nlp::V20190408::Entity
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::Entity
- 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, type = nil, name = nil) ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize(word = nil, beginoffset = nil, length = nil, type = nil, name = nil) ⇒ Entity
Returns a new instance of Entity.
331 332 333 334 335 336 337 |
# File 'lib/v20190408/models.rb', line 331 def initialize(word=nil, beginoffset=nil, length=nil, type=nil, name=nil) @Word = word @BeginOffset = beginoffset @Length = length @Type = type @Name = name end |
Instance Attribute Details
#BeginOffset ⇒ Object
329 330 331 |
# File 'lib/v20190408/models.rb', line 329 def BeginOffset @BeginOffset end |
#Length ⇒ Object
329 330 331 |
# File 'lib/v20190408/models.rb', line 329 def Length @Length end |
#Name ⇒ Object
329 330 331 |
# File 'lib/v20190408/models.rb', line 329 def Name @Name end |
#Type ⇒ Object
329 330 331 |
# File 'lib/v20190408/models.rb', line 329 def Type @Type end |
#Word ⇒ Object
329 330 331 |
# File 'lib/v20190408/models.rb', line 329 def Word @Word end |
Instance Method Details
#deserialize(params) ⇒ Object
339 340 341 342 343 344 345 |
# File 'lib/v20190408/models.rb', line 339 def deserialize(params) @Word = params['Word'] @BeginOffset = params['BeginOffset'] @Length = params['Length'] @Type = params['Type'] @Name = params['Name'] end |