A semantic fact about an element in FrameNet.
References: - framenet.icsi.berkeley.edu/fndrupal/glossary#semantic-type
Construct a SemanticType from the given
node
(a LibXML::XML::Node for a semType element)
# File lib/frame_net/semantic_type.rb, line 17
def self::from_node( node )
return new( node['ID'], node['name'] )
end
Create a new SemanticType for the specified
id
and name
.
# File lib/frame_net/semantic_type.rb, line 23
def initialize( id, name )
@id = Integer( id )
@name = name.to_sym
end