Majid Al-RaimiWhy NLP is hard and how progress is madeلماذا NLP صعبة وكيف يتحقق التقدم

ICS 582Lecture 01المحاضرة 01Part 04الجزء 04

Why NLP is hard and how progress is madeلماذا NLP صعبة وكيف يتحقق التقدم

Ambiguity at every level shown through 'I made her duck', the telescope sentence and real newspaper crash blossoms, six further sources of difficulty, and the knowledge sources and disciplines that make progress possible.الغموض في كل مستوى من خلال جملة I made her duck، وجملة التلسكوب، وعناوين الصحف الحقيقية الملتبسة (crash blossoms)، وستة مصادر أخرى للصعوبة، ومصادر المعرفة والتخصصات التي تجعل التقدم ممكنا.

Conceptsالمفاهيم
4
Slidesالشرائح
20-25
Readingمدة القراءة
24 min24 دقيقة
Understoodما فهمته
0/4 conceptsمفاهيم

Why this part mattersلماذا يهمّ هذا الجزء

Most tasks in this course, from spelling correction to machine translation, can be viewed as resolving one of the ambiguities in this part, and the models you will meet are the machinery for doing it. If you can name the ambiguity, you can name the model that attacks it.

Part 3 laid out the levels of linguistic knowledge. This part shows why each level is needed by breaking one four-word sentence into five meanings, then drawing two grammatical parses of one prepositional phrase, then reading six real headlines that went wrong. It closes with six further sources of difficulty and the three kinds of knowledge that make progress possible. Exam questions ask for the five readings, the two attachments and the six difficulties by name, and the Arabic counterparts (dialects, clitics, no capital letters) are the difficulties your own research data will carry.

يمكن النظر إلى معظم المهام في هذا المقرر، من تصحيح الأخطاء الإملائية إلى الترجمة الآلية، على أنها حلٌّ لأحد أنواع الغموض الواردة في هذا الجزء، والنماذج التي ستقابلها هي الأدوات التي تنفّذ هذا الحل. إذا استطعت أن تسمّي نوع الغموض، استطعت أن تسمّي النموذج الذي يعالجه.

عرض الجزء 3 مستويات المعرفة اللغوية. أما هذا الجزء فيبيّن لماذا نحتاج إلى كل مستوى منها: يفكّك جملة واحدة من أربع كلمات إلى خمسة معانٍ، ثم يرسم تحليلين نحويين صحيحين لشبه جملة جارّة واحدة (prepositional phrase)، ثم يقرأ ستة عناوين صحفية حقيقية ساء فهمها. ويختم بستة مصادر إضافية للصعوبة وبثلاثة أنواع من المعرفة تجعل التقدّم ممكنًا. أسئلة الامتحان تطلب القراءات الخمس، ونوعي الربط (attachment)، والصعوبات الست بأسمائها، أما نظائرها العربية (اللهجات، واللواحق المتصلة clitics، وغياب الأحرف الكبيرة) فهي الصعوبات التي ستحملها بيانات بحثك أنت.

By the end you canفي نهاية هذا الجزء ستستطيع

  1. Produce five readings of 'I made her duck' and name the linguistic level of the ambiguity behind each.استخرج خمس قراءات لجملة 'I made her duck' وسمِّ المستوى اللغوي للغموض الذي يقف وراء كل قراءة.
  2. Draw the NP and VP attachments of a prepositional phrase and explain why both parses are grammatical.ارسم ربط شبه الجملة الجارّة (prepositional phrase) بالمركب الاسمي (NP) وبالمركب الفعلي (VP)، واشرح لماذا يكون التحليلان كلاهما صحيحين نحويًا.
  3. Define a crash blossom, tell where the name comes from, and disambiguate any of the six headlines.عرّف مصطلح crash blossom، واذكر من أين جاء الاسم، وأزل الغموض عن أي عنوان من العناوين الستة.
  4. List six sources of difficulty beyond ambiguity with the slide example and the NLP subproblem each defeats.عدّد ستة مصادر للصعوبة غير الغموض، مع مثال الشريحة لكل منها والمسألة الفرعية في معالجة اللغات الطبيعية (NLP) التي يُفشلها.
  5. State the three tools on slide 24 (two kinds of knowledge and a way to combine them) and the three source disciplines, and map them onto the four approaches of slide 15.اذكر الأدوات الثلاث في الشريحة 24 (نوعان من المعرفة وطريقة للجمع بينهما) والتخصصات الثلاثة التي تُستمد منها، واربطها بالمناهج الأربعة في الشريحة 15.

Take four ordinary words, I made her duck, and look for every meaning they can carry. The lecture asks for at least five and leaves the answers to you. Before reading on, try it honestly: how many can you find? Most people stop at two and are surprised that the sentence keeps going.

خذ أربع كلمات عادية، I made her duck، وابحث عن كل معنى يمكن أن تحمله. تطلب المحاضرة خمسة معانٍ على الأقل وتترك الإجابة لك. قبل أن تكمل القراءة، جرّب بصدق: كم معنى تستطيع أن تجد؟ يتوقف معظم الناس عند معنيين ويُفاجَؤون بأن الجملة تستمر في إعطاء المزيد.

Recall

Find five meanings of 'I made her duck' before you reveal the list.جد خمسة معانٍ للجملة 'I made her duck' قبل أن تكشف القائمة.

Jurafsky and Martin give these five in chapter 1 of the 2000 and 2009 editions of Speech and Language Processing: I cooked waterfowl for her; I cooked waterfowl belonging to her; I created the (plaster) duck she owns; I caused her to quickly lower her head or body; I waved my magic wand and turned her into a duck. They add that there are more.
يعطي Jurafsky و Martin هذه المعاني الخمسة في الفصل الأول من طبعتي 2000 و2009 من كتاب Speech and Language Processing: طبختُ لها بطة (طائرًا مائيًا)؛ طبختُ البطة التي تملكها هي؛ صنعتُ البطة (الجبسية) التي تملكها؛ جعلتُها تخفض رأسها أو جسمها بسرعة؛ لوّحتُ بعصاي السحرية فحوّلتُها إلى بطة. ويضيفان أن هناك معاني أخرى.

The five meanings are not the lesson. The lesson is where each one comes from. Jurafsky and Martin use this sentence because every reading is produced by one decision at one linguistic level, and those levels are exactly the ones you met in part 3. That is what makes ambiguity the central problem of the field rather than a party trick.

المعاني الخمسة ليست هي الدرس. الدرس هو من أين يأتي كل معنى. يستخدم Jurafsky و Martin هذه الجملة لأن كل قراءة تنتج عن قرار واحد في مستوى لغوي واحد، وهذه المستويات هي بالضبط التي عرفتها في الجزء 3. وهذا ما يجعل الغموض (ambiguity) المشكلة المركزية في هذا المجال لا مجرد حيلة للتسلية.

Reading cyclerمبدّل القراءاتI made her duck: five readings, one stringI made her duck: خمس قراءات لسلسلة واحدة

