SemCorWSD {wordspace}R Documentation

SemCor Word Sense Disambiguation Task (wordspace)

Description

A collection of sentences containing ambiguous words manually labelled with WordNet senses. The data were obtained from the SemCor corpus version 3.0.

Usage


SemCorWSD

Format

A data frame with 647 rows and the following 8 columns (all of type character):

id

Unique item ID

target

The target word (lemmatized)

pos

Word class of the target word (n, v or a)

sense

Sense of the target word in this sentence (given as a WordNet lemma)

gloss

WordNet definition of this sense

sentence

The sentence containing the ambiguous word

hw

Lemmatized form of the sentence (“headwords”); punctuation marks are excluded and all remaining words are case-folded

lemma

Lemmatized and POS-disambiguated form in CWB/Penn format, e.g. move_N for the headword move used as a noun

Details

Target words and senses had to meet the following criteria in order to be included in the data set:

SemCorWSD contains sentence contexts for the following target words:

Source

TODO (SemCor reference, NLTK extraction)

References

Schütze, Hinrich (1998). Automatic word sense discrimination. Computational Linguistics, 24(1), 97–123.

See Also

context.vectors

Examples


with(SemCorWSD, table(sense, target))

# all word senses with brief definitions ("glosses")
with(SemCorWSD, sort(unique(paste0(target, " ", sense, ": ", gloss))))


[Package wordspace version 0.2-8 Index]