ICS 582Lecture 01المحاضرة 01Part 01الجزء 01
What natural language processing isما هي معالجة اللغات الطبيعية
The definition of NLP, its three goals, its other names, and where it sits at the intersection of linguistics, computer science and artificial intelligence alongside the other AI subfields.تعريف NLP وأهدافها الثلاثة وأسماؤها الأخرى، وموقعها عند تقاطع اللسانيات وعلوم الحاسب والذكاء الاصطناعي إلى جانب فروع الذكاء الاصطناعي الأخرى.
- Conceptsالمفاهيم
- 3
- Slidesالشرائح
- 1-6
- Readingمدة القراءة
- 18 min18 دقيقة
Why this part mattersلماذا يهمّ هذا الجزء
Every later lecture in this course is a tool: tokenizers, n-gram models, classifiers, transformers. This part fixes what the tools are for. It gives you the one definition an examiner can ask on day one and the sentence you will need in the introduction of any NLP paper or thesis chapter.
The deck opens with a slide that carries the footer ICS472, the undergraduate twin of this course.ICS 582 is the graduate version taught by Dr. Irfan Ahmad and uses the same slides, so nothing changes for you. Over six slides it moves from a wall of company logos to a one-sentence definition, then places the field on a map twice: once among its parent disciplines and once among its siblings inside artificial intelligence. We follow the same route, but each stop is an argument rather than a bullet list.
كل محاضرة لاحقة في هذا المقرر هي أداة: المُقطِّعات (tokenizers)، ونماذج n-gram، والمصنِّفات (classifiers)، والمحوّلات (transformers). أما هذا الجزء فيحدد الغاية التي وُجدت هذه الأدوات من أجلها. فهو يعطيك التعريف الوحيد الذي قد يسألك عنه الممتحن من اليوم الأول، والجملة التي ستحتاجها في مقدمة أي ورقة بحثية أو فصل من رسالة في NLP.
تبدأ الشرائح بشريحة تحمل في تذييلها ICS472، وهو المقرر التوأم لهذا المقرر في مرحلة البكالوريوس. أما ICS 582 فهو نسخة الدراسات العليا التي يدرّسها الدكتور عرفان أحمد (Dr. Irfan Ahmad) وتستخدم الشرائح نفسها، فلا يتغير عليك شيء. وعلى مدى ست شرائح ينتقل العرض من جدار مليء بشعارات الشركات إلى تعريف في جملة واحدة، ثم يضع المجال على الخريطة مرتين: مرة بين التخصصات الأم التي نشأ منها، ومرة بين إخوته داخل الذكاء الاصطناعي. ونحن نسلك الطريق نفسه، لكن كل محطة عندنا حجة متماسكة لا مجرد قائمة نقاط.
By the end you canفي نهاية هذا الجزء ستستطيع
- Recite the slide 4 definition of NLP and its three goals, with one product for each goal.اذكر تعريف NLP في الشريحة 4 وأهدافه الثلاثة، مع منتج واحد لكل هدف.
- Name the three alternative names of the field and say which facet each one stresses.سمِّ الأسماء البديلة الثلاثة للمجال، وبيّن الجانب الذي يبرزه كل منها.
- Draw and label the Venn of linguistics, computer science and AI, and say what each contributes.ارسم مخطط فِن (Venn) للسانيات وعلوم الحاسب والذكاء الاصطناعي مع تسمية أجزائه، وبيّن ما يقدمه كل منها.
- List the five AI subfields on slide 6 and place deep learning under machine learning.اسرد فروع الذكاء الاصطناعي الخمسة في الشريحة 6، وضع التعلم العميق تحت تعلم الآلة.
- Give one system for each pairing of NLP with vision, robotics and knowledge representation.أعطِ نظاماً واحداً لكل ربط بين NLP وكل من الرؤية الحاسوبية والروبوتات وتمثيل المعرفة.
Three things you probably did this week. You said "hey Siri, set an alarm for six" and a phone acted on it. A visitor pointed Google Translate's camera at an Arabic menu and read it in English. And Gmail moved a phishing message into spam before you ever saw it. All three are natural language processing, and they are three different jobs: a human talking to a machine, two humans with a machine in the middle, and no conversation at all, just text being handled usefully.
ثلاثة أشياء غالباً فعلتها هذا الأسبوع. قلت «hey Siri, set an alarm for six» فنفّذ الهاتف الأمر. ووجّه زائرٌ كاميرا Google Translate نحو قائمة طعام عربية فقرأها بالإنجليزية. ونقل Gmail رسالة تصيّد (phishing) إلى مجلد الرسائل المزعجة قبل أن تراها أصلاً. هذه الثلاثة كلها من معالجة اللغات الطبيعية (natural language processing)، وهي ثلاث مهام مختلفة: إنسان يتحدث إلى آلة، وإنسانان بينهما آلة وسيطة، ولا محادثة على الإطلاق، بل نص يُعالَج معالجة مفيدة فحسب.
That is exactly how the field defines itself. Slide 4 states it in one sentence: NLP is a branch of artificial intelligence that is concerned with interactions between computers and human language. The purpose clause that follows is the part to memorise, because it lists the three goals in a fixed order: enabling human-machine communication, improving human-human communication, or simply doing useful processing of text or speech. The wording is lifted almost verbatim from the opening of Jurafsky and Martin's textbook, which describes the goal of the field as getting computers to perform useful tasks involving human language, "tasks like enabling human-machine communication, improving human-human communication, or simply doing useful processing of text or speech" (Jurafsky and Martin, 2nd edition, chapter 1).
وهذا بالضبط هو تعريف المجال لنفسه. تقوله الشريحة 4 في جملة واحدة: NLP فرع من فروع الذكاء الاصطناعي (artificial intelligence) يُعنى بالتفاعل بين الحواسيب واللغة البشرية. أما جملة الغاية التي تليه فهي الجزء الذي يجب حفظه، لأنها تسرد الأهداف الثلاثة بترتيب ثابت: تمكين التواصل بين الإنسان والآلة (enabling human-machine communication)، وتحسين التواصل بين البشر (improving human-human communication)، أو مجرد إجراء معالجة مفيدة للنص أو الكلام (simply doing useful processing of text or speech). والصياغة منقولة حرفياً تقريباً من مطلع كتاب Jurafsky وMartin، الذي يصف هدف المجال بأنه جعل الحواسيب تؤدي مهام مفيدة تتضمن اللغة البشرية، «مهام مثل تمكين التواصل بين الإنسان والآلة، أو تحسين التواصل بين البشر، أو مجرد إجراء معالجة مفيدة للنص أو الكلام» (Jurafsky and Martin، الطبعة 2، الفصل 1).
Notice what the definition does not say. It does not name a technique. It does not say statistics, or neural networks, or grammars. NLP is defined by its problem, human language, and by what it wants to achieve with it. The techniques have moved from hand-written rules to statistical learning to deep neural networks (part 03 walks through that sequence), and the definition has not moved with them. That is why it is worth learning by heart: it will still be true when the current models are obsolete.
لاحظ ما لا يقوله التعريف. إنه لا يسمّي أي تقنية. لا يذكر الإحصاء، ولا الشبكات العصبية، ولا القواعد النحوية (grammars). فـNLP معرَّف بمشكلته، أي اللغة البشرية، وبما يريد تحقيقه بها. لقد انتقلت التقنيات من قواعد مكتوبة يدوياً إلى التعلم الإحصائي ثم إلى الشبكات العصبية العميقة (يستعرض الجزء 03 هذا التسلسل)، ولم يتغير التعريف معها. ولهذا يستحق الحفظ عن ظهر قلب: سيبقى صحيحاً حين تصبح النماذج الحالية قديمة.
The logos, sorted by goalالشعارات مصنّفة حسب الهدف
Slide 2 shows seven companies and says nothing else, so the exercise is to say it for them. Each logo stands for at least one product whose core step is a language step, and each of those products serves one of the three goals. Google Search is the clearest case: in 2019 Google wrote that "Search is about understanding language" and introduced BERT to help it understand one in 10 searches in the U.S. in English better (Google, 2019). Amazon's developer documentation describes the Alexa pipeline as streaming your speech to the cloud, where "the Alexa service handles the speech recognition and natural language processing" (Amazon). Meta's No Language Left Behind project calls machine translation "a key focus of artificial intelligence research today" and covers 200 languages (NLLB Team, 2022). Grammarly says its team of computational linguists and deep learning engineers builds algorithms that learn "the rules and hidden patterns of good writing by analyzing millions of sentences" (Grammarly), which is spelling and grammar correction at industrial scale.
تعرض الشريحة 2 سبع شركات ولا تقول شيئاً آخر، فالتمرين أن تقول أنت ما سكتت عنه. كل شعار يمثل منتجاً واحداً على الأقل خطوته الجوهرية خطوة لغوية، وكل منتج من هذه المنتجات يخدم أحد الأهداف الثلاثة. بحث Google أوضح مثال: في عام 2019 كتبت Google أن «البحث يدور حول فهم اللغة» (Search is about understanding language)، وقدّمت BERT لتساعد البحث على فهم عملية بحث واحدة من كل 10 عمليات باللغة الإنجليزية في الولايات المتحدة (U.S.) فهماً أفضل (Google, 2019). وتصف وثائق المطورين لدى Amazon مسار Alexa بأنه بثّ كلامك إلى السحابة، حيث «تتولى خدمة Alexa التعرف على الكلام ومعالجة اللغة الطبيعية» (Amazon). ويصف مشروع No Language Left Behind من Meta الترجمة الآلية (machine translation) بأنها «محور رئيسي لأبحاث الذكاء الاصطناعي اليوم»، ويغطي 200 لغة (NLLB Team, 2022). وتقول Grammarly إن فريقها من اللغويين الحاسوبيين ومهندسي التعلم العميق يبني خوارزميات تتعلم «قواعد الكتابة الجيدة وأنماطها الخفية من خلال تحليل ملايين الجمل» (Grammarly)، وهذا هو تصحيح الإملاء والقواعد (spelling and grammar correction) على نطاق صناعي.
| Companyالشركة | Productالمنتج | Goal servedالهدف الذي يخدمه | What the language step isما هي الخطوة اللغوية |
|---|---|---|---|
| GoogleGoogle | Search and Translateالبحث (Search) والترجمة (Translate) | Human-machine, human-humanإنسان وآلة، وبين البشر | Understanding a typed query (BERT), translating text between over 240 languagesفهم استعلام مكتوب (BERT)، وترجمة النصوص بين أكثر من 240 لغة |
| AppleApple | SiriSiri | Human-machineإنسان وآلة | Recognising speech and holding a back-and-forth conversationالتعرف على الكلام وإجراء محادثة متبادلة |
| MicrosoftMicrosoft | Translatorالمترجم (Translator) | Human-humanبين البشر | Translating conversations, documents and street signs, even offlineترجمة المحادثات والمستندات ولافتات الشوارع، حتى دون اتصال بالإنترنت |
| Twitter (now X)Twitter (الآن X) | Feed and moderationالخلاصة (Feed) والإشراف على المحتوى | Useful processingمعالجة مفيدة | Ranking and filtering a stream of short textsترتيب سيل من النصوص القصيرة وتصفيته |
| AmazonAmazon | AlexaAlexa | Human-machineإنسان وآلة | Streaming speech to the cloud, recognising it, deciding what the user wantsبث الكلام إلى السحابة، والتعرف عليه، وتحديد ما يريده المستخدم |
| Facebook (Meta)Facebook (Meta) | NLLB translationترجمة NLLB | Human-humanبين البشر | Machine translation across 200 languagesالترجمة الآلية عبر 200 لغة |
| GrammarlyGrammarly | Writing assistantمساعد الكتابة | Useful processingمعالجة مفيدة | Learning the patterns of good writing from millions of sentencesتعلم أنماط الكتابة الجيدة من ملايين الجمل |
One field, many namesمجال واحد وأسماء كثيرة
Slide 4 ends by admitting that the field "has many names" and lists three. They are not rival fields. Each stresses a different facet of the same work, and the facet tells you who is speaking. When someone says computational linguistics they are usually facing the linguistics side: language as the object of scientific study, with computation as the method. Its professional society is the ACL, which describes itself as serving people working on computational problems involving human language, "a field often referred to as either computational linguistics or natural language processing (NLP)" (ACL). When someone says speech and language processing they are quoting the title of the Jurafsky and Martin book and reminding you that speech is in scope. When someone says human language technology they are on the engineering side, thinking about systems that ship.
تنتهي الشريحة 4 بالاعتراف بأن للمجال «أسماء كثيرة» (has many names) وتذكر ثلاثة منها. وهي ليست مجالات متنافسة، بل يبرز كل اسم جانباً مختلفاً من العمل نفسه، والجانب يكشف لك من أي جهة يتحدث صاحبه. حين يقول أحدهم اللسانيات الحاسوبية (computational linguistics) فهو في الغالب يقف في جهة اللسانيات: اللغة موضوعاً للدراسة العلمية، والحوسبة منهجاً. وجمعيته المهنية هي ACL، التي تصف نفسها بأنها تخدم من يعملون على مسائل حاسوبية تتعلق باللغة البشرية، «وهو مجال يُشار إليه غالباً باسم اللسانيات الحاسوبية أو معالجة اللغات الطبيعية (NLP)» (ACL). وحين يقول أحدهم معالجة الكلام واللغة (speech and language processing) فهو يقتبس عنوان كتاب Jurafsky وMartin ويذكّرك بأن الكلام المنطوق ضمن نطاق المجال. وحين يقول أحدهم تقنيات اللغة البشرية (human language technology) فهو في جهة الهندسة، يفكر في أنظمة تُطلق وتُستخدم فعلاً.
The three alternative names on slide 4 and the facet each stressesالأسماء البديلة الثلاثة في الشريحة 4 والجانب الذي يبرزه كل منها
- Computational linguisticsاللسانيات الحاسوبية
- The linguistics-facing name. The ACL, founded in 1962 as the Association for Machine Translation and Computational Linguistics and renamed in 1968, defines it as the scientific study of language from a computational perspective.الاسم الذي يتجه إلى جهة اللسانيات. تعرّفه ACL، التي تأسست عام 1962 باسم جمعية الترجمة الآلية واللسانيات الحاسوبية (Association for Machine Translation and Computational Linguistics) وغيّرت اسمها عام 1968، بأنه الدراسة العلمية للغة من منظور حاسوبي.
- Speech and language processingمعالجة الكلام واللغة
- The title of the Jurafsky and Martin textbook. It makes explicit that spoken language, not only written text, belongs to the field.عنوان كتاب Jurafsky وMartin. وهو يصرّح بأن اللغة المنطوقة، لا النص المكتوب وحده، جزء من المجال.
- Human language technologyتقنيات اللغة البشرية
- The engineering-facing name. Technology means deployable systems: the search engine, the assistant, the filter, rather than the theory behind them.الاسم الذي يتجه إلى جهة الهندسة. والتقنية هنا تعني أنظمة قابلة للنشر والاستخدام: محرك البحث، والمساعد، والمرشِّح، لا النظرية التي تقف خلفها.
The list keeps growing. The current draft of the third edition says the field "has many names corresponding to its many facets, including natural language processing (NLP), computational linguistics, spoken language processing, speech recognition, or most recently simply language modeling" (Jurafsky and Martin, 3rd edition draft, chapter 1). Note the word "recently": language modeling is the newest label, not a replacement for the field.
والقائمة في ازدياد. تقول المسودة الحالية للطبعة الثالثة إن للمجال «أسماء كثيرة تقابل جوانبه الكثيرة، منها معالجة اللغات الطبيعية (NLP)، واللسانيات الحاسوبية، ومعالجة اللغة المنطوقة، والتعرف على الكلام، أو مؤخراً نمذجة اللغة (language modeling) فحسب» (Jurafsky and Martin، مسودة الطبعة 3، الفصل 1). لاحظ كلمة «مؤخراً» (recently): نمذجة اللغة أحدث تسمية، وليست بديلاً عن المجال.
Recall
State the definition of NLP on slide 4 and its three goals.اذكر تعريف NLP في الشريحة 4 وأهدافه الثلاثة.
Recall
Name the three alternative names on slide 4 and say which facet each stresses.اذكر الأسماء البديلة الثلاثة في الشريحة 4، وبيّن الجانب الذي يبرزه كل منها.
Quick checkاختبار سريع
Which of these is one of the three other names of the field listed on slide 4?أيٌّ مما يلي أحد الأسماء الثلاثة الأخرى للمجال المذكورة في الشريحة 4؟
Quick checkاختبار سريع
A phishing email is silently moved to the spam folder. Which slide 4 goal does this serve?نُقلت رسالة تصيّد بصمت إلى مجلد الرسائل المزعجة. أي هدف من أهداف الشريحة 4 يخدمه ذلك؟
Take the spam filter again and ask what you would need to build one. You need to know what counts as a word, that free and FREE!!! are the same word dressed differently, and that "not a scam" flips the meaning of "scam". That is linguistics. You need a classifier, a hash table for the vocabulary, and an algorithm that runs in reasonable time on millions of messages. That is computer science. And you need a way to learn the weights from mail people have reported, and to represent the result as "spam with probability 0.97". That is artificial intelligence.
خذ مرشّح الرسائل المزعجة مرة أخرى واسأل: ماذا تحتاج لبنائه؟ تحتاج أن تعرف ما الذي يُعدّ كلمة، وأن free وFREE!!! كلمة واحدة بلباسين مختلفين، وأن عبارة «not a scam» تقلب معنى «scam». هذه لسانيات. وتحتاج مصنِّفاً (classifier)، وجدول تجزئة (hash table) للمفردات، وخوارزمية تعمل في وقت معقول على ملايين الرسائل. هذه علوم حاسب. وتحتاج طريقة لتعلم الأوزان من الرسائل التي أبلغ عنها الناس، ولتمثيل النتيجة في صورة «رسالة مزعجة باحتمال 0.97». وهذا هو الذكاء الاصطناعي (artificial intelligence).
Slide 5 draws this as a Venn diagram: NLP sits at the intersection of linguistics, computer science (abbreviated Comp. Sci. on the slide) and AI, and the bullet list trails off with an ellipsis. The ellipsis is not decoration. Read against slide 24, which names the fields NLP draws its models, algorithms and theories from as computer science, mathematics and linguistics, the ellipsis stands most plausibly for mathematics (the part of it NLP leans on most is probability and statistics). Jurafsky and Martin go further, listing the foundations of the field as "computer science, linguistics, mathematics, electrical engineering, and psychology" (Jurafsky and Martin, 2nd edition, chapter 1). Electrical engineering enters through the signal processing that speech needs, and psychology through the study of how people actually produce and understand language.
ترسم الشريحة 5 ذلك في مخطط فِن (Venn): يقع NLP عند تقاطع اللسانيات وعلوم الحاسب (مختصرة على الشريحة Comp. Sci.) والذكاء الاصطناعي، وتنتهي قائمة النقاط بعلامة حذف (...). وعلامة الحذف ليست زينة. فإذا قرأناها في ضوء الشريحة 24، التي تسمي المجالات التي يستمد منها NLP نماذجه وخوارزمياته ونظرياته بأنها علوم الحاسب والرياضيات واللسانيات، فإن أرجح ما تعنيه علامة الحذف هو الرياضيات (وأكثر ما يعتمد عليه NLP منها هو الاحتمالات والإحصاء). ويذهب Jurafsky وMartin أبعد من ذلك، فيعدّدون أسس المجال بأنها «علوم الحاسب، واللسانيات، والرياضيات، والهندسة الكهربائية، وعلم النفس» (Jurafsky and Martin، الطبعة 2، الفصل 1). تدخل الهندسة الكهربائية عبر معالجة الإشارات التي يحتاجها الكلام، ويدخل علم النفس عبر دراسة كيف ينتج الناس اللغة ويفهمونها فعلاً.
What each parent contributesما يقدمه كل تخصص أم
The three circles are not interchangeable, and an exam question will often ask you to say what each one brings. Linguistics supplies the object of study and the vocabulary for describing it: the levels of language from sounds through words and sentences to meaning and discourse, the theories of grammar that say which sentences are well formed, and the very idea of ambiguity, which part 04 returns to. Computer science supplies the machinery. Jurafsky and Martin single out "state space search algorithms, such as dynamic programming, and machine learning algorithms, such as classifiers" as the most important (Jurafsky and Martin, 2nd edition, section 1.3). AI supplies learning and knowledge: how to fit a model to data, how to store facts a program can reason over, and the probabilistic stance that, given several possible readings, you should choose the most probable one.
الدوائر الثلاث ليست قابلة للتبادل، وكثيراً ما يطلب منك سؤال الامتحان أن تذكر ما يقدمه كل منها. تقدم اللسانيات موضوع الدراسة والمفردات اللازمة لوصفه: مستويات اللغة من الأصوات مروراً بالكلمات والجمل وصولاً إلى المعنى والخطاب (discourse)، ونظريات النحو التي تحدد أي الجمل سليمة البناء، وفكرة الغموض (ambiguity) نفسها، التي يعود إليها الجزء 04. وتقدم علوم الحاسب الآلية المنفّذة. يخص Jurafsky وMartin بالذكر «خوارزميات البحث في فضاء الحالات (state space search)، مثل البرمجة الديناميكية (dynamic programming)، وخوارزميات تعلم الآلة، مثل المصنِّفات» بوصفها الأهم (Jurafsky and Martin، الطبعة 2، القسم 1.3). ويقدم الذكاء الاصطناعي التعلم والمعرفة: كيف تُلائم نموذجاً مع البيانات، وكيف تخزن حقائق يستطيع البرنامج أن يستدل بها، والموقف الاحتمالي القائل إنه إذا كان أمامك عدة قراءات ممكنة فعليك أن تختار أرجحها.
| Disciplineالتخصص | What it gives NLPما يقدمه لـ NLP | Example in this courseمثال من هذا المقرر |
|---|---|---|
| Linguisticsاللسانيات | The object of study: levels of description from sounds to discourse, theories of grammar, the notion of ambiguityموضوع الدراسة: مستويات الوصف من الأصوات إلى الخطاب، ونظريات النحو، ومفهوم الغموض | What counts as a word, why 'I made her duck' has at least five readingsما الذي يُعدّ كلمة، ولماذا تحتمل جملة 'I made her duck' خمس قراءات على الأقل |
| Computer scienceعلوم الحاسب | Algorithms and data structures: state space search, dynamic programming, classifiersالخوارزميات وهياكل البيانات: البحث في فضاء الحالات (state space search)، والبرمجة الديناميكية، والمصنِّفات | A dynamic programming decoder, a hash table of the vocabulary, a spam classifierمفكِّك ترميز بالبرمجة الديناميكية، وجدول تجزئة للمفردات، ومصنِّف للرسائل المزعجة |
| Artificial intelligenceالذكاء الاصطناعي | Learning from data and representing knowledge; choosing the most probable of N interpretationsالتعلم من البيانات وتمثيل المعرفة، واختيار أرجح تفسير من بين N تفسيرات | Training weights from labelled mail, storing facts to answer a questionتدريب الأوزان من رسائل مصنّفة، وتخزين الحقائق للإجابة عن سؤال |
| The ellipsisعلامة الحذف | Mathematics (in practice probability and statistics), plus signal processing and psychologyالرياضيات (وعملياً الاحتمالات والإحصاء)، إضافة إلى معالجة الإشارات وعلم النفس | Probability, linear algebra, vector spaces, the acoustics of speechالاحتمالات، والجبر الخطي، وفضاءات المتجهات، وصوتيات الكلام |
Jurafsky and Martin make the point with the Unix program wc. When it counts bytes and lines it is ordinary data processing. When it counts words it is doing something linguistic, because it needs to know what a word is. The line between data processing and language processing is exactly the linguistics circle: the moment your program relies on knowledge of language, it has crossed into NLP.
يوضح Jurafsky وMartin الفكرة ببرنامج wc في Unix. حين يعدّ البايتات والأسطر فهو معالجة بيانات عادية. وحين يعدّ الكلمات فهو يفعل شيئاً لغوياً، لأنه يحتاج أن يعرف ما الكلمة. والحد الفاصل بين معالجة البيانات ومعالجة اللغة هو دائرة اللسانيات بالضبط: في اللحظة التي يعتمد فيها برنامجك على المعرفة باللغة (knowledge of language) يكون قد عبر إلى NLP.
Recall
Which three disciplines form the Venn on slide 5, and what does the ellipsis stand for?ما التخصصات الثلاثة التي تشكّل مخطط فِن في الشريحة 5، وعلامَ تدل علامة الحذف؟
Photograph a street sign in Riyadh with your phone. Vision finds the sign in the pixels and reads its letters. NLP translates the words on it. A delivery robot could be told "turn left at that sign" and act on it. And a knowledge base knows that the name on the sign is a real district with a location and a history. One photo has just touched four subfields of artificial intelligence, and most of those steps are now learned from data by a fifth.
صوّر لافتة شارع في الرياض بهاتفك. الرؤية الحاسوبية تجد اللافتة بين البكسلات وتقرأ حروفها. وNLP يترجم الكلمات المكتوبة عليها. ويمكن أن يُقال لروبوت توصيل «انعطف يساراً عند تلك اللافتة» فينفّذ. وقاعدة معرفة تعرف أن الاسم المكتوب على اللافتة حيٌّ حقيقي له موقع وتاريخ. صورة واحدة لمست للتو أربعة فروع من الذكاء الاصطناعي (artificial intelligence)، ومعظم هذه الخطوات صار اليوم يُتعلَّم من البيانات بواسطة فرع خامس.
Slide 6 lists those five subfields as stacked boxes: natural language processing, knowledge representation and deduction, machine learning, computer vision and robotics. Only one box has a sub-bullet: deep learning is indented under machine learning. The same map appears in the standard AI textbook. Russell and Norvig give knowledge representation its own chapter inside a part called "Knowledge, reasoning, and planning", give machine learning its own part with a deep learning chapter inside it, and group natural language processing, computer vision and robotics under "Communicating, perceiving, and acting" (Russell and Norvig, 4th edition, table of contents). The slide is the textbook's contents page compressed to five lines.
تسرد الشريحة 6 هذه الفروع الخمسة في صناديق متراصة: معالجة اللغات الطبيعية، وتمثيل المعرفة والاستنتاج (knowledge representation and deduction)، وتعلم الآلة (machine learning)، والرؤية الحاسوبية (computer vision)، والروبوتات (robotics). صندوق واحد فقط له نقطة فرعية: التعلم العميق (deep learning) مُزاح إلى الداخل تحت تعلم الآلة. والخريطة نفسها تظهر في كتاب الذكاء الاصطناعي المرجعي. يخصص Russell وNorvig لتمثيل المعرفة فصلاً مستقلاً داخل جزء عنوانه «Knowledge, reasoning, and planning» (المعرفة والاستدلال والتخطيط)، ويخصصان لتعلم الآلة جزءاً مستقلاً بداخله فصل عن التعلم العميق، ويجمعان معالجة اللغات الطبيعية والرؤية الحاسوبية والروبوتات تحت «Communicating, perceiving, and acting» (التواصل والإدراك والفعل) (Russell and Norvig، الطبعة 4، جدول المحتويات). فالشريحة هي صفحة محتويات الكتاب مضغوطة في خمسة أسطر.
- Natural language processingمعالجة اللغات الطبيعية (natural language processing)
- Knowledge representation and deduction (standard phrase: reasoning)تمثيل المعرفة والاستنتاج (knowledge representation and deduction)، والعبارة المعيارية: الاستدلال (reasoning)
- Machine learning, with deep learning as its sub-areaتعلم الآلة (machine learning)، والتعلم العميق (deep learning) فرع داخله
- Computer visionالرؤية الحاسوبية (computer vision)
- Roboticsالروبوتات (robotics)
Sibling and tool at onceأخٌ وأداة في آن واحد
The key point of the slide is why deep learning is indented rather than listed beside the others. Machine learning is a subfield in its own right, but it is also the main method NLP, computer vision and robotics now use, and an increasingly common one in knowledge representation as well. Goodfellow, Bengio and Courville draw this as nested sets: deep learning is a kind of representation learning, which is a kind of machine learning, "which is used for many but not all approaches to AI" (Goodfellow et al., 2016, figure 1.4). The nesting is why the slide indents deep learning, and the "used for" clause is why the AI textbook has both a chapter called Natural Language Processing and one called Deep Learning for Natural Language Processing. It is also why the rest of ICS 582 is mostly machine learning: the problem is language, the method is learning.
النقطة الأساسية في الشريحة هي سبب إزاحة التعلم العميق إلى الداخل بدلاً من وضعه بجانب الفروع الأخرى. تعلم الآلة فرع قائم بذاته، لكنه أيضاً المنهج الرئيسي الذي يستخدمه اليوم كل من NLP والرؤية الحاسوبية والروبوتات، ومنهج يتزايد استخدامه في تمثيل المعرفة كذلك. ويرسم Goodfellow وBengio وCourville ذلك في صورة مجموعات متداخلة: التعلم العميق نوع من تعلم التمثيلات (representation learning)، الذي هو نوع من تعلم الآلة، «الذي يُستخدم في كثير من مناهج الذكاء الاصطناعي لا في جميعها» (Goodfellow et al., 2016، الشكل 1.4). هذا التداخل هو سبب إزاحة الشريحة للتعلم العميق، وعبارة «يُستخدم في» (used for) هي سبب احتواء كتاب الذكاء الاصطناعي على فصل بعنوان Natural Language Processing وآخر بعنوان Deep Learning for Natural Language Processing. وهي أيضاً سبب كون معظم ما تبقى من ICS 582 تعلم آلة: المشكلة هي اللغة، والمنهج هو التعلم.
The pairings between NLP and its siblings are concrete systems you can name in an exam. With computer vision, image captioning: Vinyals and colleagues describe automatically describing an image as a problem that "connects computer vision and natural language processing" (Vinyals et al., 2014). Optical character recognition is the other direction, a vision task that extracts "printed or handwritten text from images such as posters, street signs, and product labels" and hands it to NLP (Microsoft Learn). With robotics, instruction following: the SayCan system completes "long-horizon, abstract, natural language instructions on a mobile manipulator", with the robot acting as the language model's "hands and eyes" (Ahn et al., 2022). With knowledge representation, question answering over a knowledge graph: Google's Knowledge Graph understands "real-world entities and their relationships to one another: things, not strings", and uses that to tell the Taj Mahal monument from the musician (Google, 2012).
الروابط بين NLP وإخوته أنظمة ملموسة تستطيع تسميتها في الامتحان. مع الرؤية الحاسوبية: توليد أوصاف الصور (image captioning)، إذ يصف Vinyals وزملاؤه الوصف التلقائي لصورة بأنه مشكلة «تربط الرؤية الحاسوبية بمعالجة اللغات الطبيعية» (Vinyals et al., 2014). والتعرف الضوئي على الحروف (OCR) هو الاتجاه المعاكس: مهمة رؤية تستخرج «النص المطبوع أو المكتوب بخط اليد من صور مثل الملصقات ولافتات الشوارع وملصقات المنتجات» وتسلّمه إلى NLP (Microsoft Learn). مع الروبوتات: اتباع التعليمات (instruction following)، إذ ينفّذ نظام SayCan «تعليمات مجردة طويلة الأفق بلغة طبيعية على روبوت متنقل ذي ذراع» (mobile manipulator)، ويعمل الروبوت بوصفه «يدَي النموذج اللغوي وعينيه» (Ahn et al., 2022). مع تمثيل المعرفة: الإجابة عن الأسئلة (question answering) فوق رسم بياني معرفي (knowledge graph)، إذ يفهم Knowledge Graph من Google «الكيانات في العالم الحقيقي وعلاقاتها ببعضها: أشياء لا سلاسل نصية» (things, not strings)، ويستخدم ذلك ليميّز نُصب تاج محل (Taj Mahal) من الموسيقي الذي يحمل الاسم نفسه (Google, 2012).
| Subfieldالفرع | What it studiesما يدرسه | Example systemنظام مثال | Where it touches NLPأين يلتقي بـ NLP |
|---|---|---|---|
| Knowledge representation and reasoningتمثيل المعرفة والاستدلال | Storing facts and drawing conclusions from themتخزين الحقائق واستخلاص النتائج منها | Google Knowledge Graph (things, not strings)Google Knowledge Graph (أشياء لا سلاسل نصية) | Question answering over a knowledge graph; disambiguating Taj Mahal the monument from Taj Mahal the musicianالإجابة عن الأسئلة فوق رسم بياني معرفي، والتمييز بين تاج محل (Taj Mahal) النُّصب وتاج محل الموسيقي |
| Machine learningتعلم الآلة | Learning behaviour from data instead of rulesتعلم السلوك من البيانات بدلاً من القواعد | A spam classifier trained on reported mailمصنِّف رسائل مزعجة مدرَّب على الرسائل المُبلَّغ عنها | Supplies almost every modern NLP model; deep learning is its sub-areaيوفر تقريباً كل نموذج حديث في NLP، والتعلم العميق فرع داخله |
| Computer visionالرؤية الحاسوبية | Interpreting images and videoتفسير الصور والفيديو | Azure OCR reading posters and product labelsخدمة OCR في Azure تقرأ الملصقات وبطاقات المنتجات | Image captioning and optical character recognition, whose output is textتوليد أوصاف الصور، والتعرف الضوئي على الحروف الذي يكون ناتجه نصاً |
| Roboticsالروبوتات | Perceiving and acting in the physical worldالإدراك والفعل في العالم المادي | SayCan mobile manipulatorالروبوت المتنقل ذو الذراع SayCan | Following natural language instructions; the robot is the language model's hands and eyesاتباع التعليمات المكتوبة بلغة طبيعية، فالروبوت هو يدا النموذج اللغوي وعيناه |
Recall
List the five AI subfields on slide 6 and say where deep learning belongs.اسرد فروع الذكاء الاصطناعي الخمسة في الشريحة 6، وبيّن أين يقع التعلم العميق.
Recall
Give one system where NLP meets computer vision and one where it meets robotics.اذكر نظاماً يلتقي فيه NLP بالرؤية الحاسوبية، وآخر يلتقي فيه بالروبوتات.
Quick checkاختبار سريع
On slide 6, which AI subfield contains deep learning as its sub-bullet?في الشريحة 6، أي فرع من فروع الذكاء الاصطناعي يضم التعلم العميق نقطةً فرعية تحته؟
Quick checkاختبار سريع
Which pairing matches a slide 6 subfield with a system where it meets NLP?أي ربط يطابق فرعاً من فروع الشريحة 6 مع نظام يلتقي فيه بـ NLP؟
Recapالخلاصة
If you remember nothing elseإن لم تتذكر شيئاً آخر فتذكّر هذا
- NLP is a branch of artificial intelligence concerned with interactions between computers and human language.NLP فرع من الذكاء الاصطناعي يُعنى بالتفاعل بين الحواسيب واللغة البشرية.
- Its goals are enabling human-machine communication, improving human-human communication, or simply doing useful processing of text or speech. Speech is inside the definition.أهدافه تمكين التواصل بين الإنسان والآلة، وتحسين التواصل بين البشر، أو مجرد إجراء معالجة مفيدة للنص أو الكلام. فالكلام داخل التعريف.
- Computational linguistics, speech and language processing and human language technology name the same field from the linguistics, speech and engineering sides.اللسانيات الحاسوبية (computational linguistics)، ومعالجة الكلام واللغة (speech and language processing)، وتقنيات اللغة البشرية (human language technology) أسماء للمجال نفسه من جهة اللسانيات وجهة الكلام وجهة الهندسة.
- NLP sits at the intersection of linguistics (levels and grammar), computer science (algorithms and data structures) and AI (learning and knowledge); slide 24 suggests mathematics is what the ellipsis hides.يقع NLP عند تقاطع اللسانيات (المستويات والنحو) وعلوم الحاسب (الخوارزميات وهياكل البيانات) والذكاء الاصطناعي (التعلم والمعرفة)، وتوحي الشريحة 24 بأن الرياضيات هي ما تخفيه علامة الحذف.
- The AI subfields on slide 6 are NLP, knowledge representation and deduction (the standard phrase is reasoning), machine learning, computer vision and robotics.فروع الذكاء الاصطناعي في الشريحة 6 هي NLP، وتمثيل المعرفة والاستنتاج (والعبارة المعيارية هي الاستدلال reasoning)، وتعلم الآلة، والرؤية الحاسوبية، والروبوتات.
- Deep learning is a sub-area of machine learning, and machine learning is both a sibling of NLP and the tool every other subfield now uses.التعلم العميق فرع داخل تعلم الآلة، وتعلم الآلة أخٌ لـ NLP وفي الوقت نفسه الأداة التي يستخدمها اليوم كل فرع آخر.
- NLP meets computer vision in captioning and OCR, robotics in instruction following, and knowledge representation in question answering over knowledge graphs.يلتقي NLP بالرؤية الحاسوبية في توليد أوصاف الصور (captioning) وفي OCR، وبالروبوتات في اتباع التعليمات، وبتمثيل المعرفة في الإجابة عن الأسئلة فوق الرسوم البيانية المعرفية (knowledge graphs).
Sourcesالمصادر
- Speech and Language Processing, 3rd edition draftBookJurafsky and MartinFree draft. Chapter 1 lists the names of the field and its links to other disciplines. Primary source for the whole lecture. The slide 25 reference says Prentice-Hall 2020; no such printed edition exists: 2020 matches a 3rd edition online draft, and the last printed edition is the 2nd (Pearson Prentice Hall, 2009).مسودة مجانية. يسرد الفصل 1 أسماء المجال وصلاته بالتخصصات الأخرى. المصدر الأساسي للمحاضرة كلها. يذكر مرجع الشريحة 25 أن الكتاب صادر عن Prentice-Hall عام 2020، ولا توجد طبعة مطبوعة كهذه: عام 2020 يوافق مسودة إلكترونية للطبعة الثالثة، وآخر طبعة مطبوعة هي الثانية (Pearson Prentice Hall، 2009).(opens in a new tab)(يفتح في تبويب جديد)
- Speech and Language Processing, 2nd edition, chapter 1BookJurafsky and Martin (Pearson Prentice Hall, 2009)Origin of the slide 4 definition, the three goals, the names of the field, the wc example, and section 1.3 on search and classifiers.أصل تعريف الشريحة 4، والأهداف الثلاثة، وأسماء المجال، ومثال wc، والقسم 1.3 عن البحث والمصنِّفات.(opens in a new tab)(يفتح في تبويب جديد)
- What is Computational Linguistics?DocsAssociation for Computational LinguisticsDefinition of computational linguistics, founded 1962 as AMTCL, renamed ACL in 1968, knowledge-based versus data-driven models.تعريف اللسانيات الحاسوبية، وتأسيس الجمعية عام 1962 باسم AMTCL ثم تغيير اسمها إلى ACL عام 1968، والنماذج القائمة على المعرفة مقابل القائمة على البيانات.(opens in a new tab)(يفتح في تبويب جديد)
- Deep Learning, chapter 1BookGoodfellow, Bengio and Courville (MIT Press, 2016)Figure 1.4: deep learning inside representation learning inside machine learning inside AI.الشكل 1.4: التعلم العميق داخل تعلم التمثيلات داخل تعلم الآلة داخل الذكاء الاصطناعي.(opens in a new tab)(يفتح في تبويب جديد)
- Artificial Intelligence: A Modern Approach, 4th edition, table of contentsBookRussell and Norvig (Pearson, 2020)Parts for knowledge and reasoning, machine learning (with a deep learning chapter), and communicating, perceiving and acting (NLP, vision, robotics).أجزاء للمعرفة والاستدلال، ولتعلم الآلة (وفيه فصل عن التعلم العميق)، وللتواصل والإدراك والفعل (NLP والرؤية والروبوتات).(opens in a new tab)(يفتح في تبويب جديد)
- Principles of Knowledge Representation and ReasoningDocsKR Inc.The standard name of the subfield the slide calls knowledge representation and deduction; conference series since 1989.الاسم المعياري للفرع الذي تسميه الشريحة تمثيل المعرفة والاستنتاج، وسلسلة مؤتمرات منذ عام 1989.(opens in a new tab)(يفتح في تبويب جديد)
- Show and Tell: A Neural Image Caption GeneratorPaperVinyals, Toshev, Bengio and Erhan, 2014Captioning as a problem that connects computer vision and NLP.توليد أوصاف الصور بوصفه مشكلة تربط الرؤية الحاسوبية بـ NLP.(opens in a new tab)(يفتح في تبويب جديد)
- Do As I Can, Not As I Say: Grounding Language in Robotic AffordancesPaperAhn et al., 2022A robot following natural language instructions as the language model's hands and eyes.روبوت يتبع تعليمات بلغة طبيعية بوصفه يدَي النموذج اللغوي وعينيه.(opens in a new tab)(يفتح في تبويب جديد)
- OCR, Optical Character RecognitionDocsMicrosoft LearnOCR extracts printed and handwritten text from images such as posters and street signs.يستخرج OCR النص المطبوع والمكتوب بخط اليد من صور مثل الملصقات ولافتات الشوارع.(opens in a new tab)(يفتح في تبويب جديد)
- Introducing the Knowledge Graph: things, not stringsArticleGoogle, 2012Entities and relationships; the Taj Mahal disambiguation.الكيانات والعلاقات، والتمييز بين معاني Taj Mahal.(opens in a new tab)(يفتح في تبويب جديد)
- Understanding searches better than ever beforeArticleGoogle, 2019Search is about understanding language; BERT helps one in ten searches in the U.S. in English.البحث يدور حول فهم اللغة، و BERT يساعد في عملية بحث واحدة من كل عشر عمليات باللغة الإنجليزية في الولايات المتحدة.(opens in a new tab)(يفتح في تبويب جديد)
- Google Translate adds 110 new languagesArticleGoogle, 2024Type, say, handwrite or point the camera; over 240 languages after the 2024 expansion.اكتب، أو تحدث، أو اكتب بخط اليد، أو وجّه الكاميرا، وأكثر من 240 لغة بعد توسعة 2024.(opens in a new tab)(يفتح في تبويب جديد)
- SiriDocsAppleType or talk naturally, back-and-forth conversation.اكتب أو تحدث بشكل طبيعي، في محادثة متبادلة.(opens in a new tab)(يفتح في تبويب جديد)
- What is the Alexa Skills KitDocsAmazonAlexa handles speech recognition and natural language processing in the cloud.تتولى Alexa التعرف على الكلام ومعالجة اللغة الطبيعية في السحابة.(opens in a new tab)(يفتح في تبويب جديد)
- Microsoft TranslatorDocsMicrosoftConversations, documents and street signs, also offline.المحادثات والمستندات ولافتات الشوارع، ودون اتصال بالإنترنت أيضاً.(opens in a new tab)(يفتح في تبويب جديد)
- No Language Left Behind: Scaling Human-Centered Machine TranslationPaperNLLB Team, Meta AI, 2022Machine translation across 200 languages as a key focus of AI research.الترجمة الآلية عبر 200 لغة بوصفها محوراً رئيسياً في أبحاث الذكاء الاصطناعي.(opens in a new tab)(يفتح في تبويب جديد)
- How Grammarly worksDocsGrammarlyAlgorithms that learn the patterns of good writing from millions of sentences.خوارزميات تتعلم أنماط الكتابة الجيدة من ملايين الجمل.(opens in a new tab)(يفتح في تبويب جديد)
- Report spam in GmailDocsGoogleAs you report more spam, Gmail identifies similar emails as spam more efficiently.كلما أبلغت عن مزيد من الرسائل المزعجة، صار Gmail أكفأ في تمييز الرسائل المشابهة على أنها مزعجة.(opens in a new tab)(يفتح في تبويب جديد)
- Twitter has officially changed its logo to XArticleTechCrunch, 2023For the dated bird logo on slide 2.لشعار الطائر القديم في الشريحة 2.(opens in a new tab)(يفتح في تبويب جديد)