I cooked waterfowl for herI cooked waterfowl for herطبختُ لها بطةً (طائرًا مائيًا)

Bracketingالتقويس
[made [her]IO [duck]NP]
Levelالمستوى
Part of speech and word senseقسم الكلام ومعنى الكلمة
Resolved byتُحلّ بواسطة
POS tagging, word sense disambiguationوسم أقسام الكلام (POS tagging)، وتحديد معنى الكلمة (word sense disambiguation)
1 / 5

Work through what flips. The word duck can be a noun (the bird) or a verb (to lower your head), and her can be a dative pronoun (for her) or a possessive (her duck). Both are lexical ambiguities of part of speech. The word make keeps its part of speech but not its meaning: it can mean create or cook, which is a lexical ambiguity of sense, and choosing the right one is Word sense disambiguation. The cause and transform readings are not two further senses of make. They come from the frame the verb takes: the sentence as a whole can be built in three shapes, make with a single object (her duck as one noun phrase), make with two objects (her and duck, one turned into the other), or make with an object and a bare verb (her then duck as an action). That is syntactic ambiguity, a question of syntax rather than of any single word.

تتبّع ما الذي يتبدّل. كلمة duck قد تكون اسمًا (الطائر) أو فعلًا (أن تخفض رأسك)، وكلمة her قد تكون ضميرًا في حالة المفعول غير المباشر (dative، أي «لها») أو ضمير ملكية (بطتها). كلاهما من الغموض المعجمي (lexical ambiguity) في نوع الكلمة (part of speech). أما كلمة make فتحتفظ بنوعها لكنها لا تحتفظ بمعناها: قد تعني «صنع» أو «طبخ»، وهذا غموض معجمي في المعنى، واختيار المعنى الصحيح هو word sense disambiguation (إزالة غموض معنى الكلمة). وقراءتا «جعلها تفعل» و«حوّلها» ليستا معنيين إضافيين للفعل make، بل تأتيان من الإطار الذي يأخذه الفعل: يمكن أن تُبنى الجملة كلها بثلاثة أشكال، make مع مفعول واحد (her duck مركبًا اسميًا واحدًا)، أو make مع مفعولين (her وduck، أحدهما يتحوّل إلى الآخر)، أو make مع مفعول وفعل مجرد (her ثم duck بوصفه فعلًا تقوم به). هذا هو الغموض التركيبي (syntactic ambiguity)، وهو مسألة نحو وتركيب (syntax) لا مسألة كلمة بعينها.

ReadingالقراءةGlossالمعنىWhat flipsما الذي يتبدّلLevel of ambiguityمستوى الغموض
11I cooked waterfowl for herطبختُ لها بطة (طائرًا مائيًا)made = cook, her = dative, duck = nounmade = طبخ، her = مفعول غير مباشر (dative)، duck = اسمPart of speech and word senseنوع الكلمة ومعنى الكلمة
22I cooked waterfowl belonging to herطبختُ البطة التي تملكها هيher = possessive, so her duck is one NPher = ضمير ملكية، فتكون her duck مركبًا اسميًا واحدًا (NP)Syntactic (and POS of her)تركيبي (ونوع الكلمة في her)
33I created the plaster duck she ownsصنعتُ البطة الجبسية التي تملكهاmade = createmade = صنعWord senseمعنى الكلمة
44I caused her to quickly lower her headجعلتُها تخفض رأسها بسرعةduck = verb, made takes an object plus a bare verbduck = فعل، وmade يأخذ مفعولًا وفعلًا مجردًاPart of speech and syntacticنوع الكلمة وتركيبي
55I turned her into a duckحوّلتُها إلى بطةmade takes two objectsmade يأخذ مفعولينSyntactic (ditransitive)تركيبي (فعل متعدٍّ إلى مفعولين، ditransitive)
Five readings of 'I made her duck' (Jurafsky and Martin, chapter 1)خمس قراءات لجملة 'I made her duck' (Jurafsky و Martin، الفصل الأول)

One level is still missing, and it only appears when the sentence is spoken. In speech the first word could have been eye and the second could have been maid. Jurafsky and Martin call this an even deeper kind of ambiguity, because it sits below the words themselves, at the level of phonetics. A speech recogniser must settle it before any of the other decisions can even begin. Toggle the cycler to "heard, not read" to see it.

ما زال هناك مستوى ناقص، ولا يظهر إلا عندما تُنطق الجملة. في الكلام المنطوق قد تكون الكلمة الأولى eye والثانية maid. يسمّي Jurafsky و Martin هذا نوعًا أعمق من الغموض، لأنه يقع تحت مستوى الكلمات نفسها، في مستوى الصوتيات (phonetics). يجب على نظام التعرّف على الكلام أن يحسمه قبل أن تبدأ أيٌّ من القرارات الأخرى. بدّل أداة التنقل إلى "heard, not read" (مسموع لا مقروء) لترى ذلك.

LevelالمستوىThe decisionالقرارTask that resolves itالمهمة التي تحسمه
Phonetic (speech only)صوتي (في الكلام المنطوق فقط)Is the first word I or eye, the second made or maidهل الكلمة الأولى I أم eye، والثانية made أم maidSpeech recognitionالتعرّف على الكلام (speech recognition)
Part of speechنوع الكلمةIs duck a noun or a verb; is her a dative pronoun or a possessiveهل duck اسم أم فعل؛ وهل her ضمير مفعول غير مباشر أم ضمير ملكيةPOS taggingوسم أنواع الكلمات (POS tagging)
Word senseمعنى الكلمةDoes make mean cook or createهل تعني make طبخ أم صنعWord sense disambiguationإزالة غموض معنى الكلمة (word sense disambiguation)
Syntactic structureالبنية التركيبيةDoes make take one object, two objects, or an object plus a verbهل يأخذ make مفعولًا واحدًا، أم مفعولين، أم مفعولًا مع فعلParsingالتحليل النحوي (parsing)
Each ambiguity level has an NLP task that resolves itلكل مستوى من مستويات الغموض مهمة في معالجة اللغات الطبيعية تحسمه

This table is the sentence Jurafsky and Martin build their whole book on: most or all tasks in speech and language processing can be viewed as resolving ambiguity at one of these levels. Part-of-speech tagging decides whether duck is a noun or a verb, word sense disambiguation decides what make means, and probabilistic parsing decides whether her and duck group together. Every one of those tasks has its own chapter later in the course, and each one is answering a question this four-word sentence raises.

هذا الجدول هو الفكرة التي بنى عليها Jurafsky و Martin كتابهما كله: يمكن النظر إلى معظم مهام معالجة الكلام واللغة أو كلها على أنها حلٌّ للغموض في أحد هذه المستويات. وسم أنواع الكلمات (part-of-speech tagging) يقرر هل duck اسم أم فعل، وإزالة غموض المعنى تقرر ماذا تعني make، والتحليل النحوي (parsing) الاحتمالي يقرر هل تتجمّع her وduck معًا. لكل مهمة من هذه المهام فصلها الخاص لاحقًا في المقرر، وكل واحدة منها تجيب عن سؤال تطرحه هذه الجملة ذات الكلمات الأربع.

