![]() | |
(1)Synset類(lèi)的定義:描述了WordNet 的pos.data文件中的同義詞組。每 一個(gè)Synset表達了一個(gè)概念,并且其包含了一組同義詞。Synset被Pointers 鏈接成相關(guān)概念的網(wǎng)絡(luò ),這就是WordNet的Net;getTarget可以從這個(gè)鏈中 抽取出目標;getPointer可以抽取出pointers自己本身。 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. 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. 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. 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. 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. target of a semantic PointerTarget is a Synset; the target of a lexical PointerTarget is a Word. 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. |
聯(lián)系客服