(1)Synset类的定义:描述了WordNet 的pos.data文件中的同义词组。每
一个Synset表达了一个概念,并且其包含了一组同义词。Synset被Pointers
链接成相关概念的网络,这就是WordNet的Net;getTarget可以从这个链中
抽取出目标;getPointer可以抽取出pointers自己本身。 A Synset, or synonym set, represents a line of a WordNet
pos.data file. A Synset represents a concept, and contains a
set of Words, each of which has a sense that names that concept
(and each of which is therefore synonymous with the other words
in the Synset). Synset's are linked by Pointers into a network
of related concepts; this is the Net in WordNet. getTarget
retrieves the targets of these links, and getPointer retrieves
the pointers themselves. (2)、A Pointer encodes a lexical or semantic relationship
between WordNet entities. A lexical relationship holds between
Words; a semantic relationship holds between Synsets.
Relationships are directional: the two roles of a relationship
are the source and target. Relationships are typed: the type of
a relationship is a PointerType, and can be retrieved via
getType. (3)、An IndexWord represents a line of the pos.index file. An
IndexWord is created retrieved or retrieved via
DictionaryDatabase.lookupIndexWord(edu.gwu.wordnet.POS,
java.lang.String), and has a lemma, a pos, and a set of senses,
which are of type Synset. (4)、POS:Instances of this class enumerate the possible major
syntactic categories, or part's of speech. Each POS has a
human-readable label that can be used to print it, and a key by
which it can be looked up. (5)、A Word represents the lexical information related to a
specific sense of an IndexWord. Word's are linked by Pointers
into a network of lexically related words. getTarget retrieves
the targets of these links, and getPointer retrieves the
pointers themselves. (6)、A PointerTarget is the source or target of a Pointer. The
target of a semantic PointerTarget is a Synset; the target of a
lexical PointerTarget is a Word. (7)、PointerType:Instances of this class enumerate the
possible WordNet pointer types, and are used to label
PointerTypes. Each PointerType carries additional information:
a human-readable label, an optional reflexive type that labels
links pointing the opposite direction, an encoding of
parts-of-speech that it applies to, and a short string that
represents it in the dictionary files.