querySense("cat#n#7", "syns")), "\n"; perl t.perl Synset: big_cat#n#1, cat#n#7 index caching off"> querySense("cat#n#7", "syns")), "\n"; perl t.perl Synset: big_cat#n#1, cat#n#7 index caching off">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

LING 581: Advanced Computational Linguistics Lecture Notes April 6th.

Similar presentations


Presentation on theme: "LING 581: Advanced Computational Linguistics Lecture Notes April 6th."— Presentation transcript:

1 LING 581: Advanced Computational Linguistics Lecture Notes April 6th

2 WordNet::QueryData sudp cpan cpan[1]> install WordNet::QueryData perldoc WordNet::QueryData

3 WordNet::QueryData t.perl: use WordNet::QueryData; my $wn = WordNet::QueryData->new( noload => 1 ); print "Synset: ", join(", ", $wn->querySense("cat#n#7", "syns")), "\n"; perl t.perl Synset: big_cat#n#1, cat#n#7 index caching off

4 WordNet::QueryData Documentation – Query functions ’querySense’ and ’queryWord’. Both functions take as their first argument a query string that takes one of three types: (1) word (e.g. "dog") (2) word#pos (e.g. "house#n") (3) word#pos#sense (e.g. "ghostly#a#1”) – queryWord accesses lexical (word to word) relations. also − also see ants − antonyms deri − derived forms (nouns and verbs only) part − participle of verb (adjectives only) pert − pertainym (pertains to noun) (adjectives only) vgrp − verb group (verbs only) – WordNet Relations http://wordnet.princeton.edu/wordnet/man/wninp ut.5WN.html – querySense accesses semantic (sense to sense) relations; also − also see glos − word definition syns − synset words hype − hypernyms inst − instance of hypes − hypernyms and "instance of” hypo − hyponyms hasi − has instance hypos − hyponums and "has instance" mmem − member meronyms msub − substance meronyms mprt − part meronyms mero − all meronyms hmem − member holonyms hsub − substance holonyms hprt − part holonyms holo − all holonyms attr − attributes (?) sim − similar to (adjectives only) enta − entailment (verbs only) caus − cause (verbs only) domn − domain − all dmnc − domain − category dmnu − domain − usage dmnr − domain − region domt − member of domain − all (nouns only) dmtc − member of domain − category (nouns only) dmtu − member of domain − usage (nouns only) dmtr − member of domain − region (nouns only)

5 WordNet::Similarity cpan[2]> install WordNet::Similarity

6 Semantic Bleaching

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24 Logical Metonomy

25

26

27

28

29

30

31

32

33

34

35

36


Download ppt "LING 581: Advanced Computational Linguistics Lecture Notes April 6th."

Similar presentations


Ads by Google