class FrameNet::SemanticType

A semantic fact about an element in FrameNet.

References:

Attributes

id[RW]

The SmeanticType's ID in FrameNet

name[RW]

The SemanticType's name in FrameNet

Public Class Methods

from_node( node ) click to toggle source

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
new( id, name ) click to toggle source

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