Class: Corenlp::TokenDependency

Inherits:
Object
  • Object
show all
Defined in:
lib/corenlp/token_dependency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ TokenDependency

Returns a new instance of TokenDependency.



5
6
7
8
9
# File 'lib/corenlp/token_dependency.rb', line 5

def initialize(attrs = {})
  @dependent = attrs[:dependent]
  @governor = attrs[:governor]
  @relation = attrs[:relation]
end

Instance Attribute Details

#dependentObject

Returns the value of attribute dependent.



3
4
5
# File 'lib/corenlp/token_dependency.rb', line 3

def dependent
  @dependent
end

#governorObject

Returns the value of attribute governor.



3
4
5
# File 'lib/corenlp/token_dependency.rb', line 3

def governor
  @governor
end

#relationObject

Returns the value of attribute relation.



3
4
5
# File 'lib/corenlp/token_dependency.rb', line 3

def relation
  @relation
end