class Cadmium::Wordnet::DB
- Cadmium::Wordnet::DB
- Reference
- Object
Overview
Represents the Wordnet database, and provides some basic interaction.
Defined in:
cadmium/wordnet/db.crClass Method Summary
-
.data_dir : String
To use your own Wordnet installation (rather than the one bundled with Cadmium: Returns the path to the Wordnet installation currently in use.
-
.data_dir=(data_dir : String)
To use your own Wordnet installation (rather than the one bundled with Cadmium: Returns the path to the Wordnet installation currently in use.
-
.open(path, &)
Open a wordnet database.
- .open(path)
Class Method Detail
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.
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.
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.