Understanding Collocations in NLP

Slide Note
Embed
Share

Collocations, a key concept in Natural Language Processing (NLP), involve understanding the meaning of words based on the company they keep. This content delves into the properties, types, and examples of collocations, emphasizing their importance for NLP applications. It discusses how collocations can help in disambiguation, translation generation, and acquiring language for non-native speakers. Additionally, it covers base-collocator pairs and the different types of multiword sequences commonly encountered in language usage.


Uploaded on Sep 28, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. NLP

  2. Introduction to NLP Collocations

  3. Collocations (phrases) Dictionary definitions Meaning of words in isolation Know a word by the company that it keeps Firth 1935 Examples dead end strong tea Benazir Bhutto Fabry disease

  4. Collocations Properties Common use No general syntactic or semantic rules Important for non-native speakers Collocation acquisition Important for NLP

  5. Types of Multiword Sequences Idioms Free-word combinations Collocations

  6. Examples Idioms Collocations Free-word combinations To kick the bucket Dead end To catch up To trade actively Table of contents Orthogonal projection To take the bus The end of the road To buy a house

  7. Properties Arbitrariness: substitutions are usually not allowed: Make an effort vs. *make an exertion Running commentary vs. *running discussion Commit treason vs. *commit treachery Language- and dialect-specific R gler la circulation = direct traffic Russian, German, Serbo-Croatian: direct translation of regulate is used American English: set the table, make a decision British English: lay the table, take a decision semer le d sarroi - to sow disarray - to wreak havoc Common in technical language Recurrent in context

  8. Uses Disambiguation (e.g, bank / loan , river ) Translation Generation

  9. Types of Collocations Grammatical come to, put on; afraid that, fond of, by accident, witness to Semantic only certain synonyms Flexible find/discover/notice by chance

  10. Base-Collocator Pairs Base bears most of the meaning of the collocation. Writers think of the base first. Foreign language speakers search by base. For decoding purposes, it is more appropriate to store the collocation under the collocator. Example Set the table Warm greetings Struggle desperately Sound asleep Put on Collocator verb adjective adverb adverb preposition Base Noun Noun Verb Adjective Verb

  11. Extracting collocations Most-common bigrams? Drop function words? Look at POS sequences?

  12. Extracting collocations Mutual information P(x,y) I (x;y) = log2 P(x)P(y) Larger means stronger What if I(x;y) = 0? no relation What if I(x;y) < 0? complementary distribution (rare)

  13. Yules coefficient A - frequency of pairs involving both W and X B - frequency of pairs involving W only C - frequency of pairs involving X only D - frequency of pairs involving neither AD - BC AD + BC Y = -1 Y 1

  14. Example W w X x A=800 B=160 C=180 D=80 A B C D 800 160 180 80 AD-BC AD+BC 35200 92800 0.38

  15. Example from the Hansard corpus (Brown, Lai, and Mercer) prime French word sein bureau trudeau premier r sidence intention no session Mutual information 5.63 5.63 5.34 5.25 5.12 4.57 4.53 4.34

  16. Flexible and rigid collocations Example (from Smadja): free and trade Total p-5 p-4 p-3 p-2 p-1 p+1 p+2 p+3 p+4 p+5 8031 7 6 13 5 7918 0 12 20 26 24

  17. Xtract (Smadja) The Dow Jones Industrial Average The NYSE s composite index of all its listed common stocks fell *NUMBER* to *NUMBER*

  18. Translating Collocations Examples: Brush up a lesson, repasser une le on Bring about/ Hansards examples late spring fin du printemps Atlantic Canada Opportunities Agency Agence de promotion conomique du Canada atlantique

  19. Links Sample phrasal collocations http://en.wiktionary.org/wiki/Appendix:Collocations_of_d o,_have,_make,_and_take List of English language idioms http://en.wikipedia.org/wiki/List_of_English- language_idioms Idiomsite http://www.idiomsite.com

  20. NLP

Related


More Related Content