4PsETbe09N

4PsETbe09N

Lv2

0 Followers
0 Following
0 Helped

ANSWERS

Published15

Subjects

English5Probability1Computer Science4Chemistry5
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...

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.
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...
The sun's golden rays gently kissed the tranquil ocean and casting a mesmerizi...

Weekly leaderboard

Start filling in the gaps now
Log in