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
Instance methods
is_semantic?
Sourcepos
The part of speech this pointer represents. One of 'n', 'v', 'a' (adjective), or 'r' (adverb).
symbol
The symbol that devices the relationship this pointer represents, e.g. "!" for verb antonym. Valid pointer symbols are defined in pointers.cr