class

Cadmium::WordNet::Pointer

Inherits Reference / Object

Pointers represent the relations between the words in one synset and another.

Constructors

new(symbol : String, offset : Int32, pos : String, source : String)

Create a pointer. Pointers represent the relations between the words in one synset and another, and are referenced by a shorthand symbol (e.g. '!' for verb antonym). The list of valid pointer symbols is defined in pointers.cr

Source

Instance methods

is_semantic?
Source
offset

The offset, in bytes, of this pointer in WordNet's internal database.

Source
pos

The part of speech this pointer represents. One of 'n', 'v', 'a' (adjective), or 'r' (adverb).

Source
source

The synset from which this pointer...points.

Source
symbol

The symbol that devices the relationship this pointer represents, e.g. "!" for verb antonym. Valid pointer symbols are defined in pointers.cr

Source
target

The synset to which this pointer...points.

Source