class Vertex
Attributes
frequency[RW]
attr_accessor auto creates the get and set methods for the following attributes
index[RW]
attr_accessor auto creates the get and set methods for the following attributes
label[RW]
attr_accessor auto creates the get and set methods for the following attributes
name[RW]
attr_accessor auto creates the get and set methods for the following attributes
node_id[RW]
attr_accessor auto creates the get and set methods for the following attributes
parent[RW]
attr_accessor auto creates the get and set methods for the following attributes
pos_tag[RW]
attr_accessor auto creates the get and set methods for the following attributes
state[RW]
attr_accessor auto creates the get and set methods for the following attributes
type[RW]
attr_accessor auto creates the get and set methods for the following attributes
Public Class Methods
new(vertex_name, vertex_type, index_value, state, lab, par, pos_tag)
click to toggle source
# 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