SemanticType

class
Superclass
Object

A semantic fact about an element in FrameNet.

References: - framenet.icsi.berkeley.edu/fndrupal/glossary#semantic-type

Attributes

id[RW]

The SmeanticType's ID in FrameNet

name[RW]

The SemanticType's name in FrameNet

Public Class Methods

anchor
from_node( node )

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
anchor
new( id, name )

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