Recall

Which words in 'I made her duck' are ambiguous in part of speech, which word is ambiguous in sense, and what is ambiguous about the sentence as a whole?أي الكلمات في 'I made her duck' غامضة في نوع الكلمة، وأي كلمة غامضة في المعنى، وما الغامض في الجملة ككل؟

duck (noun or verb) and her (dative or possessive) are part-of-speech ambiguities. make is ambiguous in sense (cook, create). The whole sentence is syntactically ambiguous: make can take one object, two objects (turning her into a duck), or an object plus a bare verb (causing her to duck). In speech, I versus eye and made versus maid add phonetic ambiguity.
duck (اسم أو فعل) وher (مفعول غير مباشر أو ملكية) غموضان في نوع الكلمة. make غامضة في المعنى (طبخ، صنع). والجملة كلها غامضة تركيبيًا: قد يأخذ make مفعولًا واحدًا، أو مفعولين (تحويلها إلى بطة)، أو مفعولًا مع فعل مجرد (جعلها تنحني). وفي الكلام المنطوق تضيف I مقابل eye وmade مقابل maid غموضًا صوتيًا.

If the duck sentence felt contrived, here is one nobody would blink at: I saw the man with a telescope. Who has the telescope? Read it once and you will have decided without noticing. Read it again and the other answer is just as available.

إن بدت لك جملة البطة متكلَّفة، فهذه جملة لن يتوقف عندها أحد: I saw the man with a telescope. من الذي يحمل التلسكوب؟ اقرأها مرة وستكون قد قررت دون أن تنتبه. اقرأها مرة أخرى وستجد الإجابة الأخرى متاحة بالقدر نفسه.

The phrase with a telescope is a prepositional phrase, and a prepositional phrase has to attach to something. Attach it inside the noun phrase, [the man [with a telescope]], and the man has the telescope. Attach it to the verb phrase, [saw [the man] [with a telescope]], and the telescope is the instrument of seeing: I used it. This is prepositional phrase attachment, one of the two common kinds of syntactic ambiguity in English text (the other is coordination ambiguity, as in old men and women), and the point is that both parses are fully grammatical. The grammar licenses both; only context, plausibility or statistics can choose. A third reading hides in the first word: saw can also be the present tense of the verb to saw, so I am cutting the man with a telescope, a lexical ambiguity stacked on top of the syntactic one.

العبارة with a telescope شبه جملة جارّة (prepositional phrase)، ولا بد لشبه الجملة الجارّة أن ترتبط بشيء ما. اربطها داخل المركب الاسمي، [the man [with a telescope]]، فيكون الرجل هو حامل التلسكوب. اربطها بالمركب الفعلي، [saw [the man] [with a telescope]]، فيصبح التلسكوب أداة الرؤية: أنا الذي استخدمته. هذا هو ربط شبه الجملة الجارّة (prepositional phrase attachment)، أحد النوعين الشائعين من الغموض التركيبي (syntactic ambiguity) في النصوص الإنجليزية (والآخر هو غموض العطف (coordination ambiguity)، كما في old men and women)، والنقطة الأساسية أن التحليلين كليهما صحيحان نحويًا تمامًا. النحو يجيز الاثنين، ولا يختار بينهما إلا السياق أو المعقولية أو الإحصاء. وتختبئ قراءة ثالثة في الكلمة الأولى: قد تكون saw أيضًا المضارع من الفعل «ينشر» (بالمنشار)، فيصبح المعنى أنني أنشر الرجل الذي معه تلسكوب، وهو غموض معجمي (lexical ambiguity) يتراكب فوق الغموض التركيبي.

One prepositional phrase, two grammatical homes: attached to the verb phrase (I used it) or inside the noun phrase (the man has it)شبه جملة جارّة واحدة وموضعان نحويان صحيحان: مرتبطة بالمركب الفعلي (أنا استخدمته) أو داخل المركب الاسمي (الرجل يحمله)

Jurafsky and Martin treat this under structural ambiguity in their parsing chapter: it occurs when the grammar can assign more than one parse to a sentence, and attachment ambiguity is one of the two common forms, the other being coordination ambiguity. Their own example is Groucho Marx's I shot an elephant in my pajamas, where in my pajamas can attach to the shooting or to the elephant. They call ambiguity the most serious problem faced by syntactic parsers, because a grammar big enough to cover real English assigns a naturally occurring sentence not two parses but many, most of them grammatical yet semantically unreasonable. Parsing is therefore never just recognising structure; it is choosing among structures.

يتناول Jurafsky و Martin هذا تحت عنوان الغموض البنيوي (structural ambiguity) في فصل التحليل النحوي: يحدث حين يستطيع النحو أن يعطي الجملة أكثر من تحليل واحد، وغموض الربط (attachment ambiguity) أحد شكليه الشائعين، والآخر غموض العطف. ومثالهما هو جملة Groucho Marx I shot an elephant in my pajamas، حيث يمكن أن ترتبط in my pajamas بفعل الإطلاق أو بالفيل. ويصفان الغموض بأنه أخطر مشكلة تواجه المحللات النحوية، لأن النحو الكبير بما يكفي لتغطية الإنجليزية الحقيقية يعطي الجملة الطبيعية لا تحليلين بل تحليلات كثيرة، معظمها صحيح نحويًا لكنه غير معقول دلاليًا. لذلك فإن التحليل النحوي (parsing) ليس مجرد التعرّف على البنية أبدًا، بل هو الاختيار بين البنى.

Quick checkاختبار سريع

In 'I saw the man with a telescope', which attachment gives the reading where the man owns the telescope?في جملة 'I saw the man with a telescope'، أي ربط يعطي القراءة التي يكون فيها الرجل مالك التلسكوب؟

Crash blossoms: ambiguity in the wildCrash blossoms: الغموض في الواقع

Ambiguity is not a classroom invention, and the six headlines stamped "100% REAL" in the lecture prove it: every one really ran in a news outlet. Headlines drop articles, auxiliaries and the copula to save space, which strips away exactly the cues a reader uses to settle part of speech and attachment. The result is a headline that admits an unintended reading, and copy editors have a name for it: a Crash blossom.

الغموض ليس اختراعًا صفّيًا، والعناوين الستة المختومة بعبارة "100% REAL" في المحاضرة تثبت ذلك: كل واحد منها نُشر فعلًا في وسيلة إخبارية. تحذف العناوين أدوات التعريف والأفعال المساعدة وفعل الكينونة لتوفير المساحة، وهذا ينزع بالضبط القرائن التي يستخدمها القارئ لحسم نوع الكلمة (part of speech) والربط. والنتيجة عنوان يسمح بقراءة غير مقصودة، ولمحرري النصوص اسم لذلك: crash blossom.

