class Cadmium::WordNet::DB

Overview

Represents the WordNet database, and provides some basic interaction.

Defined in:

cadmium/wordnet/db.cr

Class Method Summary

Class Method Detail

def self.open(path, &block) #

Open a wordnet database. You shouldn't have to call this directly; it's handled by the autocaching implemented in lemma.cr.

.path should be a string containing the absolute path to the root of a WordNet installation.


[View source]
def self.open(path) #

[View source]
def self.path : String #

To use your own WordNet installation (rather than the one bundled with Cadmium: Returns the path to the WordNet installation currently in use. Defaults to the bundled version of WordNet.


[View source]
def self.path=(path : String) #

To use your own WordNet installation (rather than the one bundled with Cadmium: Returns the path to the WordNet installation currently in use. Defaults to the bundled version of WordNet.


[View source]