35
answers
0
watching
131
views
25 Jun
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.
- 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.)
- Define a predicate wordTuple_to_offset(?WordTuple,?Offset) that succeeds if WordTuple belongs to the synset with offset Offset.
- Define a predicate wordTuple_to_synset(+WordTuple,?Synset) that succeeds if WordTuple belongs to Synset. Look up a few words using your new predicate.
- 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.
- Define a predicate synonymous(?WordTuple1,?WordTuple2) that succeeds if WordTuple1 and WordTuple2 are distinct and synonymous word-tuples.
- Define a predicate polysemous(?Word) that succeeds if Word is a polysemous word.
- Compute the number of polysemous words in WordNet. (Tip: use a combination of findall/3, list_to_set/2 and length/2.)
- 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).
- Define a predicate hyponym(?Offset1,?Offset2) that succeeds if Offset1 is a direct hyponym of Offset2.
- Define a predicate coordinate(?Offset1,?Offset2) that succeeds if Offset1 and Offset2 have the same hypernym.
- Hypernymy is a transitive relation. Define a predicate trans_hypernym(?Offset1,?Offset2) which computes this relation.
- Define a predicate trans_hypernym_path(?Offset1,?Offset2,?Path) that succeeds if Path is is a list of offsets leading from Offset1 to Offset2.
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.
- 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.)
- Define a predicate wordTuple_to_offset(?WordTuple,?Offset) that succeeds if WordTuple belongs to the synset with offset Offset.
- Define a predicate wordTuple_to_synset(+WordTuple,?Synset) that succeeds if WordTuple belongs to Synset. Look up a few words using your new predicate.
- 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.
- Define a predicate synonymous(?WordTuple1,?WordTuple2) that succeeds if WordTuple1 and WordTuple2 are distinct and synonymous word-tuples.
- Define a predicate polysemous(?Word) that succeeds if Word is a polysemous word.
- Compute the number of polysemous words in WordNet. (Tip: use a combination of findall/3, list_to_set/2 and length/2.)
- 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).
- Define a predicate hyponym(?Offset1,?Offset2) that succeeds if Offset1 is a direct hyponym of Offset2.
- Define a predicate coordinate(?Offset1,?Offset2) that succeeds if Offset1 and Offset2 have the same hypernym.
- Hypernymy is a transitive relation. Define a predicate trans_hypernym(?Offset1,?Offset2) which computes this relation.
- Define a predicate trans_hypernym_path(?Offset1,?Offset2,?Path) that succeeds if Path is is a list of offsets leading from Offset1 to Offset2.
3h
fSH3PIWJsRLv2
26 Jun
Already have an account? Log in
qLXdLuIXTtLv2
26 Jun
Already have an account? Log in
iploKIYe7vLv2
26 Jun
Already have an account? Log in
LW2TlbpFzCLv2
26 Jun
Already have an account? Log in
iFC1dEbzhMLv2
26 Jun
Already have an account? Log in
4qoICFhMnRLv2
26 Jun
Already have an account? Log in
gwCIX4Z0qiLv2
26 Jun
Already have an account? Log in
AE1xkpbNcSLv2
26 Jun
Already have an account? Log in
4f20CcNKTJLv2
26 Jun
Already have an account? Log in
0GL2KIVILhLv2
26 Jun
Already have an account? Log in
ka1BUs863xLv2
26 Jun
Already have an account? Log in
3ko1hQACkhLv2
26 Jun
Already have an account? Log in
4Taq8D4GVWLv2
26 Jun
Already have an account? Log in
TY4EAuZ9RBLv2
26 Jun
Already have an account? Log in
2waPOnyYyoLv2
26 Jun
Already have an account? Log in
ELYt6d1GrkLv2
26 Jun
Already have an account? Log in
qYYuGylC1xLv2
26 Jun
Already have an account? Log in
vsOFaPUsUtLv2
26 Jun
Already have an account? Log in
sLs5yVssJeLv2
26 Jun
Already have an account? Log in
C6dvsPJiFnLv2
26 Jun
Already have an account? Log in
WUeUrcZljGLv2
26 Jun
Already have an account? Log in
4PsETbe09NLv2
26 Jun
Already have an account? Log in
zuN2gyb2AULv2
26 Jun
Already have an account? Log in
M1KJWCZR1ALv2
26 Jun
Already have an account? Log in
XwURqXiFmKLv2
26 Jun
Already have an account? Log in
Ixos2xHUxPLv2
26 Jun
Already have an account? Log in
GiXQqZoCqFLv2
26 Jun
Already have an account? Log in
0r6782NnhgLv2
26 Jun
Already have an account? Log in
5PxFfZRDxbLv2
26 Jun
Already have an account? Log in
FpUj19faMhLv2
26 Jun
Already have an account? Log in
eK8tBDLG70Lv2
26 Jun
Already have an account? Log in
2tkoyGbAUjLv2
26 Jun
Already have an account? Log in
O4zpc8v7gnLv2
26 Jun
Already have an account? Log in