The name comes from the first line on the slide. In August 2009 the site Japan Today ran the headline Violinist Linked to JAL Crash Blossoms about Diana Yukawa, whose father died in the 1985 Japan Airlines crash and whose career was flourishing. Editors on the Testy Copy Editors forum read it as a species called crash blossoms and, in the thread that followed, proposed "crash blossom" as the general term for a headline that leads the reader down the garden path. Ben Zimmer picked the story up on Language Log that month and then in his New York Times On Language column in January 2010, which is what made the word stick.

يأتي الاسم من السطر الأول في الشريحة. في August 2009 نشر موقع Japan Today العنوان Violinist Linked to JAL Crash Blossoms عن عازفة الكمان Diana Yukawa، التي توفي والدها في حادث تحطم طائرة الخطوط اليابانية سنة 1985 وكانت مسيرتها المهنية مزدهرة (المعنى المقصود: عازفة مرتبطة بحادث JAL تزدهر). قرأه المحررون في منتدى Testy Copy Editors على أنه نوع من الزهور اسمه «أزهار التحطم»، واقترحوا في النقاش الذي تلا ذلك "crash blossom" مصطلحًا عامًا لكل عنوان يقود القارئ في طريق مضلِّل (garden path). التقط Ben Zimmer القصة في مدونة Language Log في الشهر نفسه، ثم في عموده On Language في صحيفة New York Times في January 2010، وهذا ما جعل الكلمة ترسخ.

Hover to flip each headline from its intended reading to the garden-path reading. The underlined word is the one whose part of speech, sense or bracketing changes.مرّر المؤشر لتقلب كل عنوان من قراءته المقصودة إلى القراءة المضلِّلة (garden path). الكلمة التي تحتها خط هي التي يتغير نوعها أو معناها أو تجميعها بين الأقواس.
HeadlineالعنوانIntended readingالقراءة المقصودةGarden-path readingالقراءة المضلِّلة (garden path)Ambiguous word and typeالكلمة الغامضة ونوع الغموض
Violinist Linked to JAL Crash BlossomsViolinist Linked to JAL Crash BlossomsA violinist connected to the crash is flourishingعازفة كمان مرتبطة بحادث التحطم تزدهر مسيرتهاA species called crash blossoms is linked to a violinistنوع من الزهور اسمه crash blossoms مرتبط بعازفة كمانblossoms: verb or noun (POS), and crash blossoms as a compound (segmentation)blossoms: فعل أم اسم (نوع الكلمة)، وcrash blossoms بوصفها اسمًا مركبًا (التقطيع)
Teacher Strikes Idle KidsTeacher Strikes Idle KidsTeachers' strikes leave children idleإضرابات المعلمين تترك الأطفال بلا عملA teacher hits lazy childrenمعلم يضرب أطفالًا كسالىstrikes: noun or verb (POS), which flips idle between verb and adjectivestrikes: اسم أم فعل (نوع الكلمة)، وهذا يقلب idle بين فعل وصفة
Red Tape Holds Up New BridgesRed Tape Holds Up New BridgesBureaucracy delays the bridgesالبيروقراطية تؤخّر الجسورTape robs, or physically supports, the bridgesشريط لاصق يسرق الجسور، أو يحملها فعليًاholds up: delays, robs or supports (word sense of a phrasal verb)holds up: يؤخّر أو يسرق أو يحمل (معنى فعل مركب، phrasal verb)
Hospitals Are Sued by 7 Foot DoctorsHospitals Are Sued by 7 Foot DoctorsSeven podiatrists sueسبعة أطباء أقدام يرفعون دعوىDoctors seven feet tall sueأطباء طول كل منهم سبعة أقدام يرفعون دعوى[7 [foot doctors]] versus [[7 foot] doctors] (syntactic, compound attachment)[7 [foot doctors]] مقابل [[7 foot] doctors] (تركيبي، ربط الاسم المركب)
Juvenile Court to Try Shooting DefendantJuvenile Court to Try Shooting DefendantThe court will prosecute a defendant in a shooting caseالمحكمة ستحاكم متهمًا في قضية إطلاق نارThe court will attempt to shoot the defendantالمحكمة ستحاول إطلاق النار على المتهمtry: prosecute or attempt (word sense); shooting: noun modifier or verb (POS)try: يحاكم أو يحاول (معنى الكلمة)؛ shooting: اسم واصف أم فعل (نوع الكلمة)
Local High School Dropouts Cut in HalfLocal High School Dropouts Cut in HalfThe dropout rate was halvedانخفض معدل التسرب من المدارس إلى النصفStudents were bisectedشُطر الطلاب نصفينcut in half: figurative or literal (word sense), plus dropouts as a rate (world knowledge)cut in half: مجازي أم حرفي (معنى الكلمة)، إضافة إلى فهم dropouts على أنها معدل (معرفة العالم)
The six headlines on slide 22, disambiguatedالعناوين الستة في الشريحة 22 بعد إزالة الغموض عنها

Look at the last column and you will see the same three kinds of ambiguity as the duck sentence, just without the helpful function words. Strikes, blossoms and shooting are part-of-speech flips; holds up, try and cut in half are sense flips; 7 foot doctors is a bracketing flip. Notice also that one choice forces others: once strikes is a verb, idle must be an adjective, and once it is a noun, idle must be a verb. Ambiguities are not independent, which is why parsers resolve them jointly rather than word by word.

انظر إلى العمود الأخير وسترى الأنواع الثلاثة نفسها من الغموض التي رأيتها في جملة البطة، لكن بلا كلمات الوظيفة المساعِدة. Strikes وblossoms وshooting تقلّبات في نوع الكلمة؛ holds up وtry وcut in half تقلّبات في المعنى؛ و7 foot doctors تقلّب في التجميع بين الأقواس. ولاحظ أيضًا أن اختيارًا واحدًا يفرض غيره: إذا كانت strikes فعلًا، وجب أن تكون idle صفة، وإذا كانت اسمًا، وجب أن تكون idle فعلًا. أنواع الغموض ليست مستقلة بعضها عن بعض، ولهذا تحسمها المحللات النحوية معًا لا كلمةً كلمة.

Quick checkاختبار سريع

Which ambiguity is at the root of the headline 'Teacher Strikes Idle Kids'?أي نوع من الغموض يقف في أصل العنوان 'Teacher Strikes Idle Kids'؟

Recall

What is a crash blossom, and where does the name come from?ما الـ crash blossom، ومن أين جاء الاسم؟

A real headline whose compressed syntax admits an unintended garden-path reading. The name comes from Violinist Linked to JAL Crash Blossoms (Japan Today, August 2009), which was read as a species of flower; the term was proposed on the Testy Copy Editors forum and popularised by Ben Zimmer on Language Log and in the New York Times in January 2010.
عنوان صحفي حقيقي يسمح تركيبه المضغوط بقراءة مضلِّلة غير مقصودة من نوع garden path. جاء الاسم من Violinist Linked to JAL Crash Blossoms (Japan Today، August 2009)، الذي قُرئ على أنه نوع من الزهور؛ واقتُرح المصطلح في منتدى Testy Copy Editors ونشره Ben Zimmer في Language Log وفي New York Times في January 2010.

