WordNet lexicon class - abstracts access to
the WordNet lexical databases, and provides
factory methods for looking up and creating new WordNet::Synset objects.
dataDb |
[R] |
The handle to the synset data table
|
env |
[R] |
The BDB::Env object which contains the wordnet lexicon’s databases.
|
indexDb |
[R] |
The handle to the index table
|
morphDb |
[R] |
The handle to the morph table
|
Checkpoint the database. (BerkeleyDB-specific)
Return a list of archival logfiles that can be removed safely.
(BerkeleyDB-specific).
Remove any archival logfiles for the lexicon’s database environment.
(BerkeleyDB-specific).
Returns an integer of the familiarity/polysemy count for word as a
partOfSpeech. Note that polysemy can be identified for a given
word by counting the synsets returned by lookupSynsets.
Look up sysets (Wordnet::Synset objects) matching text as a
partOfSpeech, where partOfSpeech is one of
+WordNet::Noun+, +WordNet::Verb+, +WordNet::Adjective+, or
+WordNet::Adverb+. Without sense, lookupSynsets will return all matches that
are a partOfSpeech. If sense is specified, only the
synset object that matches that particular partOfSpeech and
sense is returned.
Returns the WordNet::Synset objects corresponding
to the keys specified. The keys are made up of the target
synset’s "offset" and syntactic category catenated together
with a ’%’ character.
Returns a form of word as a part of speech partOfSpeech,
as found in the WordNet morph files. The lookupSynsets method perfoms morphological
conversion automatically, so a call to morph is not required.
Returns the result of looking up word in the inverse of the WordNet morph files. _(This is undocumented in
Lingua::Wordnet)_
Returns an array of compound words matching text.
Factory method: Creates and returns a new WordNet::Synset object in this lexicon for the
specified word and partOfSpeech.
Store the specified synset (a WordNet::Synset object) in the lexicon. Returns the
key of the stored synset.
Remove the specified synset (a WordNet::Synset object) in the lexicon. Returns the
offset of the stored synset.