For unlimited access to Homework Help, a Homework+ subscription is required.

Avatar image
gokulgokul98435 asked for the first time

I have to do this assignment until Thursday morning. I have to use Prolog.

Note: "Word-tuple" is a 3-tuple of the form "(word,POS,sense_number)"

Note: "Synset" is the list of word-tuples of a synset.

 

  1. Define a predicate offset_to_synset(+Offset,?Synset) that succeeds if Synset is the list of all the word-tuples of Offset. (Tip: use findall/3.)
  2. Define a predicate wordTuple_to_offset(?WordTuple,?Offset) that succeeds if WordTuple belongs to the synset with offset Offset.
  3. Define a predicate wordTuple_to_synset(+WordTuple,?Synset) that succeeds if WordTuple belongs to Synset. Look up a few words using your new predicate.
  4. Define a predicate wordTuple_to_gloss(+WordTuple,-Gloss) that succeeds is Gloss is the gloss that corresponds to WordTuple. Look up a few words using your new predicate.
  5. Define a predicate synonymous(?WordTuple1,?WordTuple2) that succeeds if WordTuple1 and WordTuple2 are distinct and synonymous word-tuples.
  6. Define a predicate polysemous(?Word) that succeeds if Word is a polysemous word.
  7. Compute the number of polysemous words in WordNet. (Tip: use a combination of findall/3, list_to_set/2 and length/2.)
  8. Define a predicate meronym(?Offset1,?Offset2) that succeeds if Offset2 is a meronym of Offset1 (note that the predicates for the three different kinds of meronyms are spread out over three files).
  9. Define a predicate hyponym(?Offset1,?Offset2) that succeeds if Offset1 is a direct hyponym of Offset2.
  10. Define a predicate coordinate(?Offset1,?Offset2) that succeeds if Offset1 and Offset2 have the same hypernym.
  11. Hypernymy is a transitive relation. Define a predicate trans_hypernym(?Offset1,?Offset2) which computes this relation.
  12. Define a predicate trans_hypernym_path(?Offset1,?Offset2,?Path) that succeeds if Path is is a list of offsets leading from Offset1 to Offset2.
Avatar image
mraineabs2 asked for the first time
Avatar image
mridh628 asked for the first time
Avatar image
hffone31 asked for the first time
Avatar image
inififq2 asked for the first time
Avatar image
ececew56 asked for the first time
Avatar image
dahvj2 asked for the first time

Start filling in the gaps now
Log in