Recall

Draw the two attachments of 'I saw the man with a telescope' as bracketings and say what each means.ارسم الربطين في 'I saw the man with a telescope' بالأقواس، وقل ماذا يعني كل منهما.

[saw [the man [with a telescope]]]: the phrase sits inside the noun phrase, so the man has the telescope. [saw [the man] [with a telescope]]: the phrase attaches to the verb phrase, so I used the telescope to see him. A third reading takes saw as the cutting verb.
[saw [the man [with a telescope]]]: العبارة داخل المركب الاسمي، فالرجل هو حامل التلسكوب. [saw [the man] [with a telescope]]: العبارة مرتبطة بالمركب الفعلي، فأنا استخدمت التلسكوب لأراه. وتأخذ قراءة ثالثة saw بمعنى فعل النشر (القطع بالمنشار).

Suppose ambiguity were solved. Would language understanding be easy? No, and there are six more reasons, each a different way real text refuses to behave like the tidy sentences of a grammar book. Take them one at a time, and for each one ask which NLP subproblem it defeats, because that subproblem is a research area with its own benchmarks.

لنفترض أن مشكلة الغموض قد حُلّت. هل يصبح فهم اللغة سهلًا؟ لا، فهناك ستة أسباب أخرى، كل منها طريقة مختلفة يرفض بها النص الحقيقي أن يتصرف مثل الجمل المرتّبة في كتب النحو. تناولها واحدًا تلو الآخر، واسأل عن كل منها أي مسألة فرعية في معالجة اللغات الطبيعية يُفشلها، لأن تلك المسألة الفرعية مجال بحثي له معاييره (benchmarks) الخاصة.

Non-standard textالنص غير القياسي

Guys plz d/l the lettr Ive written 2 Jeff Gaspin is perfectly readable to a human and almost useless to a model trained on edited prose. Five of its tokens are misspelt, abbreviated or numerals standing in for words. This is non-standard language, and it defeats normalisation: the step that is supposed to map surface forms to the vocabulary the model knows. For a KFUPM student the sharper version is diglossia. Farghaly and Shaalan describe Arabic as a language where Modern Standard Arabic is the formal written variety while everyday speech is Gulf, Egyptian or Levantine dialect. Text messages and social media carry that dialect into writing, and Darwish describes how it often arrives as Arabizi (Latin letters and digits standing in for Arabic sounds, as in 3ala for على), so a system trained on newswire MSA meets a different language on the phone.

الجملة Guys plz d/l the lettr Ive written 2 Jeff Gaspin مقروءة تمامًا للإنسان، لكنها شبه عديمة الفائدة لنموذج دُرّب على نصوص محرَّرة. خمس من وحداتها (tokens) مكتوبة بأخطاء إملائية أو مختصرة أو أرقام تقوم مقام كلمات. هذه هي اللغة غير القياسية (non-standard language)، وهي تُفشل التطبيع (normalisation): الخطوة التي يُفترض أن تحوّل الأشكال السطحية إلى المفردات التي يعرفها النموذج. وبالنسبة لطالب في KFUPM فالنسخة الأشد هي الازدواجية اللغوية (diglossia). يصف Farghaly و Shaalan العربية بأنها لغة تكون فيها الفصحى الحديثة (Modern Standard Arabic) هي الصيغة المكتوبة الرسمية، بينما الكلام اليومي باللهجة الخليجية أو المصرية أو الشامية. تحمل الرسائل النصية ووسائل التواصل الاجتماعي هذه اللهجة إلى الكتابة، ويصف Darwish كيف تصل غالبًا في صورة العربيزي (Arabizi) (حروف لاتينية وأرقام تقوم مقام الأصوات العربية، كما في 3ala بدل على)، فيلتقي النظام المدرَّب على فصحى الأخبار (newswire MSA) بلغة مختلفة على الهاتف.

Segmentationالتقطيع

The slide shows the New York-New Haven Railroad tokenized two ways. The naive split, on spaces alone, gives the | New | York-New | Haven | Railroad, gluing York to the wrong New. The right split, the | New York | - | New Haven | Railroad, needs to know that New York and New Haven are each one name. This is a Segmentation problem and it defeats Tokenization and named entity recognition together. Jurafsky and Martin note in their tokenization chapter that keeping a multiword expression such as New York as one token requires a multiword expression dictionary, so tokenization is tied to recognising names and to morphology. Arabic makes segmentation unavoidable rather than occasional: the preposition b (by, with) and the conjunction w (and) are clitics written attached to the following word, so وبالقلم is one orthographic word that a tokenizer must cut into w + b + al + qalam, four units, before anything else can run.

تعرض الشريحة the New York-New Haven Railroad مقطّعة بطريقتين. التقطيع الساذج، على المسافات وحدها، يعطي the | New | York-New | Haven | Railroad، فيلصق York بكلمة New الخاطئة. أما التقطيع الصحيح، the | New York | - | New Haven | Railroad، فيحتاج إلى معرفة أن New York وNew Haven كلٌّ منهما اسم واحد. هذه مشكلة تقطيع (segmentation)، وهي تُفشل التجزئة إلى وحدات (tokenization) والتعرّف على الكيانات المسمّاة (named entity recognition) معًا. ويشير Jurafsky و Martin في فصل التجزئة إلى أن إبقاء تعبير متعدد الكلمات مثل New York وحدةً واحدة يتطلب قاموسًا للتعابير متعددة الكلمات، فترتبط التجزئة بالتعرّف على الأسماء وبـعلم الصرف (morphology). والعربية تجعل التقطيع أمرًا لا مفر منه بدل أن يكون عارضًا: حرف الجر b (الباء: بـ، مع) وحرف العطف w (الواو) لواحق متصلة (clitics) تُكتب ملتصقة بالكلمة التالية، فتكون وبالقلم كلمة إملائية واحدة يجب على المُجزِّئ أن يقطعها إلى w + b + al + qalam، أربع وحدات، قبل أن يعمل أي شيء آخر.

Idiomsالتعابير الاصطلاحية

Dark horse, get cold feet, lose face, throw in the towel. An Idiom is a multiword expression whose meaning is not built from its parts: no towel is thrown, no feet get cold. This defeats compositional semantics, the assumption that the meaning of a phrase is assembled from the meanings of its words, and it wrecks machine translation that translates word by word. Arabic has its own stock: على عيني is literally "on my eye" and means "gladly, of course".

Dark horse، get cold feet، lose face، throw in the towel. التعبير الاصطلاحي (idiom) تعبير متعدد الكلمات لا يُبنى معناه من أجزائه: لا منشفة تُرمى، ولا أقدام تبرد. وهذا يُفشل علم الدلالة (semantics) التركيبي، أي افتراض أن معنى العبارة يُجمَّع من معاني كلماتها، ويحطّم الترجمة الآلية (machine translation) التي تترجم كلمةً كلمة. وللعربية مخزونها الخاص: على عيني حرفيًا "on my eye" ومعناها "بكل سرور، بالتأكيد".

