class Cadmium::WordNet::Pointer

Overview

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

Defined in:

cadmium/wordnet/pointer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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


[View source]

Instance Method Detail

def is_semantic? #

[View source]
def offset : Int32 #

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


[View source]
def pos : String #

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


[View source]
def source : String #

The synset from which this pointer...points.


[View source]
def symbol : String #

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


[View source]
def target : String #

The synset to which this pointer...points.


[View source]