1 / 36

LING 581: Advanced Computational Linguistics

LING 581: Advanced Computational Linguistics. Lecture Notes April 6th. WordNet::QueryData. sudp cpan cpan[1]> install WordNet::QueryData perldoc WordNet::QueryData. WordNet::QueryData. t .perl : use WordNet::QueryData ; my $ wn = WordNet::QueryData ->new( noload => 1 );

Download Presentation

LING 581: Advanced Computational Linguistics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. WordNet::QueryData • sudpcpan • cpan[1]> install WordNet::QueryData • perldocWordNet::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"; • perlt.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/wninput.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. Semantic Bleaching

  8. Semantic Bleaching

  9. Semantic Bleaching

  10. Semantic Bleaching

  11. Semantic Bleaching

  12. Semantic Bleaching

  13. Semantic Bleaching

  14. Semantic Bleaching

  15. Semantic Bleaching

  16. Semantic Bleaching

  17. Semantic Bleaching

  18. Semantic Bleaching

  19. Semantic Bleaching

  20. Semantic Bleaching

  21. Semantic Bleaching

  22. Semantic Bleaching

  23. Semantic Bleaching

  24. Logical Metonomy

  25. Logical Metonomy

  26. Logical Metonomy

  27. Logical Metonomy

  28. Logical Metonomy

  29. Logical Metonomy

  30. Logical Metonomy

  31. Logical Metonomy

  32. Logical Metonomy

  33. Logical Metonomy

  34. Logical Metonomy

  35. Logical Metonomy

  36. Logical Metonomy

More Related