Neologismsالكلمات المستحدثة

Unfriend, Retweet, Malware, Webinar. Each of these entered everyday use, or in the case of unfriend returned to it with a new sense, only when a product or a threat made it necessary. A Neologism defeats any system with a closed vocabulary, which treats it as an out-of-vocabulary token and learns nothing. Vocabulary is open: new words arrive faster than lexicons can be updated. This is the motivation for the subword tokenization of lecture 2, where byte-pair encoding lets a model build unfriend from smaller, frequent pieces (ideally un plus friend) without ever having seen the whole word. Arabic coins verbs from loanwords the same way: speakers say سيّف, "to save" a file, forcing an English root into an Arabic verb pattern.

Unfriend، Retweet، Malware، Webinar. دخلت كل واحدة من هذه الكلمات الاستعمال اليومي، أو عادت إليه بمعنى جديد كما في حالة unfriend، فقط حين جعلها منتج ما أو تهديد ما ضرورية. الكلمة المستحدثة (neologism) تُفشل أي نظام ذي مفردات مغلقة، إذ يعاملها وحدةً خارج المفردات (out-of-vocabulary) ولا يتعلم منها شيئًا. المفردات مفتوحة: تصل الكلمات الجديدة أسرع مما يمكن تحديث المعاجم. وهذا هو الدافع وراء التجزئة إلى وحدات جزئية (subword tokenization) في المحاضرة 2، حيث يتيح ترميز أزواج البايتات (byte-pair encoding) للنموذج أن يبني unfriend من قطع أصغر شائعة (في الحالة المثالية un زائد friend) دون أن يرى الكلمة كاملة قط. والعربية تشتق أفعالًا من الكلمات المقترضة بالطريقة نفسها: يقول المتحدثون سيّف، أي حفظ الملف ("to save")، فيُدخلون جذرًا إنجليزيًا قسرًا في وزن فعل عربي.

World knowledgeمعرفة العالم

Mary and Sue are sisters. Mary and Sue are mothers. Same shape, same syntax, same plural predicate. Yet the first means sisters of each other and the second cannot mean mothers of each other. Nothing in the sentence tells you that; you know it because you know how sisterhood and motherhood work. This is world knowledge, and the subproblem it defeats is commonsense reasoning. It is the same in every language, which is why there is no Arabic column to add.

Mary and Sue are sisters. Mary and Sue are mothers. الشكل نفسه، والتركيب نفسه، والمسند الجمعي نفسه. ومع ذلك تعني الأولى أنهما أختان إحداهما للأخرى، ولا يمكن أن تعني الثانية أنهما أمّان إحداهما للأخرى. لا شيء في الجملة يخبرك بذلك؛ أنت تعرفه لأنك تعرف كيف تعمل الأخوّة والأمومة. هذه هي معرفة العالم (world knowledge)، والمسألة الفرعية التي تُفشلها هي الاستدلال بالحس السليم (commonsense reasoning). وهي واحدة في كل لغة، ولهذا لا يوجد عمود عربي يُضاف هنا.

Tricky entity namesأسماء الكيانات المخادعة

Where is A Bug's Life playing, Let It Be was recorded, a mutation on the for gene. A Named entity is supposed to be a proper name, but these names are made of ordinary words: an article, a pronoun, a preposition. Named entity recognition has to decide that for is a gene and Let It Be is a record without any lexical clue. In English the capital letters help a little. Arabic has no capital letters at all, so every person, place and organisation name looks like a common word. Farghaly and Shaalan list the missing capital letters among the central challenges for Arabic named entity recognition.

Where is A Bug's Life playing، Let It Be was recorded، a mutation on the for gene. يُفترض أن يكون الكيان المسمّى (named entity) اسم علم، لكن هذه الأسماء مكوّنة من كلمات عادية: أداة تعريف، وضمير، وحرف جر. على نظام التعرّف على الكيانات المسمّاة أن يقرر أن for جين وأن Let It Be تسجيل موسيقي دون أي قرينة معجمية. في الإنجليزية تساعد الأحرف الكبيرة قليلًا. أما العربية فليس فيها أحرف كبيرة أصلًا، فيبدو كل اسم لشخص أو مكان أو منظمة ككلمة عادية. ويُدرج Farghaly و Shaalan غياب الأحرف الكبيرة ضمن التحديات المركزية للتعرّف على الكيانات المسمّاة في العربية.

DifficultyالصعوبةSlide exampleمثال الشريحةWhat it defeatsما الذي تُفشلهArabic counterpartالنظير العربي
Non-standard textالنص غير القياسيGuys plz d/l the lettr Ive written 2 Jeff GaspinGuys plz d/l the lettr Ive written 2 Jeff GaspinNormalisation; models trained on edited textالتطبيع (normalisation)؛ والنماذج المدرَّبة على نصوص محرَّرةGulf dialect and Arabizi versus MSAاللهجة الخليجية والعربيزي (Arabizi) مقابل الفصحى الحديثة (MSA)
Segmentationالتقطيعthe New York-New Haven Railroadthe New York-New Haven RailroadTokenization and named entity recognitionالتجزئة إلى وحدات (tokenization) والتعرّف على الكيانات المسمّاة (NER)Clitics: w + b + al + qalam written as one wordاللواحق المتصلة (clitics): w + b + al + qalam تُكتب كلمة واحدة
Idiomsالتعابير الاصطلاحيةdark horse, get cold feet, lose face, throw in the toweldark horse, get cold feet, lose face, throw in the towelCompositional semantics, translationعلم الدلالة التركيبي (compositional semantics)، والترجمة'on my eye' meaning gladly«على عيني» (on my eye) بمعنى «بكل سرور»
Neologismsالكلمات المستحدثةunfriend, Retweet, Malware, Webinarunfriend, Retweet, Malware, WebinarClosed vocabularies (out-of-vocabulary words)المفردات المغلقة (كلمات خارج المفردات، out-of-vocabulary)Loanword verbs such as 'to save' a fileأفعال مشتقة من كلمات مقترضة مثل «سيّف» الملف (to save)
World knowledgeمعرفة العالمMary and Sue are sisters / are mothersMary and Sue are sisters / are mothersCommonsense reasoningالاستدلال بالحس السليم (commonsense reasoning)Same problem in every languageالمشكلة نفسها في كل لغة
Tricky entity namesأسماء الكيانات المخادعةA Bug's Life, Let It Be, the for geneA Bug's Life, Let It Be, the for geneNamed entity recognitionالتعرّف على الكيانات المسمّاة (named entity recognition)No capital letters at all, so every name looks commonلا توجد أحرف كبيرة إطلاقًا، فيبدو كل اسم كلمة عادية
Six sources of difficulty, the subproblem each defeats, and the Arabic counterpartستة مصادر للصعوبة، والمسألة الفرعية التي يُفشلها كل منها، ونظيرها في العربية

