class Cadmium::Wordnet::Pointer
- Cadmium::Wordnet::Pointer
- Reference
- Object
Overview
Pointers represent the relations between the words in one synset and another.
Defined in:
cadmium/wordnet/pointer.crConstructors
-
.new(symbol : String, offset : Int32, pos : String, source : String)
Create a pointer.
Instance Method Summary
- #is_semantic?
-
#offset : Int32
The offset, in bytes, of this pointer in Wordnet's internal database.
-
#pos : String
The part of speech this pointer represents.
-
#source : String
The synset from which this pointer...points.
-
#symbol : String
The symbol that devices the relationship this pointer represents, e.g.
-
#target : String
The synset to which this pointer...points.
Constructor Detail
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 Method Detail
The part of speech this pointer represents. One of 'n', 'v', 'a' (adjective), or 'r' (adverb).
The symbol that devices the relationship this pointer represents, e.g. "!" for verb antonym. Valid pointer symbols are defined in pointers.cr