Module: WordNet

Extended by:
Loggability
Includes:
Constants
Defined in:
lib/wordnet.rb,
lib/wordnet/model.rb

Overview

This is a Ruby interface to the WordNet® lexical database. It uses the SqlUNet project’s databases instead of reading from the canonical flatfiles for speed, easy modification, and correlation with other linguistic lexicons.

Defined Under Namespace

Modules: Constants Classes: LexicalLink, Lexicon, LexiconError, LookupError, Model, Morph, SemanticLink, Sense, SumoTerm, Synset, Word

Constant Summary collapse

VERSION =

Release version

'1.2.0'
REVISION =

VCS revision

%q$Revision: $
Noun =

Backward-compatibility constant

:n
Verb =

Backward-compatibility constant

:v
Adjective =

Backward-compatibility constant

:a
Adverb =

Backward-compatibility constant

:r
Other =

Backward-compatibility constant

:s

Constants included from Constants

Constants::DEFAULT_DB_OPTIONS, Constants::DELIM, Constants::DELIM_RE, Constants::DOMAIN_TYPES, Constants::DomainSymbols, Constants::HOLONYM_SYMBOLS, Constants::HOLONYM_TYPES, Constants::HYPERNYM_SYMBOLS, Constants::HYPERNYM_TYPES, Constants::HYPONYM_SYMBOLS, Constants::HYPONYM_TYPES, Constants::LEXFILES, Constants::MEMBER_SYMBOLS, Constants::MEMBER_TYPES, Constants::MERONYM_SYMBOLS, Constants::MERONYM_TYPES, Constants::POINTER_SUBTYPES, Constants::POINTER_SYMBOLS, Constants::POINTER_TYPES, Constants::SUB_DELIM, Constants::SUB_DELIM_RE, Constants::SYNTACTIC_CATEGORIES, Constants::SYNTACTIC_SYMBOLS, Constants::VERB_SENTS

Class Method Summary collapse

Class Method Details

.version_string(include_buildnum = false) ⇒ Object

Get the WordNet version.



36
37
38
39
40
# File 'lib/wordnet.rb', line 36

def self::version_string( include_buildnum=false )
	vstring = "%s %s" % [ self.name, VERSION ]
	vstring << " (build %s)" % [ REVISION[/: ([[:xdigit:]]+)/, 1] || '0' ] if include_buildnum
	return vstring
end