The lecture closes the list with "But that's what makes it fun!" and for a PhD student that line is literal. Each card is a research community: text normalisation, tokenization and segmentation, multiword expressions, open-vocabulary modelling, commonsense reasoning and named entity recognition all have their own shared tasks and leaderboards, and Arabic versions of most of them are still open.

تختم المحاضرة القائمة بعبارة "But that's what makes it fun!" (لكن هذا ما يجعلها ممتعة)، وبالنسبة لطالب دكتوراه فهذه العبارة حرفية. كل بطاقة مجتمع بحثي قائم: تطبيع النصوص، والتجزئة والتقطيع، والتعابير متعددة الكلمات، ونمذجة المفردات المفتوحة، والاستدلال بالحس السليم، والتعرّف على الكيانات المسمّاة، لكل منها مهامه المشتركة (shared tasks) ولوحات تصنيفه (leaderboards)، ونسخها العربية في معظمها ما زالت مفتوحة.

Quick checkاختبار سريع

Why does a bigger dictionary not solve idioms such as 'throw in the towel'?لماذا لا يحل قاموس أكبر مشكلة التعابير الاصطلاحية مثل 'throw in the towel'؟

Recall

List the six sources of difficulty on slide 23 with one example each.عدّد مصادر الصعوبة الستة في الشريحة 23 مع مثال واحد لكل منها.

Non-standard text (Guys plz d/l the lettr), segmentation (New York-New Haven), idioms (throw in the towel), neologisms (unfriend), world knowledge (Mary and Sue are mothers), tricky entity names (the for gene).
النص غير القياسي (Guys plz d/l the lettr)، والتقطيع (New York-New Haven)، والتعابير الاصطلاحية (throw in the towel)، والكلمات المستحدثة (unfriend)، ومعرفة العالم (Mary and Sue are mothers)، وأسماء الكيانات المخادعة (جين for).

Go back to Mary and Sue are mothers and ask what a system would need to read it correctly. It needs the syntax of a plural predicate, which is knowledge of language. It needs to know that motherhood is not reciprocal between two women, which is knowledge about the world. And it needs some procedure that brings the two together on this sentence, a way to combine knowledge sources. Those are exactly the three tools the lecture says progress requires.

عُد إلى Mary and Sue are mothers واسأل ماذا يحتاج النظام ليقرأها قراءة صحيحة. يحتاج إلى تركيب المسند الجمعي، وهذه معرفة باللغة (knowledge of language). ويحتاج إلى أن يعرف أن الأمومة ليست علاقة متبادلة بين امرأتين، وهذه معرفة بالعالم (knowledge about the world). ويحتاج إلى إجراء ما يجمع الاثنين على هذه الجملة، أي طريقة للجمع بين مصادر المعرفة. وهذه بالضبط الأدوات الثلاث التي تقول المحاضرة إن التقدّم يتطلبها.

Two knowledge sources and one way to combine them produce one reading. The chips below name the disciplines the models, algorithms and theories are drawn from.مصدرا معرفة وطريقة واحدة للجمع بينهما تُنتج قراءة واحدة. الشارات في الأسفل تسمّي التخصصات التي تُستمد منها النماذج والخوارزميات والنظريات.

The third tool is the interesting one, because it is where the four approaches of slide 15 come from. Each approach is one answer to how knowledge sources get combined. Rule-based NLP encodes linguistic knowledge by hand and combines it by the order in which rules fire. Machine learning based NLP learns the linguistic knowledge from annotated data and lets a classifier weigh it. End-to-end deep learning learns everything, including whatever world knowledge the text happens to contain, from raw input inside one network. A hybrid approach mixes them, typically rules where knowledge is crisp and models where it is statistical.

الأداة الثالثة هي المثيرة للاهتمام، لأنها مصدر المناهج الأربعة في الشريحة 15. كل منهج هو إجابة واحدة عن سؤال: كيف تُجمع مصادر المعرفة؟ المعالجة القائمة على القواعد (Rule-based NLP) ترمّز المعرفة اللغوية يدويًا وتجمعها بترتيب تنفيذ القواعد. المعالجة القائمة على تعلّم الآلة (Machine learning based NLP) تتعلم المعرفة اللغوية من بيانات موسومة وتترك لمصنِّف (classifier) أن يوازن بينها. التعلم العميق من الطرف إلى الطرف (End-to-end deep learning) يتعلم كل شيء، بما في ذلك أي معرفة بالعالم يتضمنها النص، من المُدخَل الخام داخل شبكة واحدة. أما المنهج الهجين (hybrid approach) فيمزج بينها، وعادةً بقواعد حيث تكون المعرفة واضحة الحدود ونماذج حيث تكون إحصائية.

ApproachالمنهجKnowledge of language fromمصدر المعرفة باللغةWorld knowledge fromمصدر المعرفة بالعالمHow sources are combinedطريقة الجمع بين المصادر
Rule-basedقائم على القواعد (rule-based)Hand-written grammars and lexiconsقواعد نحوية ومعاجم مكتوبة يدويًاHand-written facts and ontologiesحقائق وأنطولوجيات مكتوبة يدويًاThe programmer decides the order of rulesالمبرمج يحدد ترتيب القواعد
Machine learningتعلّم الآلة (machine learning)Learned from annotated corporaتُتعلَّم من مدوّنات موسومةWhatever is encoded in featuresما تُرمّزه السمات (features) أيًّا كانA classifier weighs the featuresمصنِّف (classifier) يوازن بين السمات
End-to-end deep learningالتعلم العميق من الطرف إلى الطرف (end-to-end)Learned from raw textتُتعلَّم من النص الخامAbsorbed implicitly from huge corporaتُمتص ضمنيًا من مدوّنات ضخمةOne network mixes everythingشبكة واحدة تمزج كل شيء
Hybridهجين (hybrid)Rules plus learned componentsقواعد مع مكوّنات متعلَّمةRules, knowledge bases, learned componentsقواعد، وقواعد معرفة، ومكوّنات متعلَّمةA pipeline or a voting schemeسلسلة معالجة (pipeline) أو نظام تصويت
The four approaches of slide 15 as four ways to combine the knowledge sources of slide 24المناهج الأربعة في الشريحة 15 بوصفها أربع طرق للجمع بين مصادر المعرفة في الشريحة 24

The second half of slide 24 says where the models, algorithms and theories come from: computer science, mathematics and linguistics. Slide 5 drew NLP where artificial intelligence, computer science and linguistics meet; slide 24 keeps computer science and linguistics but puts mathematics where artificial intelligence was. Jurafsky and Martin open their overview of the field with the same sentence, that the models are all drawn from the standard toolkits of computer science, mathematics and linguistics. Computer science supplies state space search, classifiers and dynamic programming. Mathematics supplies probability and linear algebra. Linguistics supplies the levels of part 3 and the categories, such as noun phrase and prepositional phrase, that the algorithms operate on.

