Class: Corenlp::TokenDependency
- Inherits:
-
Object
- Object
- Corenlp::TokenDependency
- Defined in:
- lib/corenlp/token_dependency.rb
Instance Attribute Summary collapse
-
#dependent ⇒ Object
Returns the value of attribute dependent.
-
#governor ⇒ Object
Returns the value of attribute governor.
-
#relation ⇒ Object
Returns the value of attribute relation.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TokenDependency
constructor
A new instance of TokenDependency.
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
#dependent ⇒ Object
Returns the value of attribute dependent.
3 4 5 |
# File 'lib/corenlp/token_dependency.rb', line 3 def dependent @dependent end |
#governor ⇒ Object
Returns the value of attribute governor.
3 4 5 |
# File 'lib/corenlp/token_dependency.rb', line 3 def governor @governor end |
#relation ⇒ Object
Returns the value of attribute relation.
3 4 5 |
# File 'lib/corenlp/token_dependency.rb', line 3 def relation @relation end |