Class: Vertex
- Inherits:
-
Object
- Object
- Vertex
- Defined in:
- lib/automated_metareview/vertex.rb
Instance Attribute Summary collapse
-
#frequency ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#index ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#label ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#name ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#node_id ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#parent ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#pos_tag ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#state ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
-
#type ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes.
Instance Method Summary collapse
-
#initialize(vertex_name, vertex_type, index_value, state, lab, par, pos_tag) ⇒ Vertex
constructor
A new instance of Vertex.
Constructor Details
#initialize(vertex_name, vertex_type, index_value, state, lab, par, pos_tag) ⇒ Vertex
Returns a new instance of Vertex.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/automated_metareview/vertex.rb', line 4 def initialize(vertex_name, vertex_type, index_value, state, lab, par, pos_tag) @name = vertex_name @type = vertex_type @frequency = 0 @index = index_value @node_id = -1 #to identify if the id has been set or not @state = state #they are not negated by default #for semantic role labelling @label = lab @parent = par @pos_tag = pos_tag end |
Instance Attribute Details
#frequency ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def frequency @frequency end |
#index ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def index @index end |
#label ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def label @label end |
#name ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def name @name end |
#node_id ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def node_id @node_id end |
#parent ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def parent @parent end |
#pos_tag ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def pos_tag @pos_tag end |
#state ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def state @state end |
#type ⇒ Object
attr_accessor auto creates the get and set methods for the following attributes
3 4 5 |
# File 'lib/automated_metareview/vertex.rb', line 3 def type @type end |