يذكر النصف الثاني من الشريحة 24 من أين تأتي النماذج والخوارزميات والنظريات: علوم الحاسب، والرياضيات، واللسانيات. رسمت الشريحة 5 معالجة اللغات الطبيعية في نقطة التقاء الذكاء الاصطناعي وعلوم الحاسب واللسانيات؛ أما الشريحة 24 فتُبقي علوم الحاسب واللسانيات لكنها تضع الرياضيات مكان الذكاء الاصطناعي. ويفتتح Jurafsky و Martin نظرتهما العامة إلى المجال بالجملة نفسها: إن النماذج كلها مستمدة من الأدوات المعتادة لعلوم الحاسب والرياضيات واللسانيات. تقدّم علوم الحاسب البحث في فضاء الحالات (state space search)، والمصنِّفات (classifiers)، والبرمجة الديناميكية (dynamic programming). وتقدّم الرياضيات الاحتمالات والجبر الخطي. وتقدّم اللسانيات مستويات الجزء 3 والفئات، مثل المركب الاسمي وشبه الجملة الجارّة، التي تعمل عليها الخوارزميات.

Where the computer science tools appear later in the courseأين تظهر أدوات علوم الحاسب لاحقًا في المقرر

Dynamic programmingالبرمجة الديناميكية
Minimum edit distance (lecture 2), Viterbi decoding for hidden Markov modelsأقل مسافة تحرير (minimum edit distance، المحاضرة 2)، وفك الترميز بخوارزمية Viterbi لنماذج ماركوف المخفية (hidden Markov models)
Classifiersالمصنِّفات
Naive Bayes and logistic regression for text classificationNaive Bayes والانحدار اللوجستي (logistic regression) لتصنيف النصوص
State space searchالبحث في فضاء الحالات
Constituency and dependency parsing, decoding in translationالتحليل النحوي للمكوّنات والتبعية (constituency and dependency parsing)، وفك الترميز في الترجمة

Quick checkاختبار سريع

Which of the slide-24 tools tells you that 'Mary and Sue are mothers' does not mean mothers of each other?أي أداة من أدوات الشريحة 24 تخبرك أن 'Mary and Sue are mothers' لا تعني أن كل واحدة منهما أمٌّ للأخرى؟

The textbook behind the slidesالكتاب المرجعي وراء الشرائح

The lecture credits its material mainly to Jurafsky and Martin, Speech and Language Processing. That is right; the duck sentence, the toolkit sentence and the whole shape of this lecture come from its first chapter. The edition details on the slide are not right.

تنسب المحاضرة مادتها أساسًا إلى Jurafsky و Martin، Speech and Language Processing. وهذا صحيح؛ فجملة البطة، وجملة الأدوات، والشكل العام لهذه المحاضرة كلها مأخوذة من الفصل الأول للكتاب. أما تفاصيل الطبعة المذكورة في الشريحة فليست صحيحة.

Recall

Name the three tools on slide 24 and the three disciplines the models are drawn from, then say which of the four approaches of slide 15 learns its knowledge of language from raw text.سمِّ الأدوات الثلاث في الشريحة 24 والتخصصات الثلاثة التي تُستمد منها النماذج، ثم قل أي المناهج الأربعة في الشريحة 15 يتعلم معرفته باللغة من النص الخام.

Knowledge of language, knowledge about the world, a way to combine knowledge sources; computer science, mathematics, linguistics. End-to-end deep learning learns from raw text; machine learning based NLP needs annotated data; rule-based NLP has it written by hand.
المعرفة باللغة، والمعرفة بالعالم، وطريقة للجمع بين مصادر المعرفة؛ علوم الحاسب، والرياضيات، واللسانيات. التعلم العميق من الطرف إلى الطرف يتعلم من النص الخام؛ والمعالجة القائمة على تعلّم الآلة تحتاج إلى بيانات موسومة؛ والمعالجة القائمة على القواعد تُكتب فيها المعرفة يدويًا.

Recapالخلاصة

If you remember nothing elseإن لم تتذكر شيئاً آخر فتذكّر هذا

  • Ambiguity lives at every level: part of speech (duck, her), word sense (make), syntax (argument structure, PP attachment) and, in speech, phonetics (eye, maid).الغموض موجود في كل مستوى: نوع الكلمة (duck و her)، ومعنى الكلمة (make)، والتركيب النحوي (بنية مكمّلات الفعل وربط شبه الجملة الجارّة)، وفي الكلام المنطوق الصوتيات (eye و maid).
  • Jurafsky and Martin: ordinary sentences carry many grammatical parses that humans rarely notice, and most or all NLP tasks are ambiguity resolution at some level.يقول Jurafsky و Martin إن الجمل العادية تحمل تحليلات نحوية كثيرة نادرًا ما ينتبه لها البشر، وإن معظم مهام معالجة اللغات الطبيعية أو كلها هي حلٌّ للغموض في مستوى ما.
  • The same prepositional phrase can attach to the noun phrase or to the verb phrase. Both parses are grammatical, so grammar alone cannot choose.يمكن أن ترتبط شبه الجملة الجارّة نفسها بالمركب الاسمي أو بالمركب الفعلي. التحليلان كلاهما صحيحان نحويًا، لذلك لا يستطيع النحو وحده أن يختار بينهما.
  • A crash blossom is a real headline whose compressed syntax admits a garden-path reading. The name comes from 'Violinist Linked to JAL Crash Blossoms' (2009).الـ crash blossom عنوان صحفي حقيقي يسمح تركيبه المضغوط بقراءة مضلِّلة من نوع garden path. جاء الاسم من العنوان 'Violinist Linked to JAL Crash Blossoms' سنة 2009.
  • Beyond ambiguity: non-standard text, segmentation, idioms, neologisms, world knowledge and tricky entity names, each defeating a named NLP subproblem.غير الغموض: النص غير القياسي، والتقطيع، والتعابير الاصطلاحية، والكلمات المستحدثة، ومعرفة العالم، وأسماء الكيانات المخادعة، وكل منها يُفشل مسألة فرعية محددة في معالجة اللغات الطبيعية.
  • Arabic adds diglossia between MSA and dialect, clitics glued onto words, and no capitalisation cue for names.تضيف العربية الازدواجية اللغوية (diglossia) بين الفصحى الحديثة (MSA) واللهجة، واللواحق المتصلة (clitics) الملتصقة بالكلمات، وغياب الأحرف الكبيرة التي تدل على الأسماء.
  • Progress needs knowledge of language, knowledge about the world and a way to combine them, with tools drawn from computer science, mathematics and linguistics.يحتاج التقدّم إلى معرفة باللغة، ومعرفة بالعالم، وطريقة للجمع بينهما، مع أدوات مستمدة من علوم الحاسب والرياضيات واللسانيات.
  • Slide 25's 'Prentice-Hall, 2020' is wrong. The Prentice Hall editions are 2000 and 2009; the 3rd edition is a free online draft, most recently August 2026.عبارة 'Prentice-Hall, 2020' في الشريحة 25 خاطئة. طبعتا Prentice Hall هما 2000 و 2009، أما الطبعة الثالثة فهي مسودة مجانية على الإنترنت، أحدث إصداراتها في أغسطس 2026.

Sourcesالمصادر