From 668552e1a9b69fbf3ff84e2e604b3cd051003d7d Mon Sep 17 00:00:00 2001 From: "localizeflow[bot]" Date: Sat, 28 Feb 2026 09:16:14 +0000 Subject: [PATCH] chore(i18n): sync translations with latest source changes (chunk 1/1, 9 changes) --- translations/he/.co-op-translator.json | 10 +- translations/he/README.md | 243 ++-- .../lessons/2-Symbolic/MSConceptGraph.ipynb | 1065 ++++++++--------- translations/id/.co-op-translator.json | 10 +- translations/id/README.md | 127 +- .../lessons/2-Symbolic/MSConceptGraph.ipynb | 1064 ++++++++-------- translations/vi/.co-op-translator.json | 10 +- translations/vi/README.md | 255 ++-- .../lessons/2-Symbolic/MSConceptGraph.ipynb | 1065 ++++++++--------- 9 files changed, 1937 insertions(+), 1912 deletions(-) diff --git a/translations/he/.co-op-translator.json b/translations/he/.co-op-translator.json index a7ae255a..71b1f085 100644 --- a/translations/he/.co-op-translator.json +++ b/translations/he/.co-op-translator.json @@ -6,8 +6,8 @@ "language_code": "he" }, "README.md": { - "original_hash": "75fe3383afc51eaa84b82ace619ffea7", - "translation_date": "2026-02-06T08:36:12+00:00", + "original_hash": "9eaca839b0b3f6d7f0a195fd33cebd30", + "translation_date": "2026-02-28T09:13:03+00:00", "source_file": "README.md", "language_code": "he" }, @@ -89,6 +89,12 @@ "source_file": "lessons/1-Intro/assignment.md", "language_code": "he" }, + "lessons/2-Symbolic/MSConceptGraph.ipynb": { + "original_hash": "e5690bbc6e5119a96a8172ec7261db67", + "translation_date": "2026-02-28T09:11:16+00:00", + "source_file": "lessons/2-Symbolic/MSConceptGraph.ipynb", + "language_code": "he" + }, "lessons/2-Symbolic/README.md": { "original_hash": "f9f06b266b8b2bfc6b8792ff2bb1bea4", "translation_date": "2026-01-16T03:35:15+00:00", diff --git a/translations/he/README.md b/translations/he/README.md index cae03cc1..7c2f10b7 100644 --- a/translations/he/README.md +++ b/translations/he/README.md @@ -12,212 +12,221 @@ [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) -# בינה מלאכותית למתחילים - תוכנית לימודים +# אינטליגנציה מלאכותית למתחילים - תוכנית לימודים |![Sketchnote by @girlie_mac https://twitter.com/girlie_mac](https://github.com/microsoft/AI-For-Beginners/raw/main/lessons/sketchnotes/ai-overview.png)| |:---:| -| AI למתחילים - _מצב סכמתילי על ידי [@girlie_mac](https://twitter.com/girlie_mac)_ | +| אינטליגנציה מלאכותית למתחילים - _סקצ׳נוט מאת [@girlie_mac](https://twitter.com/girlie_mac)_ | -חקור את עולם ה-**בינה מלאכותית** (AI) עם תוכנית הלימודים שלנו בת 12 שבועות ו-24 שיעורים! כוללת שיעורים מעשיים, חידונים, ומעבדות. התוכנית ידידותית למתחילים ומכסה כלים כמו TensorFlow ו-PyTorch, וגם אתיקה בבינה מלאכותית. +חקור את עולמו של **האינטליגנציה המלאכותית** (AI) עם תוכנית הלימודים שלנו המורכבת מ-12 שבועות ו-24 שיעורים! היא כוללת שיעורים מעשיים, חידונים ומעבדות. התוכנית ידידותית למתחילים ומכסה כלי עבודה כמו TensorFlow ו-PyTorch, וכן אתיקה ב-AI ### 🌐 תמיכה בריבוי שפות -#### נתמך באמצעות פעולה ב-GitHub (אוטומטי ותמיד מעודכן) +#### נתמכת באמצעות GitHub Action (אוטומטית ותמיד מעודכנת) [Arabic](../ar/README.md) | [Bengali](../bn/README.md) | [Bulgarian](../bg/README.md) | [Burmese (Myanmar)](../my/README.md) | [Chinese (Simplified)](../zh-CN/README.md) | [Chinese (Traditional, Hong Kong)](../zh-HK/README.md) | [Chinese (Traditional, Macau)](../zh-MO/README.md) | [Chinese (Traditional, Taiwan)](../zh-TW/README.md) | [Croatian](../hr/README.md) | [Czech](../cs/README.md) | [Danish](../da/README.md) | [Dutch](../nl/README.md) | [Estonian](../et/README.md) | [Finnish](../fi/README.md) | [French](../fr/README.md) | [German](../de/README.md) | [Greek](../el/README.md) | [Hebrew](./README.md) | [Hindi](../hi/README.md) | [Hungarian](../hu/README.md) | [Indonesian](../id/README.md) | [Italian](../it/README.md) | [Japanese](../ja/README.md) | [Kannada](../kn/README.md) | [Korean](../ko/README.md) | [Lithuanian](../lt/README.md) | [Malay](../ms/README.md) | [Malayalam](../ml/README.md) | [Marathi](../mr/README.md) | [Nepali](../ne/README.md) | [Nigerian Pidgin](../pcm/README.md) | [Norwegian](../no/README.md) | [Persian (Farsi)](../fa/README.md) | [Polish](../pl/README.md) | [Portuguese (Brazil)](../pt-BR/README.md) | [Portuguese (Portugal)](../pt-PT/README.md) | [Punjabi (Gurmukhi)](../pa/README.md) | [Romanian](../ro/README.md) | [Russian](../ru/README.md) | [Serbian (Cyrillic)](../sr/README.md) | [Slovak](../sk/README.md) | [Slovenian](../sl/README.md) | [Spanish](../es/README.md) | [Swahili](../sw/README.md) | [Swedish](../sv/README.md) | [Tagalog (Filipino)](../tl/README.md) | [Tamil](../ta/README.md) | [Telugu](../te/README.md) | [Thai](../th/README.md) | [Turkish](../tr/README.md) | [Ukrainian](../uk/README.md) | [Urdu](../ur/README.md) | [Vietnamese](../vi/README.md) -> **מעוניינים לשכפל מקומית?** - -> מאגר זה כולל מעל 50 תרגומים, מה שמגדיל משמעותית את גודל ההורדה. לשכפל ללא תרגומים, השתמשו ב-sparse checkout: +> **מעדיפים לשכפל מקומית?** +> +> מאגר מידע זה כולל מעל 50 תרגומים בשפות שונות, מה שמגדיל משמעותית את גודל ההורדה. כדי לשכפל ללא תרגומים, השתמשו בביקורת ספסרית (sparse checkout): +> +> **Bash / macOS / Linux:** > ```bash > git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git > cd AI-For-Beginners > git sparse-checkout set --no-cone '/*' '!translations' '!translated_images' > ``` -> זה נותן לכם כל מה שצריך להשלים את הקורס במהירות הורדה גבוהה יותר. +> +> **CMD (Windows):** +> ```cmd +> git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git +> cd AI-For-Beginners +> git sparse-checkout set --no-cone "/*" "!translations" "!translated_images" +> ``` +> +> זה נותן לכם את כל מה שצריך כדי להשלים את הקורס במהירות הורדה גבוהה יותר. -**אם תרצו לתמוך בשפות נוספות, הרשימה נמצאת [כאן](https://github.com/Azure/co-op-translator/blob/main/getting_started/supported-languages.md)** +**אם תרצו שיתמכו בשפות תרגום נוספות, רשימת השפות הנתמכות מופיעה [כאן](https://github.com/Azure/co-op-translator/blob/main/getting_started/supported-languages.md)** ## הצטרפו לקהילה [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) ## מה תלמדו -**[מפת מחשבות של הקורס](http://soshnikov.com/courses/ai-for-beginners/mindmap.html)** +**[מפת חשיבה של הקורס](http://soshnikov.com/courses/ai-for-beginners/mindmap.html)** -בתוכנית זו תלמדו: +בתוכנית הלימודים הזו תלמדו: -* גישות שונות לבינה מלאכותית, כולל הגישה הסמנטית ה"ישנה והטובה" עם **ייצוג ידע** והסקת מסקנות ([GOFAI](https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence)). -* **רשתות עצביות** ו**למידה עמוקה**, שהן ביסוד הבינה המלאכותית המודרנית. נמחיש את המושגים מאחורי נושאים חשובים אלו באמצעות קוד בשתי המסגרות הפופולריות ביותר - [TensorFlow](http://Tensorflow.org) ו-[PyTorch](http://pytorch.org). -* **ארכיטקטורות עצביות** לעבודה עם תמונות וטקסט. נכסה מודלים עדכניים אך ייתכן שיהיו חסרים קצת מעמדות-האומנות. -* גישות פחות פופולריות בבינה מלאכותית, כגון **אלגוריתמים גנטיים** ו**מערכות רב-סוכניות**. +* גישות שונות לאינטליגנציה מלאכותית, כולל הגישה הסימבולית "הטובה הישנה" עם **ייצוג ידע** וניתוח ([GOFAI](https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence)). +* **רשתות עצביות** ו**למידה עמוקה**, שהן בליבת ה-AI המודרני. נמחיש את המושגים מאחורי הנושאים החשובים הללו באמצעות קוד בשתי המסגרות הפופולריות ביותר - [TensorFlow](http://Tensorflow.org) ו-[PyTorch](http://pytorch.org). +* **ארכיטקטורות עצביות** לעבודה עם תמונות וטקסט. נסקור מודלים עדכניים אך ייתכן שהסקירה שלנו תהיה מעט חסרה ביחס למצב האמנות. +* גישות AI פחות פופולריות, כגון **אלגוריתמים גנטיים** ו**מערכות רב-סוכנים**. -מה לא נעסוק בתוכנית זו: +מה לא נכלול בתוכנית הלימודים הזו: > [מצאו את כל המשאבים הנוספים לקורס זה באוסף Microsoft Learn שלנו](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) -* מקרי עסקים של שימוש ב-**בינה מלאכותית בעסקים**. מומלץ לקחת את מסלול הלמידה [מבוא לבינה מלאכותית למשתמשי עסקים](https://docs.microsoft.com/learn/paths/introduction-ai-for-business-users/?WT.mc_id=academic-77998-bethanycheum) ב-Microsoft Learn, או את [בית הספר לעסקים בינה מלאכותית](https://www.microsoft.com/ai/ai-business-school/?WT.mc_id=academic-77998-bethanycheum), שפותח בשיתוף עם [INSEAD](https://www.insead.edu/). -* **למידת מכונה קלאסית**, המתוארת היטב בתוכנית הלימודים שלנו [למידת מכונה למתחילים](http://github.com/Microsoft/ML-for-Beginners). -* יישומי AI מעשיים שנבנו באמצעות **[שירותי קוגניציה](https://azure.microsoft.com/services/cognitive-services/?WT.mc_id=academic-77998-bethanycheum)**. לשם כך, מומלץ להתחיל במודולים של Microsoft Learn עבור [ראייה ממוחשבת](https://docs.microsoft.com/learn/paths/create-computer-vision-solutions-azure-cognitive-services/?WT.mc_id=academic-77998-bethanycheum), [עיבוד שפה טבעית](https://docs.microsoft.com/learn/paths/explore-natural-language-processing/?WT.mc_id=academic-77998-bethanycheum), **[AI גנרטיבי עם Azure OpenAI Service](https://learn.microsoft.com/en-us/training/paths/develop-ai-solutions-azure-openai/?WT.mc_id=academic-77998-bethanycheum)** ואחרים. -* **מסגרות ענן ספציפיות ללמידת מכונה**, כגון [Azure Machine Learning](https://azure.microsoft.com/services/machine-learning/?WT.mc_id=academic-77998-bethanycheum), [Microsoft Fabric](https://learn.microsoft.com/en-us/training/paths/get-started-fabric/?WT.mc_id=academic-77998-bethanycheum), או [Azure Databricks](https://docs.microsoft.com/learn/paths/data-engineer-azure-databricks?WT.mc_id=academic-77998-bethanycheum). מומלץ להשתמש במסלולי הלמידה [בניית והפעלת פתרונות למידת מכונה עם Azure Machine Learning](https://docs.microsoft.com/learn/paths/build-ai-solutions-with-azure-ml-service/?WT.mc_id=academic-77998-bethanycheum) ו-[בניית והפעלת פתרונות למידת מכונה עם Azure Databricks](https://docs.microsoft.com/learn/paths/build-operate-machine-learning-solutions-azure-databricks/?WT.mc_id=academic-77998-bethanycheum). -* **בינה מלאכותית שיחית** ו**בוטים לשיחה**. ישנם מסלול למידה נפרד [יצירת פתרונות בינה מלאכותית שיחית](https://docs.microsoft.com/learn/paths/create-conversational-ai-solutions/?WT.mc_id=academic-77998-bethanycheum), וניתן גם לעיין ב-[פוסט בלוג זה](https://soshnikov.com/azure/hello-bot-conversational-ai-on-microsoft-platform/) לפרטים נוספים. -* **מתמטיקה עמוקה** מאחורי למידה עמוקה. לשם כך, אנו ממליצים על [Deep Learning](https://www.amazon.com/Deep-Learning-Adaptive-Computation-Machine/dp/0262035618) מאת Ian Goodfellow, Yoshua Bengio ו-Aaron Courville, שגם זמין באינטרנט ב-[https://www.deeplearningbook.org/](https://www.deeplearningbook.org/). +* מקרים עסקיים של שימוש ב**AI בעסקים**. מומלץ לשקול לקחת את מסלול הלמידה [מבוא ל-AI למשתמשי עסקים](https://docs.microsoft.com/learn/paths/introduction-ai-for-business-users/?WT.mc_id=academic-77998-bethanycheum) ב-Microsoft Learn, או את [בית הספר לעסקים של AI](https://www.microsoft.com/ai/ai-business-school/?WT.mc_id=academic-77998-bethanycheum), שפותח בשיתוף עם [INSEAD](https://www.insead.edu/). +* **למידת מכונה קלאסית**, שמתוארת היטב בתוכנית הלימודים שלנו [למידת מכונה למתחילים](http://github.com/Microsoft/ML-for-Beginners). +* יישומי AI מעשיים שנבנו באמצעות **[שירותי קוגניציה](https://azure.microsoft.com/services/cognitive-services/?WT.mc_id=academic-77998-bethanycheum)**. לצורך זה, אנו ממליצים להתחיל עם המודולים של Microsoft Learn עבור [ראייה](https://docs.microsoft.com/learn/paths/create-computer-vision-solutions-azure-cognitive-services/?WT.mc_id=academic-77998-bethanycheum), [עיבוד שפה טבעית](https://docs.microsoft.com/learn/paths/explore-natural-language-processing/?WT.mc_id=academic-77998-bethanycheum), **[AI גנרטיבי עם Azure OpenAI Service](https://learn.microsoft.com/en-us/training/paths/develop-ai-solutions-azure-openai/?WT.mc_id=academic-77998-bethanycheum)** ואחרים. +* **מסגרות לענן ספציפיות ללמידת מכונה**, כגון [Azure Machine Learning](https://azure.microsoft.com/services/machine-learning/?WT.mc_id=academic-77998-bethanycheum), [Microsoft Fabric](https://learn.microsoft.com/en-us/training/paths/get-started-fabric/?WT.mc_id=academic-77998-bethanycheum), או [Azure Databricks](https://docs.microsoft.com/learn/paths/data-engineer-azure-databricks?WT.mc_id=academic-77998-bethanycheum). מומלץ להשתמש במסלולי הלמידה [בניית והפעלת פתרונות למידת מכונה עם Azure Machine Learning](https://docs.microsoft.com/learn/paths/build-ai-solutions-with-azure-ml-service/?WT.mc_id=academic-77998-bethanycheum) ו-[בניית והפעלת פתרונות למידת מכונה עם Azure Databricks](https://docs.microsoft.com/learn/paths/build-operate-machine-learning-solutions-azure-databricks/?WT.mc_id=academic-77998-bethanycheum). +* **AI שיחתי** ו**בוטים שיחתיים**. יש מסלול למידה נפרד [יצירת פתרונות AI שיחתי](https://docs.microsoft.com/learn/paths/create-conversational-ai-solutions/?WT.mc_id=academic-77998-bethanycheum), וניתן גם לעיין ב[פוסט בלוג זה](https://soshnikov.com/azure/hello-bot-conversational-ai-on-microsoft-platform/) לפרטים נוספים. +* **מתמטיקה עמוקה** מאחורי למידה עמוקה. לשם כך, אנו ממליצים על הספר [Deep Learning](https://www.amazon.com/Deep-Learning-Adaptive-Computation-Machine/dp/0262035618) מאת Ian Goodfellow, Yoshua Bengio ו-Aaron Courville, הזמין גם באינטרנט ב-[https://www.deeplearningbook.org/](https://www.deeplearningbook.org/). -להיכרות קלה עם נושאי _AI בענן_ מומלץ לקחת את מסלול הלמידה [התחילו עם בינה מלאכותית ב-Azure](https://docs.microsoft.com/learn/paths/get-started-with-artificial-intelligence-on-azure/?WT.mc_id=academic-77998-bethanycheum). +לקבלת מבוא רך לנושאי _AI בענן_ אפשר לשקול לקחת את מסלול הלמידה [התחילו עם אינטליגנציה מלאכותית על Azure](https://docs.microsoft.com/learn/paths/get-started-with-artificial-intelligence-on-azure/?WT.mc_id=academic-77998-bethanycheum). # תוכן | | Lesson Link | PyTorch/Keras/TensorFlow | Lab | | :-: | :------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------ | | 0 | [הגדרת הקורס](./lessons/0-course-setup/setup.md) | [הגדרת סביבת הפיתוח שלך](./lessons/0-course-setup/how-to-run.md) | | -| I | [**מבוא לבינה מלאכותית**](./lessons/1-Intro/README.md) | | | -| 01 | [מבוא והיסטוריה של בינה מלאכותית](./lessons/1-Intro/README.md) | - | - | -| II | **בינה מלאכותית סמנטית** | +| I | [**מבוא לאינטליגנציה מלאכותית**](./lessons/1-Intro/README.md) | | | +| 01 | [מבוא והיסטוריה של AI](./lessons/1-Intro/README.md) | - | - | +| II | **אינטליגנציה מלאכותית סימבולית** | | 02 | [ייצוג ידע ומערכות מומחים](./lessons/2-Symbolic/README.md) | [מערכות מומחים](./lessons/2-Symbolic/Animals.ipynb) / [אונטולוגיה](./lessons/2-Symbolic/FamilyOntology.ipynb) /[גרף מושגים](./lessons/2-Symbolic/MSConceptGraph.ipynb) | | | III | [**מבוא לרשתות עצביות**](./lessons/3-NeuralNetworks/README.md) ||| -| 03 | [פרצפטורון](./lessons/3-NeuralNetworks/03-Perceptron/README.md) | [מחברת](./lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb) | [מעבדה](./lessons/3-NeuralNetworks/03-Perceptron/lab/README.md) | -| 04 | [פרצפטורון רב-שכבתי ויצירת מסגרת העבודה שלנו](./lessons/3-NeuralNetworks/04-OwnFramework/README.md) | [מחברת](./lessons/3-NeuralNetworks/04-OwnFramework/OwnFramework.ipynb) | [מעבדה](./lessons/3-NeuralNetworks/04-OwnFramework/lab/README.md) | -| 05 | [מבוא למסגרות עבודה (PyTorch/TensorFlow) ולהתאמת יתר](./lessons/3-NeuralNetworks/05-Frameworks/README.md) | [PyTorch](./lessons/3-NeuralNetworks/05-Frameworks/IntroPyTorch.ipynb) / [Keras](./lessons/3-NeuralNetworks/05-Frameworks/IntroKeras.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [מעבדה](./lessons/3-NeuralNetworks/05-Frameworks/lab/README.md) | -| IV | [**ראייה ממוחשבת**](./lessons/4-ComputerVision/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-computer-vision-pytorch/?WT.mc_id=academic-77998-cacaste) / [TensorFlow](https://docs.microsoft.com/learn/modules/intro-computer-vision-TensorFlow/?WT.mc_id=academic-77998-cacaste)| [חקור ראייה ממוחשבת ב-Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) | -| 06 | [מבוא לראייה ממוחשבת. OpenCV](./lessons/4-ComputerVision/06-IntroCV/README.md) | [מחברת](./lessons/4-ComputerVision/06-IntroCV/OpenCV.ipynb) | [מעבדה](./lessons/4-ComputerVision/06-IntroCV/lab/README.md) | -| 07 | [רשתות עצביות קונבולוציוניות](./lessons/4-ComputerVision/07-ConvNets/README.md) & [ארכיטקטורות CNN](./lessons/4-ComputerVision/07-ConvNets/CNN_Architectures.md) | [PyTorch](./lessons/4-ComputerVision/07-ConvNets/ConvNetsPyTorch.ipynb) /[TensorFlow](./lessons/4-ComputerVision/07-ConvNets/ConvNetsTF.ipynb) | [מעבדה](./lessons/4-ComputerVision/07-ConvNets/lab/README.md) | -| 08 | [רשתות מאומנות מראש ולמידת העברה](./lessons/4-ComputerVision/08-TransferLearning/README.md) ו[טכניקות אימון](./lessons/4-ComputerVision/08-TransferLearning/TrainingTricks.md) | [PyTorch](./lessons/4-ComputerVision/08-TransferLearning/TransferLearningPyTorch.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [מעבדה](./lessons/4-ComputerVision/08-TransferLearning/lab/README.md) | -| 09 | [אוטואנקודרים ו-VAEs](./lessons/4-ComputerVision/09-Autoencoders/README.md) | [PyTorch](./lessons/4-ComputerVision/09-Autoencoders/AutoEncodersPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/09-Autoencoders/AutoencodersTF.ipynb) | | -| 10 | [רשתות מתחרות מחוללות (GANs) והעברת סגנון אמנותי](./lessons/4-ComputerVision/10-GANs/README.md) | [PyTorch](./lessons/4-ComputerVision/10-GANs/GANPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/10-GANs/GANTF.ipynb) | | -| 11 | [זיהוי עצמים](./lessons/4-ComputerVision/11-ObjectDetection/README.md) | [TensorFlow](./lessons/4-ComputerVision/11-ObjectDetection/ObjectDetection.ipynb) | [מעבדה](./lessons/4-ComputerVision/11-ObjectDetection/lab/README.md) | +| 03 | [פרסטרון](./lessons/3-NeuralNetworks/03-Perceptron/README.md) | [מחברת](./lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb) | [מעבדה](./lessons/3-NeuralNetworks/03-Perceptron/lab/README.md) | +| 04 | [פרסטרון רב-שכבתי ויצירת המסגרת שלנו](./lessons/3-NeuralNetworks/04-OwnFramework/README.md) | [מחברת](./lessons/3-NeuralNetworks/04-OwnFramework/OwnFramework.ipynb) | [מעבדה](./lessons/3-NeuralNetworks/04-OwnFramework/lab/README.md) | +| 05 | [מבוא למסגרות (PyTorch/TensorFlow) ולהתאמה-יתר](./lessons/3-NeuralNetworks/05-Frameworks/README.md) | [PyTorch](./lessons/3-NeuralNetworks/05-Frameworks/IntroPyTorch.ipynb) / [Keras](./lessons/3-NeuralNetworks/05-Frameworks/IntroKeras.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [מעבדה](./lessons/3-NeuralNetworks/05-Frameworks/lab/README.md) | +| IV | [**חזון ממוחשב**](./lessons/4-ComputerVision/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-computer-vision-pytorch/?WT.mc_id=academic-77998-cacaste) / [TensorFlow](https://docs.microsoft.com/learn/modules/intro-computer-vision-TensorFlow/?WT.mc_id=academic-77998-cacaste)| [חקור חזון ממוחשב ב-Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) | +| 06 | [מבוא לחזון ממוחשב. OpenCV](./lessons/4-ComputerVision/06-IntroCV/README.md) | [מחברת](./lessons/4-ComputerVision/06-IntroCV/OpenCV.ipynb) | [מעבדה](./lessons/4-ComputerVision/06-IntroCV/lab/README.md) | +| 07 | [רשתות עצביות קונבולוציה](./lessons/4-ComputerVision/07-ConvNets/README.md) & [ארכיטקטורות CNN](./lessons/4-ComputerVision/07-ConvNets/CNN_Architectures.md) | [PyTorch](./lessons/4-ComputerVision/07-ConvNets/ConvNetsPyTorch.ipynb) /[TensorFlow](./lessons/4-ComputerVision/07-ConvNets/ConvNetsTF.ipynb) | [מעבדה](./lessons/4-ComputerVision/07-ConvNets/lab/README.md) | +| 08 | [רשתות מאומנות מראש ולמידת העברה](./lessons/4-ComputerVision/08-TransferLearning/README.md) ו[טריקים לאימון](./lessons/4-ComputerVision/08-TransferLearning/TrainingTricks.md) | [PyTorch](./lessons/4-ComputerVision/08-TransferLearning/TransferLearningPyTorch.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [מעבדה](./lessons/4-ComputerVision/08-TransferLearning/lab/README.md) | +| 09 | [קידוד אוטומטי ו-VAEs](./lessons/4-ComputerVision/09-Autoencoders/README.md) | [PyTorch](./lessons/4-ComputerVision/09-Autoencoders/AutoEncodersPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/09-Autoencoders/AutoencodersTF.ipynb) | | +| 10 | [רשתות GAN והעברת סגנון אומנותי](./lessons/4-ComputerVision/10-GANs/README.md) | [PyTorch](./lessons/4-ComputerVision/10-GANs/GANPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/10-GANs/GANTF.ipynb) | | +| 11 | [זיהוי אובייקטים](./lessons/4-ComputerVision/11-ObjectDetection/README.md) | [TensorFlow](./lessons/4-ComputerVision/11-ObjectDetection/ObjectDetection.ipynb) | [מעבדה](./lessons/4-ComputerVision/11-ObjectDetection/lab/README.md) | | 12 | [סגמנטציה סמנטית. U-Net](./lessons/4-ComputerVision/12-Segmentation/README.md) | [PyTorch](./lessons/4-ComputerVision/12-Segmentation/SemanticSegmentationPytorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/12-Segmentation/SemanticSegmentationTF.ipynb) | | | V | [**עיבוד שפה טבעית**](./lessons/5-NLP/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-pytorch/?WT.mc_id=academic-77998-cacaste) /[TensorFlow](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-TensorFlow/?WT.mc_id=academic-77998-cacaste) | [חקור עיבוד שפה טבעית ב-Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum)| | 13 | [ייצוג טקסט. Bow/TF-IDF](./lessons/5-NLP/13-TextRep/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/13-TextRep/TextRepresentationPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/13-TextRep/TextRepresentationTF.ipynb) | | | 14 | [הטמעות מילים סמנטיות. Word2Vec ו-GloVe](./lessons/5-NLP/14-Embeddings/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsTF.ipynb) | | -| 15 | [דגמי שפה. אימון הטמעות משלך](./lessons/5-NLP/15-LanguageModeling/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-PyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-TF.ipynb) | [מעבדה](./lessons/5-NLP/15-LanguageModeling/lab/README.md) | +| 15 | [מודלי שפה. אימון הטמעות משלך](./lessons/5-NLP/15-LanguageModeling/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-PyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-TF.ipynb) | [מעבדה](./lessons/5-NLP/15-LanguageModeling/lab/README.md) | | 16 | [רשתות עצביות חוזרות](./lessons/5-NLP/16-RNN/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNTF.ipynb) | | -| 17 | [רשתות חוזרות מחוללות](./lessons/5-NLP/17-GenerativeNetworks/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativePyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativeTF.ipynb) | [מעבדה](./lessons/5-NLP/17-GenerativeNetworks/lab/README.md) | +| 17 | [רשתות חוזרות גנרטיביות](./lessons/5-NLP/17-GenerativeNetworks/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativePyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativeTF.ipynb) | [מעבדה](./lessons/5-NLP/17-GenerativeNetworks/lab/README.md) | | 18 | [טרנספורמרים. BERT.](./lessons/5-NLP/18-Transformers/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/18-Transformers/TransformersPyTorch.ipynb) /[TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/18-Transformers/TransformersTF.ipynb) | | -| 19 | [זיהוי ישויות בשם](./lessons/5-NLP/19-NER/README.md) | [TensorFlow](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/19-NER/NER-TF.ipynb) | [מעבדה](./lessons/5-NLP/19-NER/lab/README.md) | -| 20 | [דגמי שפה גדולים, תכנות פרומפט ומשימות עם דוגמות מעטות](./lessons/5-NLP/20-LangModels/README.md) | [PyTorch](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/20-LangModels/GPT-PyTorch.ipynb) | | -| VI | **טכניקות AI אחרות** || | +| 19 | [זיהוי ישויות שמיות](./lessons/5-NLP/19-NER/README.md) | [TensorFlow](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/19-NER/NER-TF.ipynb) | [מעבדה](./lessons/5-NLP/19-NER/lab/README.md) | +| 20 | [מודלי שפה גדולים, תכנות פקודות ומשימות עם מעט דוגמאות](./lessons/5-NLP/20-LangModels/README.md) | [PyTorch](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/20-LangModels/GPT-PyTorch.ipynb) | | +| VI | **שיטות נוספות של בינה מלאכותית** || | | 21 | [אלגוריתמים גנטיים](./lessons/6-Other/21-GeneticAlgorithms/README.md) | [מחברת](./lessons/6-Other/21-GeneticAlgorithms/Genetic.ipynb) | | -| 22 | [למידה מחזקת עמוקה](./lessons/6-Other/22-DeepRL/README.md) | [PyTorch](./lessons/6-Other/22-DeepRL/CartPole-RL-PyTorch.ipynb) /[TensorFlow](./lessons/6-Other/22-DeepRL/CartPole-RL-TF.ipynb) | [מעבדה](./lessons/6-Other/22-DeepRL/lab/README.md) | +| 22 | [למידת חיזוק עמוקה](./lessons/6-Other/22-DeepRL/README.md) | [PyTorch](./lessons/6-Other/22-DeepRL/CartPole-RL-PyTorch.ipynb) /[TensorFlow](./lessons/6-Other/22-DeepRL/CartPole-RL-TF.ipynb) | [מעבדה](./lessons/6-Other/22-DeepRL/lab/README.md) | | 23 | [מערכות רב-סוכנים](./lessons/6-Other/23-MultiagentSystems/README.md) | | | -| VII | **אתיקה בינה מלאכותית** | | | -| 24 | [אתיקה של AI ובינה מלאכותית אחראית](./lessons/7-Ethics/README.md) | [Microsoft Learn: עקרונות AI אחראית](https://docs.microsoft.com/learn/paths/responsible-ai-business-principles/?WT.mc_id=academic-77998-cacaste) | | +| VII | **אתיקה בבינה מלאכותית** | | | +| 24 | [אתיקה בבינה מלאכותית ובינה מלאכותית אחראית](./lessons/7-Ethics/README.md) | [Microsoft Learn: עקרונות בינה מלאכותית אחראית](https://docs.microsoft.com/learn/paths/responsible-ai-business-principles/?WT.mc_id=academic-77998-cacaste) | | | IX | **תוספות** | | | -| 25 | [רשתות רב-מודליות, CLIP ו-VQGAN](./lessons/X-Extras/X1-MultiModal/README.md) | [מחברת](./lessons/X-Extras/X1-MultiModal/Clip.ipynb) | | +| 25 | [רשתות מולטימודל, CLIP ו-VQGAN](./lessons/X-Extras/X1-MultiModal/README.md) | [מחברת](./lessons/X-Extras/X1-MultiModal/Clip.ipynb) | | -## כל שיעור כולל - -* חומר לקריאה מקדימה -* מחברות Jupyter ניתנות להרצה, שלעיתים מוקדשות למסגרת עבודה מסוימת (**PyTorch** או **TensorFlow**). המחברת הניתנת להרצה כוללת גם חומר תיאורטי רב, לכן כדי להבין את הנושא יש לעבור לפחות על גרסה אחת של המחברת (בין אם PyTorch או TensorFlow). -* **מעבדות** זמינות לחלק מנושאים, המאפשרות לך לנסות ליישם את החומר שלמדת על בעיה ספציפית. -* חלק מהסעיפים כוללים קישורים למודולים של [**MS Learn**](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) המכסים נושאים קשורים. +## כל שיעור מכיל +* חומר לקריאה מוקדמת +* מחברות Jupyter ניתנות להרצה, שלרוב מותאמות לסביבת העבודה (**PyTorch** או **TensorFlow**). המחברת הניתנת להרצה מכילה גם חומר תיאורטי רב, ולכן להבנת הנושא יש לעבור לפחות על גרסה אחת של המחברת (או PyTorch או TensorFlow). +* **מעבדות** זמינות בחלק מהנושאים, שמאפשרות לך לנסות ליישם את החומר שלמדת על בעיה ספציפית. +* חלק מהקטעים כוללים קישורים ל[**MS Learn**](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) למודולים אשר עוסקים בנושאים קשורים. ## התחלה -### 🎯 חדש ב-AI? התחל כאן! +### 🎯 חדש לבינה מלאכותית? התחל כאן! -אם אתה חדש לגמרי ב-AI ורוצה דוגמאות מהירות ומעשיות, בדוק את [**דוגמאות למתחילים**](./examples/README.md)! הן כוללות: +אם אתה חדש לחלוטין בבינה מלאכותית ורוצה דוגמאות מהירות עם יישום מעשי, בדוק את [**דוגמאות ידידותיות למתחילים**](./examples/README.md)! הן כוללות: -- 🌟 **שלום עולם בינה מלאכותית** - התוכנית הראשונה שלך ב-AI (זיהוי דפוסים) -- 🧠 **רשת עצבית פשוטה** - בניית רשת עצבית מאפס -- 🖼️ **מסווג תמונות** - לסווג תמונות עם הערות מפורטות -- 💬 **סנטימנט טקסט** - לנתח טקסט חיובי/שלילי +- 🌟 **שלום עולם AI** - התוכנית הראשונה שלך בבינה מלאכותית (זיהוי דפוסים) +- 🧠 **רשת נוירונים פשוטה** - בניית רשת עצבית מאפס +- 🖼️ **מסווג תמונות** - סיווג תמונות עם הסברים מפורטים +- 💬 **סנטימנט של טקסט** - ניתוח טקסט חיובי/שלילי -הדוגמאות האלה מיועדות לעזור לך להבין מושגי AI לפני שתקפוץ לתוך תוכנית הלימודים המלאה. +דוגמאות אלה נועדו לעזור לך להבין מושגים בבינה מלאכותית לפני שתצלול לתוכן הקורס המלא. -### 📚 התקנת תוכנית הלימודים המלאה +### 📚 הגדרת תכנית הלימודים המלאה -- יצרנו [שיעור התקנה](./lessons/0-course-setup/setup.md) שיסייע לך בהגדרת סביבת הפיתוח שלך. - למורים יצרנו גם [שיעור התקנת תוכנית לימודים](./lessons/0-course-setup/for-teachers.md)! -- איך [להריץ את הקוד ב-VSCode או Codespace](./lessons/0-course-setup/how-to-run.md) +- יצרנו [שיעור הגדרה](./lessons/0-course-setup/setup.md) שיעזור לך להקים את סביבת הפיתוח שלך. - למורים יצרנו גם [שיעור הגדרת תכנית לימודים](./lessons/0-course-setup/for-teachers.md)! +- כיצד [להריץ את הקוד ב-VSCode או Codespace](./lessons/0-course-setup/how-to-run.md) -עקוב אחרי הצעדים האלה: +עקוב אחר הצעדים הבאים: -שכפל את המאגר: לחץ על כפתור "Fork" בפינה הימנית העליונה של הדף הזה. +צור פורק למאגר: לחץ על כפתור "Fork" בפינה הימנית העליונה של הדף הזה. -שכפל את המאגר: `git clone https://github.com/microsoft/AI-For-Beginners.git` +שכפל את המאגר: `git clone https://github.com/microsoft/AI-For-Beginners.git` -אל תשכח לסמן בכוכב (🌟) את המאגר הזה כדי שתמצא אותו בקלות מאוחר יותר. +אל תשכח לסמן בכוכב (🌟) את המאגר הזה כדי למצוא אותו בקלות מאוחר יותר. -## פגוש לומדים אחרים +## הכרת לומדים אחרים -הצטרף ל[שרת הדיסקורד הרשמי של AI שלנו](https://aka.ms/genai-discord?WT.mc_id=academic-105485-bethanycheum) כדי לפגוש וליצור קשר עם לומדים אחרים שלוקחים את הקורס הזה ולקבל תמיכה. +הצטרף לשרת ה-Discord הרשמי שלנו ל-AI [‏כאן](https://aka.ms/genai-discord?WT.mc_id=academic-105485-bethanycheum) כדי לפגוש וליצור קשר עם לומדים אחרים שלקחו את הקורס ולקבל תמיכה. -אם יש לך משוב על המוצר או שאלות בזמן הבנייה, בקר בפורום המפתחים של Azure AI Foundry: [כאן](https://aka.ms/foundry/forum) +אם יש לך משוב על המוצר או שאלות בזמן הפיתוח בקר בפורום המפתחים של [Azure AI Foundry](https://aka.ms/foundry/forum) -## חידונים +## מבחנים -> **הערה לגבי חידונים**: כל החידונים נמצאים בתיקיית Quiz-app ב-etc\quiz-app, או [באינטרנט כאן](https://ff-quizzes.netlify.app/) הם מקושרים מתוך השיעורים, אפליקציית החידונים אפשר להריץ מקומית או לפרוס ל-Azure; עקוב אחר ההוראות שבתיקיית `quiz-app`. הם מתורגמים בהדרגה. +> **הערה לגבי המבחנים**: כל המבחנים נמצאים בתיקיית Quiz-app ב־etc\quiz-app, או [בפורמט מקוון כאן](https://ff-quizzes.netlify.app/). הם מקושרים מתוך השיעורים, אפליקציית המבחנים ניתנת להרצה מקומית או לפריסה ב-Azure; עקוב אחר ההוראות שבתיקיית `quiz-app`. המבחנים מתורגמים בהדרגה. -## דרושה עזרה +## דרוש עזרה -יש לך הצעות או מצאת שגיאות כתיב או בקוד? פתח נושא או צור Pull Request. +האם יש לך הצעות או שמצאת טעויות כתיב או שגיאות בקוד? פתח נושא חדש או הגש Pull Request. -## תודה מיוחדת +## תודה מיוחדת -* **✍️ מחבר ראשי:** [דמיטרי סושניקוב](http://soshnikov.com), דוקטורט -* **🔥 עורך:** [ג'ן לופר](https://twitter.com/jenlooper), דוקטורט -* **🎨 מאיירת סקצ'נוט:** [טומומי אימורה](https://twitter.com/girlie_mac) -* **✅ יוצר חידונים:** [לתיifah Bello](https://github.com/CinnamonXI), [MLSA](https://studentambassadors.microsoft.com/) -* **🙏 תורמים מרכזיים:** [איבגני פישצ'יק](https://github.com/Pe4enIks) +* **✍️ מחבר ראשי:** [Dmitry Soshnikov](http://soshnikov.com), PhD +* **🔥 עורך:** [Jen Looper](https://twitter.com/jenlooper), PhD +* **🎨 מאייר סקצ'נות:** [Tomomi Imura](https://twitter.com/girlie_mac) +* **✅ יוצר מבחנים:** [Lateefah Bello](https://github.com/CinnamonXI), [MLSA](https://studentambassadors.microsoft.com/) +* **🙏 תורמים מרכזיים:** [Evgenii Pishchik](https://github.com/Pe4enIks) -## תכניות לימודים נוספות +## תכניות לימוד נוספות -הצוות שלנו מפתח תכניות לימודים נוספות! בדוק: +הצוות שלנו מייצר תכניות לימוד נוספות! בדוק: -### LangChain -[![LangChain4j למתחילים](https://img.shields.io/badge/LangChain4j%20for%20Beginners-22C55E?style=for-the-badge&&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchain4j-for-beginners) -[![LangChain.js למתחילים](https://img.shields.io/badge/LangChain.js%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchainjs-for-beginners?WT.mc_id=m365-94501-dwahlin) -[![LangChain למתחילים](https://img.shields.io/badge/LangChain%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://github.com/microsoft/langchain-for-beginners?WT.mc_id=m365-94501-dwahlin) ---- +### LangChain +[![LangChain4j for Beginners](https://img.shields.io/badge/LangChain4j%20for%20Beginners-22C55E?style=for-the-badge&&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchain4j-for-beginners) +[![LangChain.js for Beginners](https://img.shields.io/badge/LangChain.js%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchainjs-for-beginners?WT.mc_id=m365-94501-dwahlin) +[![LangChain for Beginners](https://img.shields.io/badge/LangChain%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://github.com/microsoft/langchain-for-beginners?WT.mc_id=m365-94501-dwahlin) +--- -### Azure / Edge / MCP / סוכנים -[![AZD למתחילים](https://img.shields.io/badge/AZD%20for%20Beginners-0078D4?style=for-the-badge&labelColor=E5E7EB&color=0078D4)](https://github.com/microsoft/AZD-for-beginners?WT.mc_id=academic-105485-koreyst) -[![Edge AI למתחילים](https://img.shields.io/badge/Edge%20AI%20for%20Beginners-00B8E4?style=for-the-badge&labelColor=E5E7EB&color=00B8E4)](https://github.com/microsoft/edgeai-for-beginners?WT.mc_id=academic-105485-koreyst) -[![MCP למתחילים](https://img.shields.io/badge/MCP%20for%20Beginners-009688?style=for-the-badge&labelColor=E5E7EB&color=009688)](https://github.com/microsoft/mcp-for-beginners?WT.mc_id=academic-105485-koreyst) -[![סוכני AI למתחילים](https://img.shields.io/badge/AI%20Agents%20for%20Beginners-00C49A?style=for-the-badge&labelColor=E5E7EB&color=00C49A)](https://github.com/microsoft/ai-agents-for-beginners?WT.mc_id=academic-105485-koreyst) +### Azure / Edge / MCP / Agents +[![AZD for Beginners](https://img.shields.io/badge/AZD%20for%20Beginners-0078D4?style=for-the-badge&labelColor=E5E7EB&color=0078D4)](https://github.com/microsoft/AZD-for-beginners?WT.mc_id=academic-105485-koreyst) +[![Edge AI for Beginners](https://img.shields.io/badge/Edge%20AI%20for%20Beginners-00B8E4?style=for-the-badge&labelColor=E5E7EB&color=00B8E4)](https://github.com/microsoft/edgeai-for-beginners?WT.mc_id=academic-105485-koreyst) +[![MCP for Beginners](https://img.shields.io/badge/MCP%20for%20Beginners-009688?style=for-the-badge&labelColor=E5E7EB&color=009688)](https://github.com/microsoft/mcp-for-beginners?WT.mc_id=academic-105485-koreyst) +[![AI Agents for Beginners](https://img.shields.io/badge/AI%20Agents%20for%20Beginners-00C49A?style=for-the-badge&labelColor=E5E7EB&color=00C49A)](https://github.com/microsoft/ai-agents-for-beginners?WT.mc_id=academic-105485-koreyst) ---- +--- -### סדרת AI גנרטיבי -[![Generative AI למתחילים](https://img.shields.io/badge/Generative%20AI%20for%20Beginners-8B5CF6?style=for-the-badge&labelColor=E5E7EB&color=8B5CF6)](https://github.com/microsoft/generative-ai-for-beginners?WT.mc_id=academic-105485-koreyst) -[![Generative AI (.NET)](https://img.shields.io/badge/Generative%20AI%20(.NET)-9333EA?style=for-the-badge&labelColor=E5E7EB&color=9333EA)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet?WT.mc_id=academic-105485-koreyst) -[![Generative AI (Java)](https://img.shields.io/badge/Generative%20AI%20(Java)-C084FC?style=for-the-badge&labelColor=E5E7EB&color=C084FC)](https://github.com/microsoft/generative-ai-for-beginners-java?WT.mc_id=academic-105485-koreyst) -[![Generative AI (JavaScript)](https://img.shields.io/badge/Generative%20AI%20(JavaScript)-E879F9?style=for-the-badge&labelColor=E5E7EB&color=E879F9)](https://github.com/microsoft/generative-ai-with-javascript?WT.mc_id=academic-105485-koreyst) +### Generative AI Series +[![Generative AI for Beginners](https://img.shields.io/badge/Generative%20AI%20for%20Beginners-8B5CF6?style=for-the-badge&labelColor=E5E7EB&color=8B5CF6)](https://github.com/microsoft/generative-ai-for-beginners?WT.mc_id=academic-105485-koreyst) +[![Generative AI (.NET)](https://img.shields.io/badge/Generative%20AI%20(.NET)-9333EA?style=for-the-badge&labelColor=E5E7EB&color=9333EA)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet?WT.mc_id=academic-105485-koreyst) +[![Generative AI (Java)](https://img.shields.io/badge/Generative%20AI%20(Java)-C084FC?style=for-the-badge&labelColor=E5E7EB&color=C084FC)](https://github.com/microsoft/generative-ai-for-beginners-java?WT.mc_id=academic-105485-koreyst) +[![Generative AI (JavaScript)](https://img.shields.io/badge/Generative%20AI%20(JavaScript)-E879F9?style=for-the-badge&labelColor=E5E7EB&color=E879F9)](https://github.com/microsoft/generative-ai-with-javascript?WT.mc_id=academic-105485-koreyst) ---- +--- -### למידה מרכזית -[![ML למתחילים](https://img.shields.io/badge/ML%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=22C55E)](https://aka.ms/ml-beginners?WT.mc_id=academic-105485-koreyst) -[![Data Science למתחילים](https://img.shields.io/badge/Data%20Science%20for%20Beginners-84CC16?style=for-the-badge&labelColor=E5E7EB&color=84CC16)](https://aka.ms/datascience-beginners?WT.mc_id=academic-105485-koreyst) -[![AI למתחילים](https://img.shields.io/badge/AI%20for%20Beginners-A3E635?style=for-the-badge&labelColor=E5E7EB&color=A3E635)](https://aka.ms/ai-beginners?WT.mc_id=academic-105485-koreyst) -[![Cybersecurity למתחילים](https://img.shields.io/badge/Cybersecurity%20for%20Beginners-F97316?style=for-the-badge&labelColor=E5E7EB&color=F97316)](https://github.com/microsoft/Security-101?WT.mc_id=academic-96948-sayoung) -[![פיתוח ווב למתחילים](https://img.shields.io/badge/Web%20Dev%20for%20Beginners-EC4899?style=for-the-badge&labelColor=E5E7EB&color=EC4899)](https://aka.ms/webdev-beginners?WT.mc_id=academic-105485-koreyst) -[![IoT למתחילים](https://img.shields.io/badge/IoT%20for%20Beginners-14B8A6?style=for-the-badge&labelColor=E5E7EB&color=14B8A6)](https://aka.ms/iot-beginners?WT.mc_id=academic-105485-koreyst) -[![פיתוח XR למתחילים](https://img.shields.io/badge/XR%20Development%20for%20Beginners-38BDF8?style=for-the-badge&labelColor=E5E7EB&color=38BDF8)](https://github.com/microsoft/xr-development-for-beginners?WT.mc_id=academic-105485-koreyst) +### Core Learning +[![ML for Beginners](https://img.shields.io/badge/ML%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=22C55E)](https://aka.ms/ml-beginners?WT.mc_id=academic-105485-koreyst) +[![Data Science for Beginners](https://img.shields.io/badge/Data%20Science%20for%20Beginners-84CC16?style=for-the-badge&labelColor=E5E7EB&color=84CC16)](https://aka.ms/datascience-beginners?WT.mc_id=academic-105485-koreyst) +[![AI for Beginners](https://img.shields.io/badge/AI%20for%20Beginners-A3E635?style=for-the-badge&labelColor=E5E7EB&color=A3E635)](https://aka.ms/ai-beginners?WT.mc_id=academic-105485-koreyst) +[![Cybersecurity for Beginners](https://img.shields.io/badge/Cybersecurity%20for%20Beginners-F97316?style=for-the-badge&labelColor=E5E7EB&color=F97316)](https://github.com/microsoft/Security-101?WT.mc_id=academic-96948-sayoung) +[![Web Dev for Beginners](https://img.shields.io/badge/Web%20Dev%20for%20Beginners-EC4899?style=for-the-badge&labelColor=E5E7EB&color=EC4899)](https://aka.ms/webdev-beginners?WT.mc_id=academic-105485-koreyst) +[![IoT for Beginners](https://img.shields.io/badge/IoT%20for%20Beginners-14B8A6?style=for-the-badge&labelColor=E5E7EB&color=14B8A6)](https://aka.ms/iot-beginners?WT.mc_id=academic-105485-koreyst) +[![XR Development for Beginners](https://img.shields.io/badge/XR%20Development%20for%20Beginners-38BDF8?style=for-the-badge&labelColor=E5E7EB&color=38BDF8)](https://github.com/microsoft/xr-development-for-beginners?WT.mc_id=academic-105485-koreyst) ---- +--- -### סדרת Copilot -[![Copilot לתכנות משותף עם AI](https://img.shields.io/badge/Copilot%20for%20AI%20Paired%20Programming-FACC15?style=for-the-badge&labelColor=E5E7EB&color=FACC15)](https://aka.ms/GitHubCopilotAI?WT.mc_id=academic-105485-koreyst) -[![Copilot ל-C#/.NET](https://img.shields.io/badge/Copilot%20for%20C%23/.NET-FBBF24?style=for-the-badge&labelColor=E5E7EB&color=FBBF24)](https://github.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?WT.mc_id=academic-105485-koreyst) -[![הרפתקאות Copilot](https://img.shields.io/badge/Copilot%20Adventure-FDE68A?style=for-the-badge&labelColor=E5E7EB&color=FDE68A)](https://github.com/microsoft/CopilotAdventures?WT.mc_id=academic-105485-koreyst) - +### Copilot Series +[![Copilot for AI Paired Programming](https://img.shields.io/badge/Copilot%20for%20AI%20Paired%20Programming-FACC15?style=for-the-badge&labelColor=E5E7EB&color=FACC15)](https://aka.ms/GitHubCopilotAI?WT.mc_id=academic-105485-koreyst) +[![Copilot for C#/.NET](https://img.shields.io/badge/Copilot%20for%20C%23/.NET-FBBF24?style=for-the-badge&labelColor=E5E7EB&color=FBBF24)](https://github.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?WT.mc_id=academic-105485-koreyst) +[![Copilot Adventure](https://img.shields.io/badge/Copilot%20Adventure-FDE68A?style=for-the-badge&labelColor=E5E7EB&color=FDE68A)](https://github.com/microsoft/CopilotAdventures?WT.mc_id=academic-105485-koreyst) + -## לקבלת עזרה +## קבלת סיוע -אם נתקעת או יש לך שאלות לגבי פיתוח אפליקציות AI. הצטרף ללומדים ומפתחים מנוסים בדיונים על MCP. זוהי קהילה תומכת שבה שאלות מתקבלות בברכה והידע משותף בחופשיות. +אם נתקעת או יש לך שאלות לגבי פיתוח אפליקציות בינה מלאכותית. הצטרף ללומדים ומפתחים מנוסים בדיונים ב-MCP. זו קהילה תומכת שבה שאלות מתקבלות בשמחה וידע משתף בחופשיות. -[![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) +[![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) -אם יש לך משוב על המוצר או שגיאות בזמן בנייה בקר ב: +אם יש לך משוב על המוצר או שגיאות במהלך הפיתוח בקר ב: -[![פורום מפתחים של Microsoft Foundry](https://img.shields.io/badge/GitHub-Microsoft_Foundry_Developer_Forum-blue?style=for-the-badge&logo=github&color=000000&logoColor=fff)](https://aka.ms/foundry/forum) +[![Microsoft Foundry Developer Forum](https://img.shields.io/badge/GitHub-Microsoft_Foundry_Developer_Forum-blue?style=for-the-badge&logo=github&color=000000&logoColor=fff)](https://aka.ms/foundry/forum) --- **כתב ויתור**: -מסמך זה תורגם בשירות תרגום מבוסס בינה מלאכותית [Co-op Translator](https://github.com/Azure/co-op-translator). אנו שואפים לדיוק, אך יש לקחת בחשבון כי תרגומים אוטומטיים עלולים להכיל שגיאות או אי-דיוקים. יש להתייחס למסמך המקורי בשפת המקור כסמכותי. למידע קריטי מומלץ להשתמש בתרגום מקצועי של מתרגם אנושי. אנו לא נושאים באחריות לכל אי-הבנה או פרשנות שגויה שנובעת מהשימוש בתרגום זה. +מסמך זה תורגם באמצעות שירות תרגום בינה מלאכותית [Co-op Translator](https://github.com/Azure/co-op-translator). למרות שאנו שואפים לדיוק, יש לקחת בחשבון שתרגומים אוטומטיים עלולים להכיל שגיאות או אי דיוקים. יש לראות במסמך המקורי בשפת המקור כמקור הסמכותי. למידע קריטי מומלץ לקבל תרגום מקצועי על ידי אדם. אנו לא נושאים באחריות לכל אי הבנה או פרשנות שגויה הנובעת משימוש בתרגום זה. \ No newline at end of file diff --git a/translations/he/lessons/2-Symbolic/MSConceptGraph.ipynb b/translations/he/lessons/2-Symbolic/MSConceptGraph.ipynb index e8b7ae38..1c91d0fa 100644 --- a/translations/he/lessons/2-Symbolic/MSConceptGraph.ipynb +++ b/translations/he/lessons/2-Symbolic/MSConceptGraph.ipynb @@ -1,539 +1,532 @@ { - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Microsoft Concept Graph - API זה אינו זמין יותר, אך אנא עיינו במחברת כדי להבין את הרעיון\n", - "\n", - "[Microsoft Concept Graph](https://concept.research.microsoft.com/) הוא טקסונומיה רחבה של מונחים שנאספו מהאינטרנט, עם יחסי `is-a` בין מושגים.\n", - "\n", - "גרף הקשרים זמין בשתי צורות:\n", - " * קובץ טקסט גדול להורדה\n", - " * API מסוג REST\n", - "\n", - "סטטיסטיקות:\n", - " * 5401933 מושגים ייחודיים\n", - " * 12551613 מופעים ייחודיים\n", - " * 87603947 יחסי `is-a`\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## שימוש בשירות אינטרנט\n", - "\n", - "שירות האינטרנט מציע קריאות שונות להערכת הסבירות של מושג להשתייך לקבוצות שונות. מידע נוסף זמין [כאן](https://concept.research.microsoft.com/Home/Api). \n", - "הנה דוגמה לכתובת URL לקריאה: `https://api.conceptnet.io/query?start=/c/en/microsoft&rel=/r/IsA&limit=10`\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "import urllib\n", - "import json\n", - "\n", - "def http(x):\n", - " response = urllib.request.urlopen(x)\n", - " data = response.read()\n", - " return data.decode('utf-8')\n", - "\n", - "def query(x):\n", - " concept = x.lower().replace(' ', '_')\n", - " url = \"https://api.conceptnet.io/query?start=/c/en/{}&rel=/r/IsA&limit=10\".format(\n", - " urllib.parse.quote(concept))\n", - " try:\n", - " result = json.loads(http(url))\n", - " except Exception:\n", - " return {}\n", - " edges = result.get('edges', [])\n", - " if not edges:\n", - " return {}\n", - " total_weight = sum(edge['weight'] for edge in edges)\n", - " if total_weight == 0:\n", - " return {}\n", - " return {edge['end']['label']: edge['weight'] / total_weight for edge in edges}\n", - "\n", - "query('microsoft')" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "בואו ננסה לסווג את כותרות החדשות באמצעות מושגים כלליים. כדי לקבל כותרות חדשות, נשתמש בשירות [NewsApi.org](http://newsapi.org). עליכם להשיג מפתח API משלכם כדי להשתמש בשירות - גשו לאתר והירשמו לתוכנית המפתחים החינמית.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "newsapi_key = ''\n", - "def get_news(country='us'):\n", - " res = json.loads(http(\"https://newsapi.org/v2/top-headlines?country={0}&apiKey={1}\".format(country,newsapi_key)))\n", - " return res['articles']\n", - "\n", - "all_titles = [x['title'] for x in get_news('us')+get_news('gb')]" - ] - }, - { - "cell_type": "code", - "execution_count": 21, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "['Covid-19 Live Updates: Vaccines and Boosters News - The New York Times',\n", - " 'Ukrainians Flee Mariupol as Russian Forces Push to Take Port City - The Wall Street Journal',\n", - " 'Bond Yields Jump, Stock Futures Rise After Powell Says Fed Is Ready to Be More Aggressive - The Wall Street Journal',\n", - " 'Putin critic Alexei Navalny found guilty by Russian court - New York Post ',\n", - " \"Supreme Court nominee Ketanji Brown Jackson will face questions at confirmation hearing's second day - CNN\",\n", - " '2 teachers killed at Swedish high school, student arrested - ABC News',\n", - " 'Clues to Covid-19’s Next Moves Come From Sewers - The Wall Street Journal',\n", - " 'Republicans to roll dice by grilling Jackson over child-pornography sentencing decisions | TheHill - The Hill',\n", - " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", - " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", - " \"US stocks whipsawed overnight after Fed Chair Powell's remarks - Fox Business\",\n", - " \"'We've learned absolutely nothing': Tests could again be in short supply if Covid surges - POLITICO\",\n", - " \"Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\",\n", - " 'China searches for victims, flight recorders after first plane crash in 12 years - Reuters',\n", - " 'Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters',\n", - " 'Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español',\n", - " 'Powers Remain and Threats Lurk as Women’s Sweet 16 Is Set - The New York Times',\n", - " 'Webb Space Telescope Begins Multi-Instrument Alignment - SciTechDaily',\n", - " \"UConn vs UCF - NCAA women's tournament second-round highlights - March Madness\",\n", - " 'Bucking Republican Trend, Indiana Governor Vetoes Transgender Sports Bill - The New York Times',\n", - " \"Maggie Fox dead: Coronation Street and Shameless actress dies after 'sudden accident' - Mirror Online - The Mirror\",\n", - " 'China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent',\n", - " 'Daniel Morgan murder: damning report condemns Met police - The Guardian',\n", - " 'What to expect from Rishi Sunak’s Spring Statement - BBC.com',\n", - " 'UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian',\n", - " \"Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\",\n", - " 'Brass Eye’s outtakes show the brutal TV comedy was the tip of an iceberg - The Guardian',\n", - " \"Vladimir Putin threatens civilians to break Mariupol's spirit - The Times\",\n", - " 'Shell U-turn on Cambo oilfield would threaten green targets, say campaigners - The Guardian',\n", - " 'St Helens dog attack: Girl aged 17 months killed at home - BBC',\n", - " \"PlayStation to buy 'Assassin's Creed' veteran Jade Raymond's Haven Studios - NME\",\n", - " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", - " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", - " 'Nintendo Switch finally has folders • Eurogamer.net - Eurogamer.net',\n", - " 'FA to “find a solution” as Liverpool fan group blasts “shambolic” Wembley travel - This Is Anfield',\n", - " 'Manchester United transfer news LIVE Erik ten Hag latest and Man Utd manager updates - Manchester Evening News',\n", - " 'Inflation raises cost of UK government borrowing in February; crude oil up again – business live - The Guardian',\n", - " 'Alexei Navalny: Kremlin critic found guilty of large-scale fraud and contempt of court by Russian court - Sky News',\n", - " \"UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\",\n", - " 'Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian']" - ] - }, - "execution_count": 21, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "all_titles" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "קודם כל, אנחנו רוצים להיות מסוגלים לחלץ שמות עצם מכותרות חדשות. נשתמש בספריית `TextBlob` כדי לעשות זאת, שמפשטת הרבה משימות טיפוסיות של עיבוד שפה טבעית כמו זו.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Requirement already satisfied: textblob in c:\\winapp\\miniconda3\\lib\\site-packages (0.17.1)\n", - "Requirement already satisfied: nltk>=3.1 in c:\\winapp\\miniconda3\\lib\\site-packages (from textblob) (3.5)\n", - "Requirement already satisfied: joblib in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (1.0.1)\n", - "Requirement already satisfied: regex in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (2021.11.10)\n", - "Requirement already satisfied: tqdm in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (4.61.2)\n", - "Requirement already satisfied: click in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (8.0.3)\n", - "Requirement already satisfied: colorama in c:\\winapp\\miniconda3\\lib\\site-packages (from click->nltk>=3.1->textblob) (0.4.4)\n", - "Finished.\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "[nltk_data] Downloading package brown to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package brown is already up-to-date!\n", - "[nltk_data] Downloading package punkt to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package punkt is already up-to-date!\n", - "[nltk_data] Downloading package wordnet to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package wordnet is already up-to-date!\n", - "[nltk_data] Downloading package averaged_perceptron_tagger to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package averaged_perceptron_tagger is already up-to-\n", - "[nltk_data] date!\n", - "[nltk_data] Downloading package conll2000 to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package conll2000 is already up-to-date!\n", - "[nltk_data] Downloading package movie_reviews to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package movie_reviews is already up-to-date!\n" - ] - } - ], - "source": [ - "import sys\n", - "!{sys.executable} -m pip install textblob\n", - "!{sys.executable} -m textblob.download_corpora\n", - "from textblob import TextBlob" - ] - }, - { - "cell_type": "code", - "execution_count": 22, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'covid-19 live updates': 1,\n", - " 'vaccines': 1,\n", - " 'boosters': 1,\n", - " 'york': 4,\n", - " 'ukrainians flee mariupol': 1,\n", - " 'forces push': 1,\n", - " 'port city': 1,\n", - " 'wall street journal': 3,\n", - " 'bond yields': 1,\n", - " 'futures rise': 1,\n", - " 'powell says fed': 1,\n", - " 'ready': 1,\n", - " 'be': 1,\n", - " 'aggressive': 1,\n", - " 'putin': 3,\n", - " 'alexei navalny': 2,\n", - " 'russian': 2,\n", - " 'supreme court nominee': 1,\n", - " 'ketanji brown jackson': 1,\n", - " \"confirmation hearing 's\": 1,\n", - " 'cnn': 1,\n", - " 'swedish': 1,\n", - " 'high school': 1,\n", - " 'abc': 1,\n", - " 'clues': 1,\n", - " 'covid-19': 1,\n", - " '’ s': 2,\n", - " 'moves': 1,\n", - " 'sewers': 1,\n", - " 'roll dice': 1,\n", - " 'jackson': 1,\n", - " 'decisions |': 1,\n", - " 'thehill': 1,\n", - " 'clear': 2,\n", - " 'chemical weapons': 2,\n", - " 'ukraine': 3,\n", - " 'claims president': 2,\n", - " 'biden': 2,\n", - " 'nasa': 2,\n", - " 'solar system': 2,\n", - " 'daily mail': 3,\n", - " 'us stocks': 1,\n", - " 'fed chair powell': 1,\n", - " \"'s remarks\": 1,\n", - " 'fox': 1,\n", - " \"'we 've\": 1,\n", - " 'tests': 1,\n", - " 'covid': 1,\n", - " 'politico': 1,\n", - " 'duchess': 1,\n", - " 'cambridge': 1,\n", - " 'swaps khaki jungle gear': 1,\n", - " 'vampire': 1,\n", - " 'wife': 1,\n", - " 'belize': 1,\n", - " 'china': 2,\n", - " 'flight recorders': 1,\n", - " 'plane crash': 1,\n", - " 'reuters': 2,\n", - " 'russian oligarch': 1,\n", - " 'abramovich': 1,\n", - " 'live': 1,\n", - " 'russia': 2,\n", - " 'stops talks': 1,\n", - " 'japan': 1,\n", - " 'español': 1,\n", - " 'powers remain': 1,\n", - " 'threats lurk': 1,\n", - " 'set': 1,\n", - " 'webb': 1,\n", - " 'telescope begins multi-instrument alignment': 1,\n", - " 'scitechdaily': 1,\n", - " 'uconn': 1,\n", - " 'ucf': 1,\n", - " 'ncaa': 1,\n", - " \"women 's tournament second-round highlights\": 1,\n", - " 'march madness': 1,\n", - " 'bucking republican trend': 1,\n", - " 'indiana': 1,\n", - " 'vetoes transgender': 1,\n", - " 'bill': 1,\n", - " 'maggie fox': 1,\n", - " 'coronation': 1,\n", - " 'shameless': 1,\n", - " \"'sudden accident\": 1,\n", - " 'mirror online': 1,\n", - " 'mirror': 2,\n", - " 'plane crash –': 1,\n", - " 'search': 1,\n", - " 'moment flight': 1,\n", - " 'daniel morgan': 1,\n", - " 'report condemns': 1,\n", - " 'met': 1,\n", - " 'guardian': 6,\n", - " 'rishi sunak': 1,\n", - " '’ s spring': 1,\n", - " 'statement': 1,\n", - " 'bbc.com': 1,\n", - " 'uk': 3,\n", - " 'ireland': 1,\n", - " 'euro': 1,\n", - " 'vladimir putin': 2,\n", - " \"'s 'lover\": 1,\n", - " 'brass eye': 1,\n", - " '’ s outtakes': 1,\n", - " 'brutal tv comedy': 1,\n", - " 'threatens civilians': 1,\n", - " 'mariupol': 1,\n", - " \"'s spirit\": 1,\n", - " 'shell u-turn': 1,\n", - " 'cambo': 1,\n", - " 'green targets': 1,\n", - " 'st helens': 1,\n", - " 'dog attack': 1,\n", - " 'girl': 1,\n", - " 'bbc': 1,\n", - " 'playstation': 1,\n", - " \"'assassin 's\": 1,\n", - " 'creed': 1,\n", - " 'jade raymond': 1,\n", - " 'haven studios': 1,\n", - " 'nme': 1,\n", - " 'nintendo switch': 1,\n", - " 'folders •': 1,\n", - " 'eurogamer.net': 2,\n", - " 'fa': 1,\n", - " 'solution ”': 1,\n", - " 'liverpool': 1,\n", - " 'fan group blasts “ shambolic ”': 1,\n", - " 'wembley': 1,\n", - " 'anfield': 1,\n", - " 'manchester': 1,\n", - " 'live erik': 1,\n", - " 'hag': 1,\n", - " 'utd': 1,\n", - " 'manager updates': 1,\n", - " 'manchester evening': 1,\n", - " 'inflation': 1,\n", - " 'government borrowing': 1,\n", - " 'february': 1,\n", - " 'crude oil': 1,\n", - " '– business': 1,\n", - " 'kremlin': 1,\n", - " 'large-scale fraud': 1,\n", - " 'sky': 1,\n", - " 'natural gas': 1,\n", - " 'gazprom': 1,\n", - " 'retail unit': 1,\n", - " 'insider': 1,\n", - " 'zaghari-ratcliffe': 1,\n", - " 'hunt': 1,\n", - " 'iran': 1,\n", - " 'debt payment': 1}" - ] - }, - "execution_count": 22, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "w = {}\n", - "for x in all_titles:\n", - " for n in TextBlob(x).noun_phrases:\n", - " if n in w:\n", - " w[n].append(x)\n", - " else:\n", - " w[n]=[x]\n", - "{ x:len(w[x]) for x in w.keys()}" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "אנחנו יכולים לראות ששמות עצם אינם נותנים לנו קבוצות נושאיות גדולות. בואו נחליף את שמות העצם במונחים כלליים יותר שהושגו מתוך גרף המושגים. זה ייקח קצת זמן, כי אנחנו מבצעים קריאת REST עבור כל ביטוי שם עצם.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "w = {}\n", - "for x in all_titles:\n", - " for noun in TextBlob(x).noun_phrases:\n", - " terms = query(noun)\n", - " for term in [u for u in terms.keys() if terms[u]>0.1]:\n", - " if term in w:\n", - " w[term].append(x)\n", - " else:\n", - " w[term]=[x]" - ] - }, - { - "cell_type": "code", - "execution_count": 24, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'city': 9,\n", - " 'brand': 4,\n", - " 'place': 9,\n", - " 'town': 4,\n", - " 'factor': 4,\n", - " 'film': 4,\n", - " 'nation': 11,\n", - " 'state': 5,\n", - " 'person': 4,\n", - " 'organization': 5,\n", - " 'publication': 10,\n", - " 'market': 5,\n", - " 'economy': 4,\n", - " 'company': 6,\n", - " 'newspaper': 6,\n", - " 'relationship': 6}" - ] - }, - "execution_count": 24, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "{ x:len(w[x]) for x in w.keys() if len(w[x])>3}" - ] - }, - { - "cell_type": "code", - "execution_count": 27, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "ECONOMY:\n", - "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", - "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", - "\n", - "NATION:\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", - "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", - "UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian\n", - "Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", - "Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian\n", - "\n", - "PERSON:\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", - "Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n" - ] - } - ], - "source": [ - "print('\\nECONOMY:\\n'+'\\n'.join(w['economy']))\n", - "print('\\nNATION:\\n'+'\\n'.join(w['nation']))\n", - "print('\\nPERSON:\\n'+'\\n'.join(w['person']))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "\n---\n\n**כתב ויתור**: \nמסמך זה תורגם באמצעות שירות תרגום מבוסס בינה מלאכותית [Co-op Translator](https://github.com/Azure/co-op-translator). למרות שאנו שואפים לדיוק, יש לקחת בחשבון שתרגומים אוטומטיים עשויים להכיל שגיאות או אי דיוקים. המסמך המקורי בשפתו המקורית צריך להיחשב כמקור הסמכותי. עבור מידע קריטי, מומלץ להשתמש בתרגום מקצועי על ידי אדם. אנו לא נושאים באחריות לאי הבנות או לפרשנויות שגויות הנובעות משימוש בתרגום זה.\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3.7.4 64-bit (conda)", - "metadata": { - "interpreter": { - "hash": "86193a1ab0ba47eac1c69c1756090baa3b420b3eea7d4aafab8b85f8b312f0c5" - } - }, - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.5" - }, - "coopTranslator": { - "original_hash": "7b3f1fc049371bcf8649ac9fefdf0413", - "translation_date": "2025-10-03T18:56:31+00:00", - "source_file": "lessons/2-Symbolic/MSConceptGraph.ipynb", - "language_code": "he" - } + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## תרשים מושגים באמצעות ConceptNet\n", + "\n", + "> **הערה:** ה-API המקורי של [Microsoft Concept Graph](https://concept.research.microsoft.com/) כבר אינו זמין. פנקס זה עודכן לשימוש ב-[ConceptNet](https://conceptnet.io/) כתחליף, שהוא גרף ידע פתוח חופשי עם קשרי `is-a` דומים בין מושגים.\n", + "\n", + "[ConceptNet](https://conceptnet.io/) הוא רשת סמנטית גדולה של מושגים עם יחסים כמו `IsA`, `PartOf`, `UsedFor` ועוד. היא זמינה כ:\n", + " * קובץ נתונים להורדה\n", + " * API REST (אין צורך במפתח API)\n", + "\n", + "סטטיסטיקות של ConceptNet:\n", + " * מעל 8 מיליון צמתים\n", + " * מעל 21 מיליון קשתות ב-83 שפות\n" + ] }, - "nbformat": 4, - "nbformat_minor": 2 + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## שימוש בשירות האינטרנט של ConceptNet\n", + "\n", + "[ConceptNet](https://conceptnet.io/) מספק API מסוג REST לחקירת יחסי `is-a` (IsA) בין מושגים. אין צורך במפתח API.\n", + "להלן כתובת דוגמה לקריאה: `https://api.conceptnet.io/query?start=/c/en/microsoft&rel=/r/IsA&limit=10`\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "import urllib\n", + "import json\n", + "\n", + "def http(x):\n", + " response = urllib.request.urlopen(x)\n", + " data = response.read()\n", + " return data.decode('utf-8')\n", + "\n", + "def query(x):\n", + " concept = x.lower().replace(' ', '_')\n", + " url = \"https://api.conceptnet.io/query?start=/c/en/{}&rel=/r/IsA&limit=10\".format(\n", + " urllib.parse.quote(concept))\n", + " try:\n", + " result = json.loads(http(url))\n", + " except Exception:\n", + " return {}\n", + " edges = result.get('edges', [])\n", + " if not edges:\n", + " return {}\n", + " total_weight = sum(edge['weight'] for edge in edges)\n", + " if total_weight == 0:\n", + " return {}\n", + " return {edge['end']['label']: edge['weight'] / total_weight for edge in edges}\n", + "\n", + "query('microsoft')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "בואו ננסה לסווג את כותרות החדשות לפי מושגים ראשיים. כדי לקבל כותרות חדשות, נשתמש בשירות [NewsApi.org](http://newsapi.org). עליך לקבל מפתח API משלו כדי להשתמש בשירות - עבור לאתר והירשם לתכנית מפתחים חינמית.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "newsapi_key = ''\n", + "def get_news(country='us'):\n", + " res = json.loads(http(\"https://newsapi.org/v2/top-headlines?country={0}&apiKey={1}\".format(country,newsapi_key)))\n", + " return res['articles']\n", + "\n", + "all_titles = [x['title'] for x in get_news('us')+get_news('gb')]" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['Covid-19 Live Updates: Vaccines and Boosters News - The New York Times',\n", + " 'Ukrainians Flee Mariupol as Russian Forces Push to Take Port City - The Wall Street Journal',\n", + " 'Bond Yields Jump, Stock Futures Rise After Powell Says Fed Is Ready to Be More Aggressive - The Wall Street Journal',\n", + " 'Putin critic Alexei Navalny found guilty by Russian court - New York Post ',\n", + " \"Supreme Court nominee Ketanji Brown Jackson will face questions at confirmation hearing's second day - CNN\",\n", + " '2 teachers killed at Swedish high school, student arrested - ABC News',\n", + " 'Clues to Covid-19’s Next Moves Come From Sewers - The Wall Street Journal',\n", + " 'Republicans to roll dice by grilling Jackson over child-pornography sentencing decisions | TheHill - The Hill',\n", + " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", + " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", + " \"US stocks whipsawed overnight after Fed Chair Powell's remarks - Fox Business\",\n", + " \"'We've learned absolutely nothing': Tests could again be in short supply if Covid surges - POLITICO\",\n", + " \"Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\",\n", + " 'China searches for victims, flight recorders after first plane crash in 12 years - Reuters',\n", + " 'Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters',\n", + " 'Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español',\n", + " 'Powers Remain and Threats Lurk as Women’s Sweet 16 Is Set - The New York Times',\n", + " 'Webb Space Telescope Begins Multi-Instrument Alignment - SciTechDaily',\n", + " \"UConn vs UCF - NCAA women's tournament second-round highlights - March Madness\",\n", + " 'Bucking Republican Trend, Indiana Governor Vetoes Transgender Sports Bill - The New York Times',\n", + " \"Maggie Fox dead: Coronation Street and Shameless actress dies after 'sudden accident' - Mirror Online - The Mirror\",\n", + " 'China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent',\n", + " 'Daniel Morgan murder: damning report condemns Met police - The Guardian',\n", + " 'What to expect from Rishi Sunak’s Spring Statement - BBC.com',\n", + " 'UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian',\n", + " \"Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\",\n", + " 'Brass Eye’s outtakes show the brutal TV comedy was the tip of an iceberg - The Guardian',\n", + " \"Vladimir Putin threatens civilians to break Mariupol's spirit - The Times\",\n", + " 'Shell U-turn on Cambo oilfield would threaten green targets, say campaigners - The Guardian',\n", + " 'St Helens dog attack: Girl aged 17 months killed at home - BBC',\n", + " \"PlayStation to buy 'Assassin's Creed' veteran Jade Raymond's Haven Studios - NME\",\n", + " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", + " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", + " 'Nintendo Switch finally has folders • Eurogamer.net - Eurogamer.net',\n", + " 'FA to “find a solution” as Liverpool fan group blasts “shambolic” Wembley travel - This Is Anfield',\n", + " 'Manchester United transfer news LIVE Erik ten Hag latest and Man Utd manager updates - Manchester Evening News',\n", + " 'Inflation raises cost of UK government borrowing in February; crude oil up again – business live - The Guardian',\n", + " 'Alexei Navalny: Kremlin critic found guilty of large-scale fraud and contempt of court by Russian court - Sky News',\n", + " \"UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\",\n", + " 'Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian']" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "all_titles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "קודם כל, אנו רוצים להיות מסוגלים לחלץ שמות עצם מכותרות חדשות. נשתמש בספריית `TextBlob` כדי לעשות זאת, אשר מפשטת הרבה משימות טיפוסיות ב-NLP כמו זו.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Requirement already satisfied: textblob in c:\\winapp\\miniconda3\\lib\\site-packages (0.17.1)\n", + "Requirement already satisfied: nltk>=3.1 in c:\\winapp\\miniconda3\\lib\\site-packages (from textblob) (3.5)\n", + "Requirement already satisfied: joblib in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (1.0.1)\n", + "Requirement already satisfied: regex in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (2021.11.10)\n", + "Requirement already satisfied: tqdm in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (4.61.2)\n", + "Requirement already satisfied: click in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (8.0.3)\n", + "Requirement already satisfied: colorama in c:\\winapp\\miniconda3\\lib\\site-packages (from click->nltk>=3.1->textblob) (0.4.4)\n", + "Finished.\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "[nltk_data] Downloading package brown to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package brown is already up-to-date!\n", + "[nltk_data] Downloading package punkt to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package punkt is already up-to-date!\n", + "[nltk_data] Downloading package wordnet to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package wordnet is already up-to-date!\n", + "[nltk_data] Downloading package averaged_perceptron_tagger to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package averaged_perceptron_tagger is already up-to-\n", + "[nltk_data] date!\n", + "[nltk_data] Downloading package conll2000 to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package conll2000 is already up-to-date!\n", + "[nltk_data] Downloading package movie_reviews to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package movie_reviews is already up-to-date!\n" + ] + } + ], + "source": [ + "import sys\n", + "!{sys.executable} -m pip install textblob\n", + "!{sys.executable} -m textblob.download_corpora\n", + "from textblob import TextBlob" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'covid-19 live updates': 1,\n", + " 'vaccines': 1,\n", + " 'boosters': 1,\n", + " 'york': 4,\n", + " 'ukrainians flee mariupol': 1,\n", + " 'forces push': 1,\n", + " 'port city': 1,\n", + " 'wall street journal': 3,\n", + " 'bond yields': 1,\n", + " 'futures rise': 1,\n", + " 'powell says fed': 1,\n", + " 'ready': 1,\n", + " 'be': 1,\n", + " 'aggressive': 1,\n", + " 'putin': 3,\n", + " 'alexei navalny': 2,\n", + " 'russian': 2,\n", + " 'supreme court nominee': 1,\n", + " 'ketanji brown jackson': 1,\n", + " \"confirmation hearing 's\": 1,\n", + " 'cnn': 1,\n", + " 'swedish': 1,\n", + " 'high school': 1,\n", + " 'abc': 1,\n", + " 'clues': 1,\n", + " 'covid-19': 1,\n", + " '’ s': 2,\n", + " 'moves': 1,\n", + " 'sewers': 1,\n", + " 'roll dice': 1,\n", + " 'jackson': 1,\n", + " 'decisions |': 1,\n", + " 'thehill': 1,\n", + " 'clear': 2,\n", + " 'chemical weapons': 2,\n", + " 'ukraine': 3,\n", + " 'claims president': 2,\n", + " 'biden': 2,\n", + " 'nasa': 2,\n", + " 'solar system': 2,\n", + " 'daily mail': 3,\n", + " 'us stocks': 1,\n", + " 'fed chair powell': 1,\n", + " \"'s remarks\": 1,\n", + " 'fox': 1,\n", + " \"'we 've\": 1,\n", + " 'tests': 1,\n", + " 'covid': 1,\n", + " 'politico': 1,\n", + " 'duchess': 1,\n", + " 'cambridge': 1,\n", + " 'swaps khaki jungle gear': 1,\n", + " 'vampire': 1,\n", + " 'wife': 1,\n", + " 'belize': 1,\n", + " 'china': 2,\n", + " 'flight recorders': 1,\n", + " 'plane crash': 1,\n", + " 'reuters': 2,\n", + " 'russian oligarch': 1,\n", + " 'abramovich': 1,\n", + " 'live': 1,\n", + " 'russia': 2,\n", + " 'stops talks': 1,\n", + " 'japan': 1,\n", + " 'español': 1,\n", + " 'powers remain': 1,\n", + " 'threats lurk': 1,\n", + " 'set': 1,\n", + " 'webb': 1,\n", + " 'telescope begins multi-instrument alignment': 1,\n", + " 'scitechdaily': 1,\n", + " 'uconn': 1,\n", + " 'ucf': 1,\n", + " 'ncaa': 1,\n", + " \"women 's tournament second-round highlights\": 1,\n", + " 'march madness': 1,\n", + " 'bucking republican trend': 1,\n", + " 'indiana': 1,\n", + " 'vetoes transgender': 1,\n", + " 'bill': 1,\n", + " 'maggie fox': 1,\n", + " 'coronation': 1,\n", + " 'shameless': 1,\n", + " \"'sudden accident\": 1,\n", + " 'mirror online': 1,\n", + " 'mirror': 2,\n", + " 'plane crash –': 1,\n", + " 'search': 1,\n", + " 'moment flight': 1,\n", + " 'daniel morgan': 1,\n", + " 'report condemns': 1,\n", + " 'met': 1,\n", + " 'guardian': 6,\n", + " 'rishi sunak': 1,\n", + " '’ s spring': 1,\n", + " 'statement': 1,\n", + " 'bbc.com': 1,\n", + " 'uk': 3,\n", + " 'ireland': 1,\n", + " 'euro': 1,\n", + " 'vladimir putin': 2,\n", + " \"'s 'lover\": 1,\n", + " 'brass eye': 1,\n", + " '’ s outtakes': 1,\n", + " 'brutal tv comedy': 1,\n", + " 'threatens civilians': 1,\n", + " 'mariupol': 1,\n", + " \"'s spirit\": 1,\n", + " 'shell u-turn': 1,\n", + " 'cambo': 1,\n", + " 'green targets': 1,\n", + " 'st helens': 1,\n", + " 'dog attack': 1,\n", + " 'girl': 1,\n", + " 'bbc': 1,\n", + " 'playstation': 1,\n", + " \"'assassin 's\": 1,\n", + " 'creed': 1,\n", + " 'jade raymond': 1,\n", + " 'haven studios': 1,\n", + " 'nme': 1,\n", + " 'nintendo switch': 1,\n", + " 'folders •': 1,\n", + " 'eurogamer.net': 2,\n", + " 'fa': 1,\n", + " 'solution ”': 1,\n", + " 'liverpool': 1,\n", + " 'fan group blasts “ shambolic ”': 1,\n", + " 'wembley': 1,\n", + " 'anfield': 1,\n", + " 'manchester': 1,\n", + " 'live erik': 1,\n", + " 'hag': 1,\n", + " 'utd': 1,\n", + " 'manager updates': 1,\n", + " 'manchester evening': 1,\n", + " 'inflation': 1,\n", + " 'government borrowing': 1,\n", + " 'february': 1,\n", + " 'crude oil': 1,\n", + " '– business': 1,\n", + " 'kremlin': 1,\n", + " 'large-scale fraud': 1,\n", + " 'sky': 1,\n", + " 'natural gas': 1,\n", + " 'gazprom': 1,\n", + " 'retail unit': 1,\n", + " 'insider': 1,\n", + " 'zaghari-ratcliffe': 1,\n", + " 'hunt': 1,\n", + " 'iran': 1,\n", + " 'debt payment': 1}" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w = {}\n", + "for x in all_titles:\n", + " for n in TextBlob(x).noun_phrases:\n", + " if n in w:\n", + " w[n].append(x)\n", + " else:\n", + " w[n]=[x]\n", + "{ x:len(w[x]) for x in w.keys()}" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "אנו רואים כי שמות עצם אינם מספקים לנו קבוצות נושאיות גדולות. בואו נחליף את שמות העצם במונחים כלליים יותר שהושגו מגרף המושגים. זה ייקח קצת זמן, כי אנו מבצעים קריאת REST עבור כל צירוף שמות עצם.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "w = {}\n", + "for x in all_titles:\n", + " for noun in TextBlob(x).noun_phrases:\n", + " terms = query(noun)\n", + " for term in [u for u in terms.keys() if terms[u]>0.1]:\n", + " if term in w:\n", + " w[term].append(x)\n", + " else:\n", + " w[term]=[x]" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'city': 9,\n", + " 'brand': 4,\n", + " 'place': 9,\n", + " 'town': 4,\n", + " 'factor': 4,\n", + " 'film': 4,\n", + " 'nation': 11,\n", + " 'state': 5,\n", + " 'person': 4,\n", + " 'organization': 5,\n", + " 'publication': 10,\n", + " 'market': 5,\n", + " 'economy': 4,\n", + " 'company': 6,\n", + " 'newspaper': 6,\n", + " 'relationship': 6}" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "{ x:len(w[x]) for x in w.keys() if len(w[x])>3}" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "ECONOMY:\n", + "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", + "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", + "\n", + "NATION:\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", + "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", + "UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian\n", + "Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", + "Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian\n", + "\n", + "PERSON:\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", + "Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n" + ] + } + ], + "source": [ + "print('\\nECONOMY:\\n'+'\\n'.join(w['economy']))\n", + "print('\\nNATION:\\n'+'\\n'.join(w['nation']))\n", + "print('\\nPERSON:\\n'+'\\n'.join(w['person']))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "---\n\n\n**כתב ויתור**: \nמסמך זה תורגם באמצעות שירות תרגום מבוסס בינה מלאכותית [Co-op Translator](https://github.com/Azure/co-op-translator). למרות שאנו שואפים לדייק, יש לקחת בחשבון כי תרגומים אוטומטיים עשויים להכיל שגיאות או אי-דיוקים. המסמך המקורי בשפת המקור נחשב למקור הסמכותי. למידע קריטי מומלץ להיעזר בתרגום מקצועי על ידי אדם. אנו לא נישא באחריות לכל אי-הבנות או פרשנויות שגויות הנובעות משימוש בתרגום זה.\n\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3.7.4 64-bit (conda)", + "metadata": { + "interpreter": { + "hash": "86193a1ab0ba47eac1c69c1756090baa3b420b3eea7d4aafab8b85f8b312f0c5" + } + }, + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.5" + } + }, + "nbformat": 4, + "nbformat_minor": 2 } \ No newline at end of file diff --git a/translations/id/.co-op-translator.json b/translations/id/.co-op-translator.json index aeed7c38..65123c76 100644 --- a/translations/id/.co-op-translator.json +++ b/translations/id/.co-op-translator.json @@ -6,8 +6,8 @@ "language_code": "id" }, "README.md": { - "original_hash": "75fe3383afc51eaa84b82ace619ffea7", - "translation_date": "2026-02-06T08:40:47+00:00", + "original_hash": "9eaca839b0b3f6d7f0a195fd33cebd30", + "translation_date": "2026-02-28T09:16:06+00:00", "source_file": "README.md", "language_code": "id" }, @@ -89,6 +89,12 @@ "source_file": "lessons/1-Intro/assignment.md", "language_code": "id" }, + "lessons/2-Symbolic/MSConceptGraph.ipynb": { + "original_hash": "e5690bbc6e5119a96a8172ec7261db67", + "translation_date": "2026-02-28T09:11:45+00:00", + "source_file": "lessons/2-Symbolic/MSConceptGraph.ipynb", + "language_code": "id" + }, "lessons/2-Symbolic/README.md": { "original_hash": "f9f06b266b8b2bfc6b8792ff2bb1bea4", "translation_date": "2026-01-16T03:45:50+00:00", diff --git a/translations/id/README.md b/translations/id/README.md index 125df861..4986a5d6 100644 --- a/translations/id/README.md +++ b/translations/id/README.md @@ -14,32 +14,42 @@ # Kecerdasan Buatan untuk Pemula - Kurikulum -|![Sketchnote by @girlie_mac https://twitter.com/girlie_mac](https://github.com/microsoft/AI-For-Beginners/raw/main/lessons/sketchnotes/ai-overview.png)| +|![Sketchnote oleh @girlie_mac https://twitter.com/girlie_mac](https://github.com/microsoft/AI-For-Beginners/raw/main/lessons/sketchnotes/ai-overview.png)| |:---:| | AI Untuk Pemula - _Sketchnote oleh [@girlie_mac](https://twitter.com/girlie_mac)_ | -Jelajahi dunia **Kecerdasan Buatan** (AI) dengan kurikulum 12 minggu dan 24 pelajaran kami! Ini mencakup pelajaran praktis, kuis, dan lab. Kurikulum ini ramah untuk pemula dan mencakup alat seperti TensorFlow dan PyTorch, serta etika dalam AI +Jelajahi dunia **Kecerdasan Buatan** (AI) dengan kurikulum 12 minggu, 24 pelajaran kami! Ini mencakup pelajaran praktis, kuis, dan lab. Kurikulum ini ramah pemula dan mencakup alat seperti TensorFlow dan PyTorch, serta etika dalam AI. ### 🌐 Dukungan Multi-Bahasa -#### Didukung melalui GitHub Action (Otomatis & Selalu Terbaru) +#### Didukung melalui GitHub Action (Otomatis & Selalu Terbarui) -[Arab](../ar/README.md) | [Bengali](../bn/README.md) | [Bulgaria](../bg/README.md) | [Burma (Myanmar)](../my/README.md) | [Tionghoa (Sederhana)](../zh-CN/README.md) | [Tionghoa (Tradisional, Hong Kong)](../zh-HK/README.md) | [Tionghoa (Tradisional, Macau)](../zh-MO/README.md) | [Tionghoa (Tradisional, Taiwan)](../zh-TW/README.md) | [Kroasia](../hr/README.md) | [Ceko](../cs/README.md) | [Denmark](../da/README.md) | [Belanda](../nl/README.md) | [Estonia](../et/README.md) | [Finlandia](../fi/README.md) | [Prancis](../fr/README.md) | [Jerman](../de/README.md) | [Yunani](../el/README.md) | [Ibrani](../he/README.md) | [Hindi](../hi/README.md) | [Hungaria](../hu/README.md) | [Indonesia](./README.md) | [Italia](../it/README.md) | [Jepang](../ja/README.md) | [Kannada](../kn/README.md) | [Korea](../ko/README.md) | [Lithuania](../lt/README.md) | [Melayu](../ms/README.md) | [Malayalam](../ml/README.md) | [Marathi](../mr/README.md) | [Nepali](../ne/README.md) | [Pidgin Nigeria](../pcm/README.md) | [Norwegia](../no/README.md) | [Persia (Farsi)](../fa/README.md) | [Polandia](../pl/README.md) | [Portugis (Brazil)](../pt-BR/README.md) | [Portugis (Portugal)](../pt-PT/README.md) | [Punjabi (Gurmukhi)](../pa/README.md) | [Rumania](../ro/README.md) | [Rusia](../ru/README.md) | [Serbia (Sirilik)](../sr/README.md) | [Slovakia](../sk/README.md) | [Slovenia](../sl/README.md) | [Spanyol](../es/README.md) | [Swahili](../sw/README.md) | [Swedia](../sv/README.md) | [Tagalog (Filipina)](../tl/README.md) | [Tamil](../ta/README.md) | [Telugu](../te/README.md) | [Thai](../th/README.md) | [Turki](../tr/README.md) | [Ukraina](../uk/README.md) | [Urdu](../ur/README.md) | [Vietnam](../vi/README.md) +[Arab](../ar/README.md) | [Bengali](../bn/README.md) | [Bulgaria](../bg/README.md) | [Birma (Myanmar)](../my/README.md) | [Cina (Sederhana)](../zh-CN/README.md) | [Cina (Tradisional, Hong Kong)](../zh-HK/README.md) | [Cina (Tradisional, Macau)](../zh-MO/README.md) | [Cina (Tradisional, Taiwan)](../zh-TW/README.md) | [Kroasia](../hr/README.md) | [Ceko](../cs/README.md) | [Denmark](../da/README.md) | [Belanda](../nl/README.md) | [Estonia](../et/README.md) | [Finlandia](../fi/README.md) | [Prancis](../fr/README.md) | [Jerman](../de/README.md) | [Yunani](../el/README.md) | [Ibrani](../he/README.md) | [Hindi](../hi/README.md) | [Hongaria](../hu/README.md) | [Indonesia](./README.md) | [Italia](../it/README.md) | [Jepang](../ja/README.md) | [Kannada](../kn/README.md) | [Korea](../ko/README.md) | [Lituania](../lt/README.md) | [Melayu](../ms/README.md) | [Malayalam](../ml/README.md) | [Marathi](../mr/README.md) | [Nepali](../ne/README.md) | [Pidgin Nigeria](../pcm/README.md) | [Norwegia](../no/README.md) | [Persia (Farsi)](../fa/README.md) | [Polandia](../pl/README.md) | [Portugis (Brasil)](../pt-BR/README.md) | [Portugis (Portugal)](../pt-PT/README.md) | [Punjabi (Gurmukhi)](../pa/README.md) | [Rumania](../ro/README.md) | [Rusia](../ru/README.md) | [Serbia (Sirilik)](../sr/README.md) | [Slowakia](../sk/README.md) | [Slovenia](../sl/README.md) | [Spanyol](../es/README.md) | [Swahili](../sw/README.md) | [Swedia](../sv/README.md) | [Tagalog (Filipina)](../tl/README.md) | [Tamil](../ta/README.md) | [Telugu](../te/README.md) | [Thai](../th/README.md) | [Turki](../tr/README.md) | [Ukraina](../uk/README.md) | [Urdu](../ur/README.md) | [Vietnam](../vi/README.md) -> **Lebih Suka Mengkloning Secara Lokal?** - -> Repositori ini mencakup lebih dari 50 terjemahan bahasa yang secara signifikan meningkatkan ukuran unduhan. Untuk mengkloning tanpa terjemahan, gunakan sparse checkout: +> **Lebih suka Cloning Secara Lokal?** +> +> Repositori ini berisi lebih dari 50 terjemahan bahasa yang secara signifikan meningkatkan ukuran unduhan. Untuk cloning tanpa terjemahan, gunakan sparse checkout: +> +> **Bash / macOS / Linux:** > ```bash > git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git > cd AI-For-Beginners > git sparse-checkout set --no-cone '/*' '!translations' '!translated_images' > ``` +> +> **CMD (Windows):** +> ```cmd +> git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git +> cd AI-For-Beginners +> git sparse-checkout set --no-cone "/*" "!translations" "!translated_images" +> ``` +> > Ini memberi Anda semua yang Anda butuhkan untuk menyelesaikan kursus dengan unduhan yang jauh lebih cepat. -**Jika Anda ingin menambahkan bahasa terjemahan tambahan, daftar bahasa yang didukung tersedia [di sini](https://github.com/Azure/co-op-translator/blob/main/getting_started/supported-languages.md)** +**Jika Anda ingin agar bahasa terjemahan tambahan didukung, daftar bahasa yang didukung tersedia [di sini](https://github.com/Azure/co-op-translator/blob/main/getting_started/supported-languages.md)** ## Bergabung dengan Komunitas [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) @@ -48,43 +58,43 @@ Jelajahi dunia **Kecerdasan Buatan** (AI) dengan kurikulum 12 minggu dan 24 pela **[Peta Pikiran Kursus](http://soshnikov.com/courses/ai-for-beginners/mindmap.html)** -Dalam kurikulum ini, Anda akan belajar: +Dalam kurikulum ini, Anda akan mempelajari: -* Berbagai pendekatan terhadap Kecerdasan Buatan, termasuk pendekatan simbolik "lama" dengan **Representasi Pengetahuan** dan penalaran ([GOFAI](https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence)). -* **Jaringan Saraf** dan **Pembelajaran Mendalam**, yang menjadi inti dari AI modern. Kami akan mengilustrasikan konsep di balik topik penting ini menggunakan kode pada dua kerangka kerja paling populer - [TensorFlow](http://Tensorflow.org) dan [PyTorch](http://pytorch.org). -* **Arsitektur Saraf** untuk bekerja dengan gambar dan teks. Kami akan membahas model terbaru tetapi mungkin agak kurang pada teknologi terkini. -* Pendekatan AI yang kurang populer, seperti **Algoritma Genetika** dan **Sistem Multi-Agen**. +* Pendekatan berbeda terhadap Kecerdasan Buatan, termasuk pendekatan simbolik "lama" dengan **Representasi Pengetahuan** dan penalaran ([GOFAI](https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence)). +* **Jaringan Saraf** dan **Pembelajaran Mendalam**, yang merupakan inti dari AI modern. Kami akan mengilustrasikan konsep di balik topik penting ini menggunakan kode dalam dua kerangka kerja paling populer - [TensorFlow](http://Tensorflow.org) dan [PyTorch](http://pytorch.org). +* **Arsitektur Neural** untuk bekerja dengan gambar dan teks. Kami akan membahas model terbaru namun mungkin agak kurang dalam hal paling mutakhir. +* Pendekatan AI yang kurang populer, seperti **Algoritma Genetik** dan **Sistem Multi-Agen**. -Apa yang tidak akan kami bahas dalam kurikulum ini: +Yang tidak akan kami bahas dalam kurikulum ini: -> [Temukan semua sumber daya tambahan untuk kursus ini di koleksi Microsoft Learn kami](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) +> [Temukan semua sumber tambahan untuk kursus ini di koleksi Microsoft Learn kami](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) -* Kasus bisnis menggunakan **AI dalam Bisnis**. Pertimbangkan untuk mengambil jalur pembelajaran [Pengenalan AI untuk pengguna bisnis](https://docs.microsoft.com/learn/paths/introduction-ai-for-business-users/?WT.mc_id=academic-77998-bethanycheum) di Microsoft Learn, atau [Sekolah Bisnis AI](https://www.microsoft.com/ai/ai-business-school/?WT.mc_id=academic-77998-bethanycheum), yang dikembangkan bekerja sama dengan [INSEAD](https://www.insead.edu/). -* **Pembelajaran Mesin Klasik**, yang sudah dijelaskan dengan baik di kurikulum kami [Machine Learning for Beginners](http://github.com/Microsoft/ML-for-Beginners). -* Aplikasi AI praktis yang dibangun menggunakan **[Layanan Kognitif](https://azure.microsoft.com/services/cognitive-services/?WT.mc_id=academic-77998-bethanycheum)**. Untuk ini, kami menyarankan Anda memulai dengan modul Microsoft Learn untuk [visi](https://docs.microsoft.com/learn/paths/create-computer-vision-solutions-azure-cognitive-services/?WT.mc_id=academic-77998-bethanycheum), [pemrosesan bahasa alami](https://docs.microsoft.com/learn/paths/explore-natural-language-processing/?WT.mc_id=academic-77998-bethanycheum), **[AI Generatif dengan Azure OpenAI Service](https://learn.microsoft.com/en-us/training/paths/develop-ai-solutions-azure-openai/?WT.mc_id=academic-77998-bethanycheum)** dan lainnya. -* **Kerangka Kerja Cloud ML Spesifik**, seperti [Azure Machine Learning](https://azure.microsoft.com/services/machine-learning/?WT.mc_id=academic-77998-bethanycheum), [Microsoft Fabric](https://learn.microsoft.com/en-us/training/paths/get-started-fabric/?WT.mc_id=academic-77998-bethanycheum), atau [Azure Databricks](https://docs.microsoft.com/learn/paths/data-engineer-azure-databricks?WT.mc_id=academic-77998-bethanycheum). Pertimbangkan menggunakan jalur pembelajaran [Bangun dan jalankan solusi machine learning dengan Azure Machine Learning](https://docs.microsoft.com/learn/paths/build-ai-solutions-with-azure-ml-service/?WT.mc_id=academic-77998-bethanycheum) dan [Bangun dan jalankan solusi Machine Learning dengan Azure Databricks](https://docs.microsoft.com/learn/paths/build-operate-machine-learning-solutions-azure-databricks/?WT.mc_id=academic-77998-bethanycheum). -* **AI Percakapan** dan **Chat Bot**. Ada jalur pembelajaran terpisah [Buat solusi AI percakapan](https://docs.microsoft.com/learn/paths/create-conversational-ai-solutions/?WT.mc_id=academic-77998-bethanycheum), dan Anda juga bisa merujuk pada [posting blog ini](https://soshnikov.com/azure/hello-bot-conversational-ai-on-microsoft-platform/) untuk lebih detail. -* **Matematika Mendalam** di balik pembelajaran mendalam. Untuk ini, kami menyarankan [Deep Learning](https://www.amazon.com/Deep-Learning-Adaptive-Computation-Machine/dp/0262035618) oleh Ian Goodfellow, Yoshua Bengio dan Aaron Courville, yang juga tersedia secara online di [https://www.deeplearningbook.org/](https://www.deeplearningbook.org/). +* Kasus bisnis penggunaan **AI dalam Bisnis**. Pertimbangkan mengambil jalur pembelajaran [Pengantar AI untuk Pengguna Bisnis](https://docs.microsoft.com/learn/paths/introduction-ai-for-business-users/?WT.mc_id=academic-77998-bethanycheum) di Microsoft Learn, atau [AI Business School](https://www.microsoft.com/ai/ai-business-school/?WT.mc_id=academic-77998-bethanycheum), yang dikembangkan bekerja sama dengan [INSEAD](https://www.insead.edu/). +* **Pembelajaran Mesin Klasik**, yang sudah dijelaskan dengan baik dalam [Kurikulum Pembelajaran Mesin untuk Pemula](http://github.com/Microsoft/ML-for-Beginners). +* Aplikasi AI praktis yang dibangun menggunakan **[Layanan Kognitif](https://azure.microsoft.com/services/cognitive-services/?WT.mc_id=academic-77998-bethanycheum)**. Untuk ini, kami menyarankan Anda memulai dengan modul Microsoft Learn untuk [visi](https://docs.microsoft.com/learn/paths/create-computer-vision-solutions-azure-cognitive-services/?WT.mc_id=academic-77998-bethanycheum), [pemrosesan bahasa alami](https://docs.microsoft.com/learn/paths/explore-natural-language-processing/?WT.mc_id=academic-77998-bethanycheum), **[Generative AI dengan Azure OpenAI Service](https://learn.microsoft.com/en-us/training/paths/develop-ai-solutions-azure-openai/?WT.mc_id=academic-77998-bethanycheum)** dan lainnya. +* **Kerangka Kerja Cloud ML Spesifik**, seperti [Azure Machine Learning](https://azure.microsoft.com/services/machine-learning/?WT.mc_id=academic-77998-bethanycheum), [Microsoft Fabric](https://learn.microsoft.com/en-us/training/paths/get-started-fabric/?WT.mc_id=academic-77998-bethanycheum), atau [Azure Databricks](https://docs.microsoft.com/learn/paths/data-engineer-azure-databricks?WT.mc_id=academic-77998-bethanycheum). Pertimbangkan menggunakan jalur pembelajaran [Membangun dan mengoperasikan solusi pembelajaran mesin dengan Azure Machine Learning](https://docs.microsoft.com/learn/paths/build-ai-solutions-with-azure-ml-service/?WT.mc_id=academic-77998-bethanycheum) dan [Membangun dan Mengoperasikan Solusi Pembelajaran Mesin dengan Azure Databricks](https://docs.microsoft.com/learn/paths/build-operate-machine-learning-solutions-azure-databricks/?WT.mc_id=academic-77998-bethanycheum). +* **AI Percakapan** dan **Chat Bot**. Ada jalur pembelajaran terpisah [Membuat solusi AI percakapan](https://docs.microsoft.com/learn/paths/create-conversational-ai-solutions/?WT.mc_id=academic-77998-bethanycheum), dan Anda juga dapat merujuk ke [posting blog ini](https://soshnikov.com/azure/hello-bot-conversational-ai-on-microsoft-platform/) untuk detail lebih lanjut. +* **Matematika Mendalam** di balik pembelajaran mendalam. Untuk ini, kami merekomendasikan [Deep Learning](https://www.amazon.com/Deep-Learning-Adaptive-Computation-Machine/dp/0262035618) oleh Ian Goodfellow, Yoshua Bengio dan Aaron Courville, yang juga tersedia secara online di [https://www.deeplearningbook.org/](https://www.deeplearningbook.org/). -Untuk pengantar yang lembut ke topik _AI di Cloud_ Anda mungkin mempertimbangkan mengambil Jalur Pembelajaran [Mulai dengan kecerdasan buatan di Azure](https://docs.microsoft.com/learn/paths/get-started-with-artificial-intelligence-on-azure/?WT.mc_id=academic-77998-bethanycheum). +Untuk pengenalan ringan ke topik _AI di Cloud_ Anda dapat mempertimbangkan mengambil Jalur Pembelajaran [Mulai dengan kecerdasan buatan di Azure](https://docs.microsoft.com/learn/paths/get-started-with-artificial-intelligence-on-azure/?WT.mc_id=academic-77998-bethanycheum). # Konten -| | Tautan Pelajaran | PyTorch/Keras/TensorFlow | Lab | +| | Tautan Pelajaran | PyTorch/Keras/TensorFlow | Lab | | :-: | :------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------ | | 0 | [Pengaturan Kursus](./lessons/0-course-setup/setup.md) | [Siapkan Lingkungan Pengembangan Anda](./lessons/0-course-setup/how-to-run.md) | | | I | [**Pengenalan AI**](./lessons/1-Intro/README.md) | | | | 01 | [Pengenalan dan Sejarah AI](./lessons/1-Intro/README.md) | - | - | | II | **AI Simbolik** | | 02 | [Representasi Pengetahuan dan Sistem Pakar](./lessons/2-Symbolic/README.md) | [Sistem Pakar](./lessons/2-Symbolic/Animals.ipynb) / [Ontologi](./lessons/2-Symbolic/FamilyOntology.ipynb) /[Graf Konsep](./lessons/2-Symbolic/MSConceptGraph.ipynb) | | -| III | [**Pengenalan Jaringan Syaraf Tiruan**](./lessons/3-NeuralNetworks/README.md) ||| -| 03 | [Perseptron](./lessons/3-NeuralNetworks/03-Perceptron/README.md) | [Notebook](./lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb) | [Lab](./lessons/3-NeuralNetworks/03-Perceptron/lab/README.md) | -| 04 | [Perseptron Berlapis dan Membuat Kerangka Kerja Sendiri](./lessons/3-NeuralNetworks/04-OwnFramework/README.md) | [Notebook](./lessons/3-NeuralNetworks/04-OwnFramework/OwnFramework.ipynb) | [Lab](./lessons/3-NeuralNetworks/04-OwnFramework/lab/README.md) | -| 05 | [Pengenalan Framework (PyTorch/TensorFlow) dan Overfitting](./lessons/3-NeuralNetworks/05-Frameworks/README.md) | [PyTorch](./lessons/3-NeuralNetworks/05-Frameworks/IntroPyTorch.ipynb) / [Keras](./lessons/3-NeuralNetworks/05-Frameworks/IntroKeras.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Lab](./lessons/3-NeuralNetworks/05-Frameworks/lab/README.md) | -| IV | [**Penglihatan Komputer**](./lessons/4-ComputerVision/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-computer-vision-pytorch/?WT.mc_id=academic-77998-cacaste) / [TensorFlow](https://docs.microsoft.com/learn/modules/intro-computer-vision-TensorFlow/?WT.mc_id=academic-77998-cacaste)| [Jelajahi Penglihatan Komputer di Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) | -| 06 | [Pengenalan Penglihatan Komputer. OpenCV](./lessons/4-ComputerVision/06-IntroCV/README.md) | [Notebook](./lessons/4-ComputerVision/06-IntroCV/OpenCV.ipynb) | [Lab](./lessons/4-ComputerVision/06-IntroCV/lab/README.md) | -| 07 | [Jaringan Syaraf Konvolusional](./lessons/4-ComputerVision/07-ConvNets/README.md) & [Arsitektur CNN](./lessons/4-ComputerVision/07-ConvNets/CNN_Architectures.md) | [PyTorch](./lessons/4-ComputerVision/07-ConvNets/ConvNetsPyTorch.ipynb) /[TensorFlow](./lessons/4-ComputerVision/07-ConvNets/ConvNetsTF.ipynb) | [Lab](./lessons/4-ComputerVision/07-ConvNets/lab/README.md) | -| 08 | [Jaringan Pra-latih dan Transfer Learning](./lessons/4-ComputerVision/08-TransferLearning/README.md) dan [Trik Pelatihan](./lessons/4-ComputerVision/08-TransferLearning/TrainingTricks.md) | [PyTorch](./lessons/4-ComputerVision/08-TransferLearning/TransferLearningPyTorch.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Lab](./lessons/4-ComputerVision/08-TransferLearning/lab/README.md) | +| III | [**Pengantar Jaringan Neural**](./lessons/3-NeuralNetworks/README.md) ||| +| 03 | [Perceptron](./lessons/3-NeuralNetworks/03-Perceptron/README.md) | [Notebook](./lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb) | [Lab](./lessons/3-NeuralNetworks/03-Perceptron/lab/README.md) | +| 04 | [Multi-Layered Perceptron dan Membuat Kerangka Kerja Kami Sendiri](./lessons/3-NeuralNetworks/04-OwnFramework/README.md) | [Notebook](./lessons/3-NeuralNetworks/04-OwnFramework/OwnFramework.ipynb) | [Lab](./lessons/3-NeuralNetworks/04-OwnFramework/lab/README.md) | +| 05 | [Pengantar Kerangka Kerja (PyTorch/TensorFlow) dan Overfitting](./lessons/3-NeuralNetworks/05-Frameworks/README.md) | [PyTorch](./lessons/3-NeuralNetworks/05-Frameworks/IntroPyTorch.ipynb) / [Keras](./lessons/3-NeuralNetworks/05-Frameworks/IntroKeras.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Lab](./lessons/3-NeuralNetworks/05-Frameworks/lab/README.md) | +| IV | [**Visi Komputer**](./lessons/4-ComputerVision/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-computer-vision-pytorch/?WT.mc_id=academic-77998-cacaste) / [TensorFlow](https://docs.microsoft.com/learn/modules/intro-computer-vision-TensorFlow/?WT.mc_id=academic-77998-cacaste)| [Jelajahi Visi Komputer di Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) | +| 06 | [Pengantar Visi Komputer. OpenCV](./lessons/4-ComputerVision/06-IntroCV/README.md) | [Notebook](./lessons/4-ComputerVision/06-IntroCV/OpenCV.ipynb) | [Lab](./lessons/4-ComputerVision/06-IntroCV/lab/README.md) | +| 07 | [Jaringan Neural Konvolusional](./lessons/4-ComputerVision/07-ConvNets/README.md) & [Arsitektur CNN](./lessons/4-ComputerVision/07-ConvNets/CNN_Architectures.md) | [PyTorch](./lessons/4-ComputerVision/07-ConvNets/ConvNetsPyTorch.ipynb) /[TensorFlow](./lessons/4-ComputerVision/07-ConvNets/ConvNetsTF.ipynb) | [Lab](./lessons/4-ComputerVision/07-ConvNets/lab/README.md) | +| 08 | [Jaringan Pra-latih dan Pembelajaran Transfer](./lessons/4-ComputerVision/08-TransferLearning/README.md) dan [Trik Pelatihan](./lessons/4-ComputerVision/08-TransferLearning/TrainingTricks.md) | [PyTorch](./lessons/4-ComputerVision/08-TransferLearning/TransferLearningPyTorch.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Lab](./lessons/4-ComputerVision/08-TransferLearning/lab/README.md) | | 09 | [Autoencoder dan VAE](./lessons/4-ComputerVision/09-Autoencoders/README.md) | [PyTorch](./lessons/4-ComputerVision/09-Autoencoders/AutoEncodersPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/09-Autoencoders/AutoencodersTF.ipynb) | | | 10 | [Jaringan Adversarial Generatif & Transfer Gaya Artistik](./lessons/4-ComputerVision/10-GANs/README.md) | [PyTorch](./lessons/4-ComputerVision/10-GANs/GANPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/10-GANs/GANTF.ipynb) | | | 11 | [Deteksi Objek](./lessons/4-ComputerVision/11-ObjectDetection/README.md) | [TensorFlow](./lessons/4-ComputerVision/11-ObjectDetection/ObjectDetection.ipynb) | [Lab](./lessons/4-ComputerVision/11-ObjectDetection/lab/README.md) | @@ -92,8 +102,8 @@ Untuk pengantar yang lembut ke topik _AI di Cloud_ Anda mungkin mempertimbangkan | V | [**Pemrosesan Bahasa Alami**](./lessons/5-NLP/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-pytorch/?WT.mc_id=academic-77998-cacaste) /[TensorFlow](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-TensorFlow/?WT.mc_id=academic-77998-cacaste) | [Jelajahi Pemrosesan Bahasa Alami di Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum)| | 13 | [Representasi Teks. Bow/TF-IDF](./lessons/5-NLP/13-TextRep/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/13-TextRep/TextRepresentationPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/13-TextRep/TextRepresentationTF.ipynb) | | | 14 | [Embedding kata semantik. Word2Vec dan GloVe](./lessons/5-NLP/14-Embeddings/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsTF.ipynb) | | -| 15 | [Pemodelan Bahasa. Melatih embedding Anda sendiri](./lessons/5-NLP/15-LanguageModeling/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-PyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-TF.ipynb) | [Lab](./lessons/5-NLP/15-LanguageModeling/lab/README.md) | -| 16 | [Jaringan Syaraf Rekuren](./lessons/5-NLP/16-RNN/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNTF.ipynb) | | +| 15 | [Pemodelan Bahasa. Pelatihan embedding sendiri](./lessons/5-NLP/15-LanguageModeling/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-PyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-TF.ipynb) | [Lab](./lessons/5-NLP/15-LanguageModeling/lab/README.md) | +| 16 | [Jaringan Neural Rekuren](./lessons/5-NLP/16-RNN/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNTF.ipynb) | | | 17 | [Jaringan Rekuren Generatif](./lessons/5-NLP/17-GenerativeNetworks/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativePyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativeTF.ipynb) | [Lab](./lessons/5-NLP/17-GenerativeNetworks/lab/README.md) | | 18 | [Transformer. BERT.](./lessons/5-NLP/18-Transformers/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/18-Transformers/TransformersPyTorch.ipynb) /[TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/18-Transformers/TransformersTF.ipynb) | | | 19 | [Pengenalan Entitas Bernama](./lessons/5-NLP/19-NER/README.md) | [TensorFlow](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/19-NER/NER-TF.ipynb) | [Lab](./lessons/5-NLP/19-NER/lab/README.md) | @@ -108,52 +118,51 @@ Untuk pengantar yang lembut ke topik _AI di Cloud_ Anda mungkin mempertimbangkan | 25 | [Jaringan Multi-Modal, CLIP dan VQGAN](./lessons/X-Extras/X1-MultiModal/README.md) | [Notebook](./lessons/X-Extras/X1-MultiModal/Clip.ipynb) | | ## Setiap pelajaran berisi - -* Materi pra-baca -* Jupyter Notebook yang dapat dijalankan, yang sering kali spesifik untuk framework (**PyTorch** atau **TensorFlow**). Notebook yang dapat dijalankan juga berisi banyak materi teoretis, jadi untuk memahami topik ini Anda perlu mengikuti setidaknya satu versi notebook (baik PyTorch atau TensorFlow). -* **Lab** yang tersedia untuk beberapa topik, yang memberi Anda kesempatan untuk mencoba menerapkan materi yang telah dipelajari pada masalah tertentu. -* Beberapa bagian berisi tautan ke modul [**MS Learn**](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) yang mencakup topik terkait. +* Materi pra-pembacaan +* Jupyter Notebooks yang dapat dijalankan, yang sering kali spesifik untuk framework (**PyTorch** atau **TensorFlow**). Notebook yang dapat dijalankan juga berisi banyak materi teoretis, jadi untuk memahami topik, Anda perlu melalui setidaknya satu versi notebook (baik PyTorch atau TensorFlow). +* **Lab** yang tersedia untuk beberapa topik, yang memberi Anda kesempatan untuk mencoba menerapkan materi yang telah Anda pelajari pada masalah tertentu. +* Beberapa bagian berisi tautan ke modul [**MS Learn**](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) yang membahas topik terkait. ## Memulai ### 🎯 Baru di AI? Mulai Di Sini! -Jika Anda benar-benar baru di AI dan ingin contoh cepat yang praktis, lihat [**Contoh Ramah Pemula**](./examples/README.md) kami! Ini termasuk: +Jika Anda benar-benar baru di AI dan ingin contoh praktis yang cepat, lihat [**Contoh Ramah Pemula**](./examples/README.md) kami! Ini mencakup: -- 🌟 **Hello AI World** - Program AI pertama Anda (pengenalan pola) -- 🧠 **Jaringan Syaraf Tiruan Sederhana** - Membangun jaringan syaraf dari nol +- 🌟 **Halo Dunia AI** - Program AI pertama Anda (pengenalan pola) +- 🧠 **Jaringan Neural Sederhana** - Bangun jaringan neural dari awal +- 🖼️ **Klasifikasi Gambar** - Mengklasifikasikan gambar dengan komentar terperinci +- 💬 **Sentimen Teks** - Menganalisis teks positif/negatif -- 🖼️ **Klasifikator Gambar** - Klasifikasikan gambar dengan komentar mendetail -- 💬 **Sentimen Teks** - Analisis teks positif/negatif - -Contoh-contoh ini dirancang untuk membantu Anda memahami konsep AI sebelum masuk ke kurikulum penuh. +Contoh-contoh ini dirancang untuk membantu Anda memahami konsep AI sebelum menyelami kurikulum penuh. ### 📚 Pengaturan Kurikulum Lengkap -- Kami telah membuat [pelajaran pengaturan](./lessons/0-course-setup/setup.md) untuk membantu Anda dalam mengatur lingkungan pengembangan Anda. - Untuk Pendidik, kami juga telah membuat [pelajaran pengaturan kurikulum](./lessons/0-course-setup/for-teachers.md) untuk Anda! +- Kami telah membuat [pelajaran pengaturan](./lessons/0-course-setup/setup.md) untuk membantu Anda mengatur lingkungan pengembangan Anda. +- Untuk Pendidik, kami juga telah membuat [pelajaran pengaturan kurikulum](./lessons/0-course-setup/for-teachers.md) untuk Anda! - Cara [Menjalankan kode di VSCode atau Codespace](./lessons/0-course-setup/how-to-run.md) Ikuti langkah-langkah ini: -Fork Repositori: Klik tombol "Fork" di sudut kanan atas halaman ini. +Fork Repository: Klik tombol "Fork" di sudut kanan atas halaman ini. -Clone Repositori: `git clone https://github.com/microsoft/AI-For-Beginners.git` +Clone Repository: `git clone https://github.com/microsoft/AI-For-Beginners.git` -Jangan lupa beri bintang (🌟) pada repo ini agar lebih mudah ditemukan nanti. +Jangan lupa beri bintang (🌟) repo ini agar lebih mudah ditemukan nanti. -## Bertemu dengan Pelajar Lain +## Bertemu dengan Pembelajar Lain -Bergabunglah dengan [server Discord AI resmi kami](https://aka.ms/genai-discord?WT.mc_id=academic-105485-bethanycheum) untuk bertemu dan berjejaring dengan pelajar lain yang mengikuti kursus ini serta untuk mendapatkan dukungan. +Bergabunglah dengan [server Discord AI resmi kami](https://aka.ms/genai-discord?WT.mc_id=academic-105485-bethanycheum) untuk bertemu dan berjejaring dengan pembelajar lain yang mengikuti kursus ini serta mendapatkan dukungan. -Jika Anda memiliki masukan produk atau pertanyaan saat membangun, kunjungi [Forum Pengembang Azure AI Foundry](https://aka.ms/foundry/forum) +Jika Anda memiliki masukan produk atau pertanyaan saat membangun, kunjungi [Forum Developer Azure AI Foundry kami](https://aka.ms/foundry/forum) ## Kuis -> **Catatan tentang kuis**: Semua kuis berada di folder Quiz-app di etc\quiz-app, atau [Online Di Sini](https://ff-quizzes.netlify.app/) Mereka terhubung dari dalam pelajaran; aplikasi kuis dapat dijalankan secara lokal atau dideploy ke Azure; ikuti instruksi di folder `quiz-app`. Mereka sedang dalam proses pelokalan. +> **Catatan tentang kuis**: Semua kuis terdapat di folder Quiz-app di etc\quiz-app, atau [Online Di Sini](https://ff-quizzes.netlify.app/) Mereka terhubung dari dalam pelajaran dan aplikasi kuis dapat dijalankan secara lokal atau dideploy ke Azure; ikuti instruksi di folder `quiz-app`. Mereka sedang secara bertahap dilokalisasi. ## Membutuhkan Bantuan -Apakah Anda memiliki saran atau menemukan kesalahan ejaan atau kode? Buat issue atau buat pull request. +Apakah Anda punya saran atau menemukan kesalahan ejaan atau kode? Buat masalah atau kirim permintaan tarik. ## Ucapan Terima Kasih Khusus @@ -163,9 +172,9 @@ Apakah Anda memiliki saran atau menemukan kesalahan ejaan atau kode? Buat issue * **✅ Pembuat Kuis:** [Lateefah Bello](https://github.com/CinnamonXI), [MLSA](https://studentambassadors.microsoft.com/) * **🙏 Kontributor Inti:** [Evgenii Pishchik](https://github.com/Pe4enIks) -## Kurikulum Lain +## Kurikulum Lainnya -Tim kami juga membuat kurikulum lain! Cek di: +Tim kami mengembangkan kurikulum lainnya! Lihat: ### LangChain @@ -209,11 +218,11 @@ Tim kami juga membuat kurikulum lain! Cek di: ## Mendapatkan Bantuan -Jika Anda mengalami kesulitan atau memiliki pertanyaan tentang membangun aplikasi AI. Bergabunglah dengan sesama pelajar dan pengembang berpengalaman dalam diskusi tentang MCP. Ini adalah komunitas yang mendukung di mana pertanyaan diterima dan pengetahuan dibagikan dengan bebas. +Jika Anda mengalami kebuntuan atau memiliki pertanyaan tentang membangun aplikasi AI. Bergabunglah dengan pembelajar dan pengembang berpengalaman dalam diskusi tentang MCP. Ini adalah komunitas yang mendukung di mana pertanyaan disambut dan pengetahuan dibagikan secara bebas. [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) -Jika Anda memiliki masukan produk atau kesalahan saat membangun kunjungi: +Jika Anda memiliki masukan produk atau mengalami kesalahan selama pembangunan kunjungi: [![Microsoft Foundry Developer Forum](https://img.shields.io/badge/GitHub-Microsoft_Foundry_Developer_Forum-blue?style=for-the-badge&logo=github&color=000000&logoColor=fff)](https://aka.ms/foundry/forum) @@ -221,5 +230,5 @@ Jika Anda memiliki masukan produk atau kesalahan saat membangun kunjungi: **Penafian**: -Dokumen ini telah diterjemahkan menggunakan layanan terjemahan AI [Co-op Translator](https://github.com/Azure/co-op-translator). Meskipun kami berupaya untuk mencapai akurasi, harap diketahui bahwa terjemahan otomatis mungkin mengandung kesalahan atau ketidakakuratan. Dokumen asli dalam bahasa aslinya harus dianggap sebagai sumber yang sah dan utama. Untuk informasi penting, disarankan menggunakan jasa penerjemahan manusia profesional. Kami tidak bertanggung jawab atas kesalahpahaman atau salah penafsiran yang timbul dari penggunaan terjemahan ini. +Dokumen ini telah diterjemahkan menggunakan layanan terjemahan AI [Co-op Translator](https://github.com/Azure/co-op-translator). Meskipun kami berusaha mencapai akurasi, harap dipahami bahwa terjemahan otomatis mungkin mengandung kesalahan atau ketidakakuratan. Dokumen asli dalam bahasa aslinya harus dianggap sebagai sumber yang otoritatif. Untuk informasi penting, disarankan menggunakan terjemahan profesional oleh manusia. Kami tidak bertanggung jawab atas kesalahpahaman atau interpretasi yang keliru yang timbul dari penggunaan terjemahan ini. \ No newline at end of file diff --git a/translations/id/lessons/2-Symbolic/MSConceptGraph.ipynb b/translations/id/lessons/2-Symbolic/MSConceptGraph.ipynb index d9836e65..a44dce9f 100644 --- a/translations/id/lessons/2-Symbolic/MSConceptGraph.ipynb +++ b/translations/id/lessons/2-Symbolic/MSConceptGraph.ipynb @@ -1,538 +1,532 @@ { - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Microsoft Concept Graph - API INI SUDAH TIDAK TERSEDIA LAGI TAPI SILAKAN LIHAT NOTEBOOK UNTUK MEMAHAMI KONSEPNYA\n", - "\n", - "[Microsoft Concept Graph](https://concept.research.microsoft.com/) adalah taksonomi besar dari istilah-istilah yang diperoleh dari internet, dengan hubungan `is-a` antara konsep-konsep.\n", - "\n", - "Context Graph tersedia dalam dua bentuk:\n", - " * File teks besar untuk diunduh\n", - " * REST API\n", - "\n", - "Statistik:\n", - " * 5401933 konsep unik,\n", - " * 12551613 instance unik\n", - " * 87603947 hubungan `is-a`\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Menggunakan Layanan Web\n", - "\n", - "Layanan web menawarkan berbagai panggilan untuk memperkirakan probabilitas suatu konsep termasuk dalam berbagai kelompok. Informasi lebih lanjut tersedia [di sini](https://concept.research.microsoft.com/Home/Api). Berikut adalah contoh URL untuk melakukan panggilan: `https://api.conceptnet.io/query?start=/c/en/microsoft&rel=/r/IsA&limit=10`\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "import urllib\n", - "import json\n", - "\n", - "def http(x):\n", - " response = urllib.request.urlopen(x)\n", - " data = response.read()\n", - " return data.decode('utf-8')\n", - "\n", - "def query(x):\n", - " concept = x.lower().replace(' ', '_')\n", - " url = \"https://api.conceptnet.io/query?start=/c/en/{}&rel=/r/IsA&limit=10\".format(\n", - " urllib.parse.quote(concept))\n", - " try:\n", - " result = json.loads(http(url))\n", - " except Exception:\n", - " return {}\n", - " edges = result.get('edges', [])\n", - " if not edges:\n", - " return {}\n", - " total_weight = sum(edge['weight'] for edge in edges)\n", - " if total_weight == 0:\n", - " return {}\n", - " return {edge['end']['label']: edge['weight'] / total_weight for edge in edges}\n", - "\n", - "query('microsoft')" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Mari kita coba mengkategorikan judul berita menggunakan konsep induk. Untuk mendapatkan judul berita, kita akan menggunakan layanan [NewsApi.org](http://newsapi.org). Anda perlu mendapatkan kunci API Anda sendiri untuk menggunakan layanan ini - kunjungi situs web dan daftar untuk rencana pengembang gratis.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "newsapi_key = ''\n", - "def get_news(country='us'):\n", - " res = json.loads(http(\"https://newsapi.org/v2/top-headlines?country={0}&apiKey={1}\".format(country,newsapi_key)))\n", - " return res['articles']\n", - "\n", - "all_titles = [x['title'] for x in get_news('us')+get_news('gb')]" - ] - }, - { - "cell_type": "code", - "execution_count": 21, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "['Covid-19 Live Updates: Vaccines and Boosters News - The New York Times',\n", - " 'Ukrainians Flee Mariupol as Russian Forces Push to Take Port City - The Wall Street Journal',\n", - " 'Bond Yields Jump, Stock Futures Rise After Powell Says Fed Is Ready to Be More Aggressive - The Wall Street Journal',\n", - " 'Putin critic Alexei Navalny found guilty by Russian court - New York Post ',\n", - " \"Supreme Court nominee Ketanji Brown Jackson will face questions at confirmation hearing's second day - CNN\",\n", - " '2 teachers killed at Swedish high school, student arrested - ABC News',\n", - " 'Clues to Covid-19’s Next Moves Come From Sewers - The Wall Street Journal',\n", - " 'Republicans to roll dice by grilling Jackson over child-pornography sentencing decisions | TheHill - The Hill',\n", - " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", - " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", - " \"US stocks whipsawed overnight after Fed Chair Powell's remarks - Fox Business\",\n", - " \"'We've learned absolutely nothing': Tests could again be in short supply if Covid surges - POLITICO\",\n", - " \"Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\",\n", - " 'China searches for victims, flight recorders after first plane crash in 12 years - Reuters',\n", - " 'Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters',\n", - " 'Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español',\n", - " 'Powers Remain and Threats Lurk as Women’s Sweet 16 Is Set - The New York Times',\n", - " 'Webb Space Telescope Begins Multi-Instrument Alignment - SciTechDaily',\n", - " \"UConn vs UCF - NCAA women's tournament second-round highlights - March Madness\",\n", - " 'Bucking Republican Trend, Indiana Governor Vetoes Transgender Sports Bill - The New York Times',\n", - " \"Maggie Fox dead: Coronation Street and Shameless actress dies after 'sudden accident' - Mirror Online - The Mirror\",\n", - " 'China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent',\n", - " 'Daniel Morgan murder: damning report condemns Met police - The Guardian',\n", - " 'What to expect from Rishi Sunak’s Spring Statement - BBC.com',\n", - " 'UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian',\n", - " \"Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\",\n", - " 'Brass Eye’s outtakes show the brutal TV comedy was the tip of an iceberg - The Guardian',\n", - " \"Vladimir Putin threatens civilians to break Mariupol's spirit - The Times\",\n", - " 'Shell U-turn on Cambo oilfield would threaten green targets, say campaigners - The Guardian',\n", - " 'St Helens dog attack: Girl aged 17 months killed at home - BBC',\n", - " \"PlayStation to buy 'Assassin's Creed' veteran Jade Raymond's Haven Studios - NME\",\n", - " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", - " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", - " 'Nintendo Switch finally has folders • Eurogamer.net - Eurogamer.net',\n", - " 'FA to “find a solution” as Liverpool fan group blasts “shambolic” Wembley travel - This Is Anfield',\n", - " 'Manchester United transfer news LIVE Erik ten Hag latest and Man Utd manager updates - Manchester Evening News',\n", - " 'Inflation raises cost of UK government borrowing in February; crude oil up again – business live - The Guardian',\n", - " 'Alexei Navalny: Kremlin critic found guilty of large-scale fraud and contempt of court by Russian court - Sky News',\n", - " \"UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\",\n", - " 'Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian']" - ] - }, - "execution_count": 21, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "all_titles" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Pertama-tama, kami ingin dapat mengekstrak kata benda dari judul berita. Kami akan menggunakan pustaka `TextBlob` untuk melakukan ini, yang menyederhanakan banyak tugas NLP khas seperti ini.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Requirement already satisfied: textblob in c:\\winapp\\miniconda3\\lib\\site-packages (0.17.1)\n", - "Requirement already satisfied: nltk>=3.1 in c:\\winapp\\miniconda3\\lib\\site-packages (from textblob) (3.5)\n", - "Requirement already satisfied: joblib in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (1.0.1)\n", - "Requirement already satisfied: regex in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (2021.11.10)\n", - "Requirement already satisfied: tqdm in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (4.61.2)\n", - "Requirement already satisfied: click in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (8.0.3)\n", - "Requirement already satisfied: colorama in c:\\winapp\\miniconda3\\lib\\site-packages (from click->nltk>=3.1->textblob) (0.4.4)\n", - "Finished.\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "[nltk_data] Downloading package brown to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package brown is already up-to-date!\n", - "[nltk_data] Downloading package punkt to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package punkt is already up-to-date!\n", - "[nltk_data] Downloading package wordnet to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package wordnet is already up-to-date!\n", - "[nltk_data] Downloading package averaged_perceptron_tagger to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package averaged_perceptron_tagger is already up-to-\n", - "[nltk_data] date!\n", - "[nltk_data] Downloading package conll2000 to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package conll2000 is already up-to-date!\n", - "[nltk_data] Downloading package movie_reviews to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package movie_reviews is already up-to-date!\n" - ] - } - ], - "source": [ - "import sys\n", - "!{sys.executable} -m pip install textblob\n", - "!{sys.executable} -m textblob.download_corpora\n", - "from textblob import TextBlob" - ] - }, - { - "cell_type": "code", - "execution_count": 22, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'covid-19 live updates': 1,\n", - " 'vaccines': 1,\n", - " 'boosters': 1,\n", - " 'york': 4,\n", - " 'ukrainians flee mariupol': 1,\n", - " 'forces push': 1,\n", - " 'port city': 1,\n", - " 'wall street journal': 3,\n", - " 'bond yields': 1,\n", - " 'futures rise': 1,\n", - " 'powell says fed': 1,\n", - " 'ready': 1,\n", - " 'be': 1,\n", - " 'aggressive': 1,\n", - " 'putin': 3,\n", - " 'alexei navalny': 2,\n", - " 'russian': 2,\n", - " 'supreme court nominee': 1,\n", - " 'ketanji brown jackson': 1,\n", - " \"confirmation hearing 's\": 1,\n", - " 'cnn': 1,\n", - " 'swedish': 1,\n", - " 'high school': 1,\n", - " 'abc': 1,\n", - " 'clues': 1,\n", - " 'covid-19': 1,\n", - " '’ s': 2,\n", - " 'moves': 1,\n", - " 'sewers': 1,\n", - " 'roll dice': 1,\n", - " 'jackson': 1,\n", - " 'decisions |': 1,\n", - " 'thehill': 1,\n", - " 'clear': 2,\n", - " 'chemical weapons': 2,\n", - " 'ukraine': 3,\n", - " 'claims president': 2,\n", - " 'biden': 2,\n", - " 'nasa': 2,\n", - " 'solar system': 2,\n", - " 'daily mail': 3,\n", - " 'us stocks': 1,\n", - " 'fed chair powell': 1,\n", - " \"'s remarks\": 1,\n", - " 'fox': 1,\n", - " \"'we 've\": 1,\n", - " 'tests': 1,\n", - " 'covid': 1,\n", - " 'politico': 1,\n", - " 'duchess': 1,\n", - " 'cambridge': 1,\n", - " 'swaps khaki jungle gear': 1,\n", - " 'vampire': 1,\n", - " 'wife': 1,\n", - " 'belize': 1,\n", - " 'china': 2,\n", - " 'flight recorders': 1,\n", - " 'plane crash': 1,\n", - " 'reuters': 2,\n", - " 'russian oligarch': 1,\n", - " 'abramovich': 1,\n", - " 'live': 1,\n", - " 'russia': 2,\n", - " 'stops talks': 1,\n", - " 'japan': 1,\n", - " 'español': 1,\n", - " 'powers remain': 1,\n", - " 'threats lurk': 1,\n", - " 'set': 1,\n", - " 'webb': 1,\n", - " 'telescope begins multi-instrument alignment': 1,\n", - " 'scitechdaily': 1,\n", - " 'uconn': 1,\n", - " 'ucf': 1,\n", - " 'ncaa': 1,\n", - " \"women 's tournament second-round highlights\": 1,\n", - " 'march madness': 1,\n", - " 'bucking republican trend': 1,\n", - " 'indiana': 1,\n", - " 'vetoes transgender': 1,\n", - " 'bill': 1,\n", - " 'maggie fox': 1,\n", - " 'coronation': 1,\n", - " 'shameless': 1,\n", - " \"'sudden accident\": 1,\n", - " 'mirror online': 1,\n", - " 'mirror': 2,\n", - " 'plane crash –': 1,\n", - " 'search': 1,\n", - " 'moment flight': 1,\n", - " 'daniel morgan': 1,\n", - " 'report condemns': 1,\n", - " 'met': 1,\n", - " 'guardian': 6,\n", - " 'rishi sunak': 1,\n", - " '’ s spring': 1,\n", - " 'statement': 1,\n", - " 'bbc.com': 1,\n", - " 'uk': 3,\n", - " 'ireland': 1,\n", - " 'euro': 1,\n", - " 'vladimir putin': 2,\n", - " \"'s 'lover\": 1,\n", - " 'brass eye': 1,\n", - " '’ s outtakes': 1,\n", - " 'brutal tv comedy': 1,\n", - " 'threatens civilians': 1,\n", - " 'mariupol': 1,\n", - " \"'s spirit\": 1,\n", - " 'shell u-turn': 1,\n", - " 'cambo': 1,\n", - " 'green targets': 1,\n", - " 'st helens': 1,\n", - " 'dog attack': 1,\n", - " 'girl': 1,\n", - " 'bbc': 1,\n", - " 'playstation': 1,\n", - " \"'assassin 's\": 1,\n", - " 'creed': 1,\n", - " 'jade raymond': 1,\n", - " 'haven studios': 1,\n", - " 'nme': 1,\n", - " 'nintendo switch': 1,\n", - " 'folders •': 1,\n", - " 'eurogamer.net': 2,\n", - " 'fa': 1,\n", - " 'solution ”': 1,\n", - " 'liverpool': 1,\n", - " 'fan group blasts “ shambolic ”': 1,\n", - " 'wembley': 1,\n", - " 'anfield': 1,\n", - " 'manchester': 1,\n", - " 'live erik': 1,\n", - " 'hag': 1,\n", - " 'utd': 1,\n", - " 'manager updates': 1,\n", - " 'manchester evening': 1,\n", - " 'inflation': 1,\n", - " 'government borrowing': 1,\n", - " 'february': 1,\n", - " 'crude oil': 1,\n", - " '– business': 1,\n", - " 'kremlin': 1,\n", - " 'large-scale fraud': 1,\n", - " 'sky': 1,\n", - " 'natural gas': 1,\n", - " 'gazprom': 1,\n", - " 'retail unit': 1,\n", - " 'insider': 1,\n", - " 'zaghari-ratcliffe': 1,\n", - " 'hunt': 1,\n", - " 'iran': 1,\n", - " 'debt payment': 1}" - ] - }, - "execution_count": 22, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "w = {}\n", - "for x in all_titles:\n", - " for n in TextBlob(x).noun_phrases:\n", - " if n in w:\n", - " w[n].append(x)\n", - " else:\n", - " w[n]=[x]\n", - "{ x:len(w[x]) for x in w.keys()}" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Kita dapat melihat bahwa kata benda tidak memberikan kita kelompok tematik yang besar. Mari kita ganti kata benda dengan istilah yang lebih umum yang diperoleh dari grafik konsep. Ini akan memakan waktu, karena kita melakukan panggilan REST untuk setiap frasa kata benda.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "w = {}\n", - "for x in all_titles:\n", - " for noun in TextBlob(x).noun_phrases:\n", - " terms = query(noun)\n", - " for term in [u for u in terms.keys() if terms[u]>0.1]:\n", - " if term in w:\n", - " w[term].append(x)\n", - " else:\n", - " w[term]=[x]" - ] - }, - { - "cell_type": "code", - "execution_count": 24, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'city': 9,\n", - " 'brand': 4,\n", - " 'place': 9,\n", - " 'town': 4,\n", - " 'factor': 4,\n", - " 'film': 4,\n", - " 'nation': 11,\n", - " 'state': 5,\n", - " 'person': 4,\n", - " 'organization': 5,\n", - " 'publication': 10,\n", - " 'market': 5,\n", - " 'economy': 4,\n", - " 'company': 6,\n", - " 'newspaper': 6,\n", - " 'relationship': 6}" - ] - }, - "execution_count": 24, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "{ x:len(w[x]) for x in w.keys() if len(w[x])>3}" - ] - }, - { - "cell_type": "code", - "execution_count": 27, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "ECONOMY:\n", - "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", - "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", - "\n", - "NATION:\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", - "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", - "UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian\n", - "Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", - "Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian\n", - "\n", - "PERSON:\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", - "Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n" - ] - } - ], - "source": [ - "print('\\nECONOMY:\\n'+'\\n'.join(w['economy']))\n", - "print('\\nNATION:\\n'+'\\n'.join(w['nation']))\n", - "print('\\nPERSON:\\n'+'\\n'.join(w['person']))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "\n---\n\n**Penafian**: \nDokumen ini telah diterjemahkan menggunakan layanan penerjemahan AI [Co-op Translator](https://github.com/Azure/co-op-translator). Meskipun kami berupaya untuk memberikan hasil yang akurat, harap diketahui bahwa terjemahan otomatis mungkin mengandung kesalahan atau ketidakakuratan. Dokumen asli dalam bahasa aslinya harus dianggap sebagai sumber yang otoritatif. Untuk informasi yang penting, disarankan menggunakan jasa penerjemahan manusia profesional. Kami tidak bertanggung jawab atas kesalahpahaman atau interpretasi yang salah yang timbul dari penggunaan terjemahan ini.\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3.7.4 64-bit (conda)", - "metadata": { - "interpreter": { - "hash": "86193a1ab0ba47eac1c69c1756090baa3b420b3eea7d4aafab8b85f8b312f0c5" - } - }, - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.5" - }, - "coopTranslator": { - "original_hash": "7b3f1fc049371bcf8649ac9fefdf0413", - "translation_date": "2025-10-03T18:56:57+00:00", - "source_file": "lessons/2-Symbolic/MSConceptGraph.ipynb", - "language_code": "id" - } + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Grafik Konsep menggunakan ConceptNet\n", + "\n", + "> **Catatan:** API [Microsoft Concept Graph](https://concept.research.microsoft.com/) asli sudah tidak tersedia lagi. Notebook ini telah diperbarui untuk menggunakan [ConceptNet](https://conceptnet.io/) sebagai pengganti, yang merupakan graf pengetahuan terbuka yang tersedia secara bebas dengan relasi `is-a` yang serupa antara konsep.\n", + "\n", + "[ConceptNet](https://conceptnet.io/) adalah jaringan semantik besar dari konsep-konsep dengan hubungan seperti `IsA`, `PartOf`, `UsedFor`, dan lainnya. Ia tersedia sebagai:\n", + " * File data yang dapat diunduh\n", + " * REST API (tanpa memerlukan kunci API)\n", + "\n", + "Statistik ConceptNet:\n", + " * Lebih dari 8 juta node\n", + " * 21+ juta tepi di lebih dari 83 bahasa\n" + ] }, - "nbformat": 4, - "nbformat_minor": 2 + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Menggunakan Layanan Web ConceptNet\n", + "\n", + "[ConceptNet](https://conceptnet.io/) menyediakan REST API untuk menjelajahi hubungan `is-a` (IsA) antara konsep. Tidak diperlukan kunci API. \n", + "Berikut adalah URL contoh untuk memanggil: `https://api.conceptnet.io/query?start=/c/en/microsoft&rel=/r/IsA&limit=10`\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "import urllib\n", + "import json\n", + "\n", + "def http(x):\n", + " response = urllib.request.urlopen(x)\n", + " data = response.read()\n", + " return data.decode('utf-8')\n", + "\n", + "def query(x):\n", + " concept = x.lower().replace(' ', '_')\n", + " url = \"https://api.conceptnet.io/query?start=/c/en/{}&rel=/r/IsA&limit=10\".format(\n", + " urllib.parse.quote(concept))\n", + " try:\n", + " result = json.loads(http(url))\n", + " except Exception:\n", + " return {}\n", + " edges = result.get('edges', [])\n", + " if not edges:\n", + " return {}\n", + " total_weight = sum(edge['weight'] for edge in edges)\n", + " if total_weight == 0:\n", + " return {}\n", + " return {edge['end']['label']: edge['weight'] / total_weight for edge in edges}\n", + "\n", + "query('microsoft')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Mari kita coba mengkategorikan judul berita menggunakan konsep induk. Untuk mendapatkan judul berita, kita akan menggunakan layanan [NewsApi.org](http://newsapi.org). Anda perlu mendapatkan kunci API sendiri untuk menggunakan layanan ini - kunjungi situs web dan daftar untuk paket pengembang gratis.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "newsapi_key = ''\n", + "def get_news(country='us'):\n", + " res = json.loads(http(\"https://newsapi.org/v2/top-headlines?country={0}&apiKey={1}\".format(country,newsapi_key)))\n", + " return res['articles']\n", + "\n", + "all_titles = [x['title'] for x in get_news('us')+get_news('gb')]" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['Covid-19 Live Updates: Vaccines and Boosters News - The New York Times',\n", + " 'Ukrainians Flee Mariupol as Russian Forces Push to Take Port City - The Wall Street Journal',\n", + " 'Bond Yields Jump, Stock Futures Rise After Powell Says Fed Is Ready to Be More Aggressive - The Wall Street Journal',\n", + " 'Putin critic Alexei Navalny found guilty by Russian court - New York Post ',\n", + " \"Supreme Court nominee Ketanji Brown Jackson will face questions at confirmation hearing's second day - CNN\",\n", + " '2 teachers killed at Swedish high school, student arrested - ABC News',\n", + " 'Clues to Covid-19’s Next Moves Come From Sewers - The Wall Street Journal',\n", + " 'Republicans to roll dice by grilling Jackson over child-pornography sentencing decisions | TheHill - The Hill',\n", + " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", + " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", + " \"US stocks whipsawed overnight after Fed Chair Powell's remarks - Fox Business\",\n", + " \"'We've learned absolutely nothing': Tests could again be in short supply if Covid surges - POLITICO\",\n", + " \"Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\",\n", + " 'China searches for victims, flight recorders after first plane crash in 12 years - Reuters',\n", + " 'Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters',\n", + " 'Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español',\n", + " 'Powers Remain and Threats Lurk as Women’s Sweet 16 Is Set - The New York Times',\n", + " 'Webb Space Telescope Begins Multi-Instrument Alignment - SciTechDaily',\n", + " \"UConn vs UCF - NCAA women's tournament second-round highlights - March Madness\",\n", + " 'Bucking Republican Trend, Indiana Governor Vetoes Transgender Sports Bill - The New York Times',\n", + " \"Maggie Fox dead: Coronation Street and Shameless actress dies after 'sudden accident' - Mirror Online - The Mirror\",\n", + " 'China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent',\n", + " 'Daniel Morgan murder: damning report condemns Met police - The Guardian',\n", + " 'What to expect from Rishi Sunak’s Spring Statement - BBC.com',\n", + " 'UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian',\n", + " \"Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\",\n", + " 'Brass Eye’s outtakes show the brutal TV comedy was the tip of an iceberg - The Guardian',\n", + " \"Vladimir Putin threatens civilians to break Mariupol's spirit - The Times\",\n", + " 'Shell U-turn on Cambo oilfield would threaten green targets, say campaigners - The Guardian',\n", + " 'St Helens dog attack: Girl aged 17 months killed at home - BBC',\n", + " \"PlayStation to buy 'Assassin's Creed' veteran Jade Raymond's Haven Studios - NME\",\n", + " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", + " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", + " 'Nintendo Switch finally has folders • Eurogamer.net - Eurogamer.net',\n", + " 'FA to “find a solution” as Liverpool fan group blasts “shambolic” Wembley travel - This Is Anfield',\n", + " 'Manchester United transfer news LIVE Erik ten Hag latest and Man Utd manager updates - Manchester Evening News',\n", + " 'Inflation raises cost of UK government borrowing in February; crude oil up again – business live - The Guardian',\n", + " 'Alexei Navalny: Kremlin critic found guilty of large-scale fraud and contempt of court by Russian court - Sky News',\n", + " \"UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\",\n", + " 'Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian']" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "all_titles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Pertama-tama, kita ingin dapat mengekstrak kata benda dari judul berita. Kita akan menggunakan perpustakaan `TextBlob` untuk melakukan ini, yang menyederhanakan banyak tugas NLP khas seperti ini.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Requirement already satisfied: textblob in c:\\winapp\\miniconda3\\lib\\site-packages (0.17.1)\n", + "Requirement already satisfied: nltk>=3.1 in c:\\winapp\\miniconda3\\lib\\site-packages (from textblob) (3.5)\n", + "Requirement already satisfied: joblib in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (1.0.1)\n", + "Requirement already satisfied: regex in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (2021.11.10)\n", + "Requirement already satisfied: tqdm in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (4.61.2)\n", + "Requirement already satisfied: click in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (8.0.3)\n", + "Requirement already satisfied: colorama in c:\\winapp\\miniconda3\\lib\\site-packages (from click->nltk>=3.1->textblob) (0.4.4)\n", + "Finished.\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "[nltk_data] Downloading package brown to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package brown is already up-to-date!\n", + "[nltk_data] Downloading package punkt to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package punkt is already up-to-date!\n", + "[nltk_data] Downloading package wordnet to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package wordnet is already up-to-date!\n", + "[nltk_data] Downloading package averaged_perceptron_tagger to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package averaged_perceptron_tagger is already up-to-\n", + "[nltk_data] date!\n", + "[nltk_data] Downloading package conll2000 to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package conll2000 is already up-to-date!\n", + "[nltk_data] Downloading package movie_reviews to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package movie_reviews is already up-to-date!\n" + ] + } + ], + "source": [ + "import sys\n", + "!{sys.executable} -m pip install textblob\n", + "!{sys.executable} -m textblob.download_corpora\n", + "from textblob import TextBlob" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'covid-19 live updates': 1,\n", + " 'vaccines': 1,\n", + " 'boosters': 1,\n", + " 'york': 4,\n", + " 'ukrainians flee mariupol': 1,\n", + " 'forces push': 1,\n", + " 'port city': 1,\n", + " 'wall street journal': 3,\n", + " 'bond yields': 1,\n", + " 'futures rise': 1,\n", + " 'powell says fed': 1,\n", + " 'ready': 1,\n", + " 'be': 1,\n", + " 'aggressive': 1,\n", + " 'putin': 3,\n", + " 'alexei navalny': 2,\n", + " 'russian': 2,\n", + " 'supreme court nominee': 1,\n", + " 'ketanji brown jackson': 1,\n", + " \"confirmation hearing 's\": 1,\n", + " 'cnn': 1,\n", + " 'swedish': 1,\n", + " 'high school': 1,\n", + " 'abc': 1,\n", + " 'clues': 1,\n", + " 'covid-19': 1,\n", + " '’ s': 2,\n", + " 'moves': 1,\n", + " 'sewers': 1,\n", + " 'roll dice': 1,\n", + " 'jackson': 1,\n", + " 'decisions |': 1,\n", + " 'thehill': 1,\n", + " 'clear': 2,\n", + " 'chemical weapons': 2,\n", + " 'ukraine': 3,\n", + " 'claims president': 2,\n", + " 'biden': 2,\n", + " 'nasa': 2,\n", + " 'solar system': 2,\n", + " 'daily mail': 3,\n", + " 'us stocks': 1,\n", + " 'fed chair powell': 1,\n", + " \"'s remarks\": 1,\n", + " 'fox': 1,\n", + " \"'we 've\": 1,\n", + " 'tests': 1,\n", + " 'covid': 1,\n", + " 'politico': 1,\n", + " 'duchess': 1,\n", + " 'cambridge': 1,\n", + " 'swaps khaki jungle gear': 1,\n", + " 'vampire': 1,\n", + " 'wife': 1,\n", + " 'belize': 1,\n", + " 'china': 2,\n", + " 'flight recorders': 1,\n", + " 'plane crash': 1,\n", + " 'reuters': 2,\n", + " 'russian oligarch': 1,\n", + " 'abramovich': 1,\n", + " 'live': 1,\n", + " 'russia': 2,\n", + " 'stops talks': 1,\n", + " 'japan': 1,\n", + " 'español': 1,\n", + " 'powers remain': 1,\n", + " 'threats lurk': 1,\n", + " 'set': 1,\n", + " 'webb': 1,\n", + " 'telescope begins multi-instrument alignment': 1,\n", + " 'scitechdaily': 1,\n", + " 'uconn': 1,\n", + " 'ucf': 1,\n", + " 'ncaa': 1,\n", + " \"women 's tournament second-round highlights\": 1,\n", + " 'march madness': 1,\n", + " 'bucking republican trend': 1,\n", + " 'indiana': 1,\n", + " 'vetoes transgender': 1,\n", + " 'bill': 1,\n", + " 'maggie fox': 1,\n", + " 'coronation': 1,\n", + " 'shameless': 1,\n", + " \"'sudden accident\": 1,\n", + " 'mirror online': 1,\n", + " 'mirror': 2,\n", + " 'plane crash –': 1,\n", + " 'search': 1,\n", + " 'moment flight': 1,\n", + " 'daniel morgan': 1,\n", + " 'report condemns': 1,\n", + " 'met': 1,\n", + " 'guardian': 6,\n", + " 'rishi sunak': 1,\n", + " '’ s spring': 1,\n", + " 'statement': 1,\n", + " 'bbc.com': 1,\n", + " 'uk': 3,\n", + " 'ireland': 1,\n", + " 'euro': 1,\n", + " 'vladimir putin': 2,\n", + " \"'s 'lover\": 1,\n", + " 'brass eye': 1,\n", + " '’ s outtakes': 1,\n", + " 'brutal tv comedy': 1,\n", + " 'threatens civilians': 1,\n", + " 'mariupol': 1,\n", + " \"'s spirit\": 1,\n", + " 'shell u-turn': 1,\n", + " 'cambo': 1,\n", + " 'green targets': 1,\n", + " 'st helens': 1,\n", + " 'dog attack': 1,\n", + " 'girl': 1,\n", + " 'bbc': 1,\n", + " 'playstation': 1,\n", + " \"'assassin 's\": 1,\n", + " 'creed': 1,\n", + " 'jade raymond': 1,\n", + " 'haven studios': 1,\n", + " 'nme': 1,\n", + " 'nintendo switch': 1,\n", + " 'folders •': 1,\n", + " 'eurogamer.net': 2,\n", + " 'fa': 1,\n", + " 'solution ”': 1,\n", + " 'liverpool': 1,\n", + " 'fan group blasts “ shambolic ”': 1,\n", + " 'wembley': 1,\n", + " 'anfield': 1,\n", + " 'manchester': 1,\n", + " 'live erik': 1,\n", + " 'hag': 1,\n", + " 'utd': 1,\n", + " 'manager updates': 1,\n", + " 'manchester evening': 1,\n", + " 'inflation': 1,\n", + " 'government borrowing': 1,\n", + " 'february': 1,\n", + " 'crude oil': 1,\n", + " '– business': 1,\n", + " 'kremlin': 1,\n", + " 'large-scale fraud': 1,\n", + " 'sky': 1,\n", + " 'natural gas': 1,\n", + " 'gazprom': 1,\n", + " 'retail unit': 1,\n", + " 'insider': 1,\n", + " 'zaghari-ratcliffe': 1,\n", + " 'hunt': 1,\n", + " 'iran': 1,\n", + " 'debt payment': 1}" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w = {}\n", + "for x in all_titles:\n", + " for n in TextBlob(x).noun_phrases:\n", + " if n in w:\n", + " w[n].append(x)\n", + " else:\n", + " w[n]=[x]\n", + "{ x:len(w[x]) for x in w.keys()}" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Kita dapat melihat bahwa kata benda tidak memberikan kita kelompok tematik yang besar. Mari kita ganti kata benda dengan istilah yang lebih umum yang diperoleh dari grafik konsep. Ini akan memakan waktu, karena kita melakukan panggilan REST untuk setiap frasa kata benda.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "w = {}\n", + "for x in all_titles:\n", + " for noun in TextBlob(x).noun_phrases:\n", + " terms = query(noun)\n", + " for term in [u for u in terms.keys() if terms[u]>0.1]:\n", + " if term in w:\n", + " w[term].append(x)\n", + " else:\n", + " w[term]=[x]" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'city': 9,\n", + " 'brand': 4,\n", + " 'place': 9,\n", + " 'town': 4,\n", + " 'factor': 4,\n", + " 'film': 4,\n", + " 'nation': 11,\n", + " 'state': 5,\n", + " 'person': 4,\n", + " 'organization': 5,\n", + " 'publication': 10,\n", + " 'market': 5,\n", + " 'economy': 4,\n", + " 'company': 6,\n", + " 'newspaper': 6,\n", + " 'relationship': 6}" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "{ x:len(w[x]) for x in w.keys() if len(w[x])>3}" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "ECONOMY:\n", + "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", + "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", + "\n", + "NATION:\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", + "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", + "UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian\n", + "Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", + "Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian\n", + "\n", + "PERSON:\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", + "Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n" + ] + } + ], + "source": [ + "print('\\nECONOMY:\\n'+'\\n'.join(w['economy']))\n", + "print('\\nNATION:\\n'+'\\n'.join(w['nation']))\n", + "print('\\nPERSON:\\n'+'\\n'.join(w['person']))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "---\n\n\n**Penafian**: \nDokumen ini telah diterjemahkan menggunakan layanan terjemahan AI [Co-op Translator](https://github.com/Azure/co-op-translator). Meskipun kami berupaya memberikan terjemahan yang akurat, harap diperhatikan bahwa terjemahan otomatis mungkin mengandung kesalahan atau ketidakakuratan. Dokumen asli dalam bahasa aslinya harus dianggap sebagai sumber yang sahih. Untuk informasi penting, disarankan menggunakan terjemahan profesional oleh manusia. Kami tidak bertanggung jawab atas kesalahpahaman atau interpretasi yang salah yang timbul dari penggunaan terjemahan ini.\n\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3.7.4 64-bit (conda)", + "metadata": { + "interpreter": { + "hash": "86193a1ab0ba47eac1c69c1756090baa3b420b3eea7d4aafab8b85f8b312f0c5" + } + }, + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.5" + } + }, + "nbformat": 4, + "nbformat_minor": 2 } \ No newline at end of file diff --git a/translations/vi/.co-op-translator.json b/translations/vi/.co-op-translator.json index 63edd36b..c306a739 100644 --- a/translations/vi/.co-op-translator.json +++ b/translations/vi/.co-op-translator.json @@ -6,8 +6,8 @@ "language_code": "vi" }, "README.md": { - "original_hash": "75fe3383afc51eaa84b82ace619ffea7", - "translation_date": "2026-02-06T08:38:39+00:00", + "original_hash": "9eaca839b0b3f6d7f0a195fd33cebd30", + "translation_date": "2026-02-28T09:14:32+00:00", "source_file": "README.md", "language_code": "vi" }, @@ -89,6 +89,12 @@ "source_file": "lessons/1-Intro/assignment.md", "language_code": "vi" }, + "lessons/2-Symbolic/MSConceptGraph.ipynb": { + "original_hash": "e5690bbc6e5119a96a8172ec7261db67", + "translation_date": "2026-02-28T09:11:31+00:00", + "source_file": "lessons/2-Symbolic/MSConceptGraph.ipynb", + "language_code": "vi" + }, "lessons/2-Symbolic/README.md": { "original_hash": "f9f06b266b8b2bfc6b8792ff2bb1bea4", "translation_date": "2026-01-16T03:41:43+00:00", diff --git a/translations/vi/README.md b/translations/vi/README.md index bd594354..13ffecbc 100644 --- a/translations/vi/README.md +++ b/translations/vi/README.md @@ -5,221 +5,230 @@ [![Chào đón PR](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Người theo dõi GitHub](https://img.shields.io/github/watchers/microsoft/AI-For-Beginners.svg?style=social&label=Watch)](https://GitHub.com/microsoft/AI-For-Beginners/watchers/) -[![Chia nhánh GitHub](https://img.shields.io/github/forks/microsoft/AI-For-Beginners.svg?style=social&label=Fork)](https://GitHub.com/microsoft/AI-For-Beginners/network/) +[![Nhánh GitHub](https://img.shields.io/github/forks/microsoft/AI-For-Beginners.svg?style=social&label=Fork)](https://GitHub.com/microsoft/AI-For-Beginners/network/) [![Sao GitHub](https://img.shields.io/github/stars/microsoft/AI-For-Beginners.svg?style=social&label=Star)](https://GitHub.com/microsoft/AI-For-Beginners/stargazers/) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/microsoft/ai-for-beginners/HEAD) [![Gitter](https://badges.gitter.im/Microsoft/ai-for-beginners.svg)](https://gitter.im/Microsoft/ai-for-beginners?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) -# Trí tuệ nhân tạo cho người mới bắt đầu - Một chương trình học +# Trí tuệ nhân tạo dành cho người mới bắt đầu - Một chương trình học |![Sketchnote bởi @girlie_mac https://twitter.com/girlie_mac](https://github.com/microsoft/AI-For-Beginners/raw/main/lessons/sketchnotes/ai-overview.png)| |:---:| -| AI Cho Người Mới Bắt Đầu - _Sketchnote bởi [@girlie_mac](https://twitter.com/girlie_mac)_ | +| AI Dành Cho Người Mới Bắt Đầu - _Sketchnote bởi [@girlie_mac](https://twitter.com/girlie_mac)_ | -Khám phá thế giới của **Trí tuệ nhân tạo** (AI) với chương trình học 12 tuần, 24 bài học của chúng tôi! Nó bao gồm các bài học thực hành, câu đố và phòng thí nghiệm. Chương trình học thân thiện với người mới bắt đầu và bao gồm các công cụ như TensorFlow và PyTorch, cũng như đạo đức trong AI +Khám phá thế giới của **Trí tuệ nhân tạo** (AI) với chương trình học 12 tuần, 24 bài học của chúng tôi! Nó bao gồm các bài học thực tiễn, câu đố và phòng lab. Chương trình thích hợp cho người mới bắt đầu và bao quát các công cụ như TensorFlow và PyTorch, cũng như đạo đức trong AI ### 🌐 Hỗ trợ đa ngôn ngữ -#### Hỗ trợ qua GitHub Action (Tự động & Luôn cập nhật) +#### Hỗ trợ qua GitHub Action (Tự động & Luôn Cập Nhật) -[Tiếng Ả Rập](../ar/README.md) | [Tiếng Bengal](../bn/README.md) | [Tiếng Bulgaria](../bg/README.md) | [Tiếng Miến Điện (Myanmar)](../my/README.md) | [Tiếng Trung (Giản thể)](../zh-CN/README.md) | [Tiếng Trung (Phồn thể, Hồng Kông)](../zh-HK/README.md) | [Tiếng Trung (Phồn thể, Macau)](../zh-MO/README.md) | [Tiếng Trung (Phồn thể, Đài Loan)](../zh-TW/README.md) | [Tiếng Croatia](../hr/README.md) | [Tiếng Séc](../cs/README.md) | [Tiếng Đan Mạch](../da/README.md) | [Tiếng Hà Lan](../nl/README.md) | [Tiếng Estonia](../et/README.md) | [Tiếng Phần Lan](../fi/README.md) | [Tiếng Pháp](../fr/README.md) | [Tiếng Đức](../de/README.md) | [Tiếng Hy Lạp](../el/README.md) | [Tiếng Do Thái](../he/README.md) | [Tiếng Hindi](../hi/README.md) | [Tiếng Hungary](../hu/README.md) | [Tiếng Indonesia](../id/README.md) | [Tiếng Ý](../it/README.md) | [Tiếng Nhật](../ja/README.md) | [Tiếng Kannada](../kn/README.md) | [Tiếng Hàn](../ko/README.md) | [Tiếng Litva](../lt/README.md) | [Tiếng Mã Lai](../ms/README.md) | [Tiếng Malayalam](../ml/README.md) | [Tiếng Marathi](../mr/README.md) | [Tiếng Nepal](../ne/README.md) | [Tiếng Nigeria Pidgin](../pcm/README.md) | [Tiếng Na Uy](../no/README.md) | [Tiếng Ba Tư (Farsi)](../fa/README.md) | [Tiếng Ba Lan](../pl/README.md) | [Tiếng Bồ Đào Nha (Brazil)](../pt-BR/README.md) | [Tiếng Bồ Đào Nha (Bồ Đào Nha)](../pt-PT/README.md) | [Tiếng Punjabi (Gurmukhi)](../pa/README.md) | [Tiếng Romania](../ro/README.md) | [Tiếng Nga](../ru/README.md) | [Tiếng Serbia (Chữ Cyrillic)](../sr/README.md) | [Tiếng Slovak](../sk/README.md) | [Tiếng Slovenia](../sl/README.md) | [Tiếng Tây Ban Nha](../es/README.md) | [Tiếng Swahili](../sw/README.md) | [Tiếng Thụy Điển](../sv/README.md) | [Tiếng Tagalog (Philippines)](../tl/README.md) | [Tiếng Tamil](../ta/README.md) | [Tiếng Telugu](../te/README.md) | [Tiếng Thái](../th/README.md) | [Tiếng Thổ Nhĩ Kỳ](../tr/README.md) | [Tiếng Ukraina](../uk/README.md) | [Tiếng Urdu](../ur/README.md) | [Tiếng Việt](./README.md) +[Tiếng Ả Rập](../ar/README.md) | [Tiếng Bengal](../bn/README.md) | [Tiếng Bungari](../bg/README.md) | [Tiếng Miến Điện (Myanmar)](../my/README.md) | [Tiếng Trung (Giản thể)](../zh-CN/README.md) | [Tiếng Trung (Phồn thể, Hồng Kông)](../zh-HK/README.md) | [Tiếng Trung (Phồn thể, Macau)](../zh-MO/README.md) | [Tiếng Trung (Phồn thể, Đài Loan)](../zh-TW/README.md) | [Tiếng Croatia](../hr/README.md) | [Tiếng Séc](../cs/README.md) | [Tiếng Đan Mạch](../da/README.md) | [Tiếng Hà Lan](../nl/README.md) | [Tiếng Estonia](../et/README.md) | [Tiếng Phần Lan](../fi/README.md) | [Tiếng Pháp](../fr/README.md) | [Tiếng Đức](../de/README.md) | [Tiếng Hy Lạp](../el/README.md) | [Tiếng Do Thái](../he/README.md) | [Tiếng Hindi](../hi/README.md) | [Tiếng Hungary](../hu/README.md) | [Tiếng Indonesia](../id/README.md) | [Tiếng Ý](../it/README.md) | [Tiếng Nhật](../ja/README.md) | [Tiếng Kannada](../kn/README.md) | [Tiếng Hàn](../ko/README.md) | [Tiếng Litva](../lt/README.md) | [Tiếng Mã Lai](../ms/README.md) | [Tiếng Malayalam](../ml/README.md) | [Tiếng Marathi](../mr/README.md) | [Tiếng Nepal](../ne/README.md) | [Tiếng Pidgin Nigeria](../pcm/README.md) | [Tiếng Na Uy](../no/README.md) | [Tiếng Ba Tư (Farsi)](../fa/README.md) | [Tiếng Ba Lan](../pl/README.md) | [Tiếng Bồ Đào Nha (Brazil)](../pt-BR/README.md) | [Tiếng Bồ Đào Nha (Bồ Đào Nha)](../pt-PT/README.md) | [Tiếng Punjab (Gurmukhi)](../pa/README.md) | [Tiếng Romania](../ro/README.md) | [Tiếng Nga](../ru/README.md) | [Tiếng Serbia (Chữ Cyrillic)](../sr/README.md) | [Tiếng Slovakia](../sk/README.md) | [Tiếng Slovenia](../sl/README.md) | [Tiếng Tây Ban Nha](../es/README.md) | [Tiếng Swahili](../sw/README.md) | [Tiếng Thụy Điển](../sv/README.md) | [Tiếng Tagalog (Philippines)](../tl/README.md) | [Tiếng Tamil](../ta/README.md) | [Tiếng Telugu](../te/README.md) | [Tiếng Thái](../th/README.md) | [Tiếng Thổ Nhĩ Kỳ](../tr/README.md) | [Tiếng Ukraina](../uk/README.md) | [Tiếng Urdu](../ur/README.md) | [Tiếng Việt](./README.md) -> **Ưu tiên Sao chép cục bộ?** - -> Kho lưu trữ này bao gồm hơn 50 bản dịch ngôn ngữ, điều này làm tăng đáng kể kích thước tải xuống. Để sao chép mà không có bản dịch, hãy sử dụng sparse checkout: +> **Ưu tiên sao chép cục bộ?** +> +> Kho lưu trữ này bao gồm hơn 50 bản dịch ngôn ngữ, làm tăng đáng kể kích thước tải xuống. Để sao chép mà không có bản dịch, hãy sử dụng sparse checkout: +> +> **Bash / macOS / Linux:** > ```bash > git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git > cd AI-For-Beginners > git sparse-checkout set --no-cone '/*' '!translations' '!translated_images' > ``` +> +> **CMD (Windows):** +> ```cmd +> git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git +> cd AI-For-Beginners +> git sparse-checkout set --no-cone "/*" "!translations" "!translated_images" +> ``` +> > Điều này cung cấp cho bạn mọi thứ bạn cần để hoàn thành khóa học với tốc độ tải xuống nhanh hơn nhiều. -**Nếu bạn muốn có thêm các ngôn ngữ dịch được hỗ trợ, danh sách có tại [đây](https://github.com/Azure/co-op-translator/blob/main/getting_started/supported-languages.md)** +**Nếu bạn muốn có thêm các ngôn ngữ dịch hỗ trợ, các ngôn ngữ được liệt kê [ở đây](https://github.com/Azure/co-op-translator/blob/main/getting_started/supported-languages.md)** -## Tham gia Cộng đồng +## Tham gia cộng đồng [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) -## Bạn sẽ học được gì +## Những gì bạn sẽ học -**[Bản đồ tư duy của Khóa học](http://soshnikov.com/courses/ai-for-beginners/mindmap.html)** +**[Sơ đồ tư duy của Khóa học](http://soshnikov.com/courses/ai-for-beginners/mindmap.html)** Trong chương trình học này, bạn sẽ học: -* Các phương pháp tiếp cận khác nhau về Trí tuệ nhân tạo, bao gồm phương pháp "cổ điển" ký hiệu với **Biểu diễn Kiến thức** và suy luận ([GOFAI](https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence)). -* **Mạng nơ-ron** và **Học sâu**, là trung tâm của AI hiện đại. Chúng tôi sẽ minh họa các khái niệm đằng sau những chủ đề quan trọng này bằng mã trong hai framework phổ biến nhất - [TensorFlow](http://Tensorflow.org) và [PyTorch](http://pytorch.org). -* **Kiến trúc Mạng nơ-ron** để làm việc với hình ảnh và văn bản. Chúng tôi sẽ đề cập các mô hình gần đây nhưng có thể hơi thiếu về mặt công nghệ tiên tiến nhất. -* Các phương pháp AI ít phổ biến hơn, như **Thuật toán Di truyền** và **Hệ thống Đa tác nhân**. +* Các phương pháp tiếp cận khác nhau với Trí tuệ Nhân tạo, bao gồm phương pháp biểu tượng "cũ kỹ" với **Biểu diễn tri thức** và suy luận ([GOFAI](https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence)). +* **Mạng nơ-ron** và **Học sâu**, là cốt lõi của AI hiện đại. Chúng tôi sẽ minh họa các khái niệm đằng sau những chủ đề quan trọng này bằng mã trong hai nền tảng phổ biến nhất – [TensorFlow](http://Tensorflow.org) và [PyTorch](http://pytorch.org). +* **Kiến trúc thần kinh** để làm việc với hình ảnh và văn bản. Chúng tôi sẽ bao gồm các mô hình gần đây nhưng có thể còn thiếu một chút về trạng thái nghệ thuật mới nhất. +* Các phương pháp AI ít phổ biến hơn, chẳng hạn như **Thuật toán Di truyền** và **Hệ đa tác nhân**. -Những gì chương trình học này sẽ không đề cập: +Những gì chúng tôi sẽ không bao gồm trong chương trình này: -> [Tìm tất cả tài nguyên bổ sung cho khóa học này trong bộ sưu tập Microsoft Learn của chúng tôi](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) +> [Tìm tất cả các nguồn bổ sung cho khóa học này trong bộ sưu tập Microsoft Learn](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) -* Trường hợp kinh doanh sử dụng **AI trong Kinh doanh**. Hãy cân nhắc theo học lộ trình [Giới thiệu AI cho người dùng doanh nghiệp](https://docs.microsoft.com/learn/paths/introduction-ai-for-business-users/?WT.mc_id=academic-77998-bethanycheum) trên Microsoft Learn, hoặc [AI Business School](https://www.microsoft.com/ai/ai-business-school/?WT.mc_id=academic-77998-bethanycheum), phát triển hợp tác với [INSEAD](https://www.insead.edu/). -* **Học máy cổ điển**, được mô tả rõ trong [Chương trình Học máy cho Người mới bắt đầu](http://github.com/Microsoft/ML-for-Beginners). -* Các ứng dụng AI thực tiễn xây dựng bằng **[Dịch vụ nhận thức](https://azure.microsoft.com/services/cognitive-services/?WT.mc_id=academic-77998-bethanycheum)**. Với điều này, chúng tôi khuyên bạn bắt đầu với các mô-đun Microsoft Learn cho [thị giác](https://docs.microsoft.com/learn/paths/create-computer-vision-solutions-azure-cognitive-services/?WT.mc_id=academic-77998-bethanycheum), [xử lý ngôn ngữ tự nhiên](https://docs.microsoft.com/learn/paths/explore-natural-language-processing/?WT.mc_id=academic-77998-bethanycheum), **[AI Sinh tạo với Azure OpenAI Service](https://learn.microsoft.com/en-us/training/paths/develop-ai-solutions-azure-openai/?WT.mc_id=academic-77998-bethanycheum)** và các lĩnh vực khác. -* Các **Khung điện toán đám mây ML** cụ thể, như [Azure Machine Learning](https://azure.microsoft.com/services/machine-learning/?WT.mc_id=academic-77998-bethanycheum), [Microsoft Fabric](https://learn.microsoft.com/en-us/training/paths/get-started-fabric/?WT.mc_id=academic-77998-bethanycheum), hoặc [Azure Databricks](https://docs.microsoft.com/learn/paths/data-engineer-azure-databricks?WT.mc_id=academic-77998-bethanycheum). Hãy cân nhắc sử dụng các khóa học [Xây dựng và vận hành giải pháp học máy với Azure Machine Learning](https://docs.microsoft.com/learn/paths/build-ai-solutions-with-azure-ml-service/?WT.mc_id=academic-77998-bethanycheum) và [Xây dựng và vận hành giải pháp học máy với Azure Databricks](https://docs.microsoft.com/learn/paths/build-operate-machine-learning-solutions-azure-databricks/?WT.mc_id=academic-77998-bethanycheum). -* **AI đối thoại** và **Chat Bot**. Có một lộ trình học [Tạo giải pháp AI đối thoại](https://docs.microsoft.com/learn/paths/create-conversational-ai-solutions/?WT.mc_id=academic-77998-bethanycheum) riêng biệt, và bạn cũng có thể tham khảo [bài đăng blog này](https://soshnikov.com/azure/hello-bot-conversational-ai-on-microsoft-platform/) để biết thêm chi tiết. -* **Toán học sâu** đằng sau học sâu. Với điều này, chúng tôi khuyên đọc [Deep Learning](https://www.amazon.com/Deep-Learning-Adaptive-Computation-Machine/dp/0262035618) của Ian Goodfellow, Yoshua Bengio và Aaron Courville, cũng có sẵn trực tuyến tại [https://www.deeplearningbook.org/](https://www.deeplearningbook.org/). +* Trường hợp kinh doanh sử dụng **AI trong doanh nghiệp**. Hãy cân nhắc theo học đường dẫn [Giới thiệu AI cho người dùng doanh nghiệp](https://docs.microsoft.com/learn/paths/introduction-ai-for-business-users/?WT.mc_id=academic-77998-bethanycheum) trên Microsoft Learn, hoặc [Trường Kinh doanh AI](https://www.microsoft.com/ai/ai-business-school/?WT.mc_id=academic-77998-bethanycheum), được phát triển hợp tác cùng [INSEAD](https://www.insead.edu/). +* **Học máy cổ điển**, được mô tả rõ trong [Chương trình học Máy học cho người mới bắt đầu](http://github.com/Microsoft/ML-for-Beginners). +* Các ứng dụng AI thực tế xây dựng bằng **[Dịch vụ nhận thức](https://azure.microsoft.com/services/cognitive-services/?WT.mc_id=academic-77998-bethanycheum)**. Để làm điều này, chúng tôi khuyến nghị bạn bắt đầu với các module trên Microsoft Learn về [thị giác](https://docs.microsoft.com/learn/paths/create-computer-vision-solutions-azure-cognitive-services/?WT.mc_id=academic-77998-bethanycheum), [xử lý ngôn ngữ tự nhiên](https://docs.microsoft.com/learn/paths/explore-natural-language-processing/?WT.mc_id=academic-77998-bethanycheum), **[AI sinh tạo với Azure OpenAI Service](https://learn.microsoft.com/en-us/training/paths/develop-ai-solutions-azure-openai/?WT.mc_id=academic-77998-bethanycheum)** và các lĩnh vực khác. +* Các **Khung máy học trên điện toán đám mây** cụ thể như [Azure Machine Learning](https://azure.microsoft.com/services/machine-learning/?WT.mc_id=academic-77998-bethanycheum), [Microsoft Fabric](https://learn.microsoft.com/en-us/training/paths/get-started-fabric/?WT.mc_id=academic-77998-bethanycheum), hoặc [Azure Databricks](https://docs.microsoft.com/learn/paths/data-engineer-azure-databricks?WT.mc_id=academic-77998-bethanycheum). Hãy cân nhắc sử dụng các đường dẫn học [Xây dựng và vận hành giải pháp học máy với Azure Machine Learning](https://docs.microsoft.com/learn/paths/build-ai-solutions-with-azure-ml-service/?WT.mc_id=academic-77998-bethanycheum) và [Xây dựng và vận hành giải pháp học máy với Azure Databricks](https://docs.microsoft.com/learn/paths/build-operate-machine-learning-solutions-azure-databricks/?WT.mc_id=academic-77998-bethanycheum). +* **AI hội thoại** và **Chat Bot**. Có một đường dẫn học riêng [Tạo các giải pháp AI hội thoại](https://docs.microsoft.com/learn/paths/create-conversational-ai-solutions/?WT.mc_id=academic-77998-bethanycheum), và bạn cũng có thể tham khảo [bài đăng blog này](https://soshnikov.com/azure/hello-bot-conversational-ai-on-microsoft-platform/) để biết thêm chi tiết. +* **Toán học chuyên sâu** đằng sau học sâu. Để làm điều này, chúng tôi khuyến nghị cuốn sách [Deep Learning](https://www.amazon.com/Deep-Learning-Adaptive-Computation-Machine/dp/0262035618) của Ian Goodfellow, Yoshua Bengio và Aaron Courville, cũng có thể đọc trực tuyến tại [https://www.deeplearningbook.org/](https://www.deeplearningbook.org/). -Để có giới thiệu nhẹ nhàng về các chủ đề _AI trên Đám mây_ bạn có thể cân nhắc theo học lộ trình [Bắt đầu với trí tuệ nhân tạo trên Azure](https://docs.microsoft.com/learn/paths/get-started-with-artificial-intelligence-on-azure/?WT.mc_id=academic-77998-bethanycheum). +Để giới thiệu nhẹ nhàng về các chủ đề _AI trên đám mây_, bạn có thể cân nhắc theo học Đường dẫn học [Bắt đầu với trí tuệ nhân tạo trên Azure](https://docs.microsoft.com/learn/paths/get-started-with-artificial-intelligence-on-azure/?WT.mc_id=academic-77998-bethanycheum). # Nội dung -| | Đường liên kết bài học | PyTorch/Keras/TensorFlow | Phòng thí nghiệm | +| | Đường dẫn Bài học | PyTorch/Keras/TensorFlow | Phòng Lab | | :-: | :------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------ | -| 0 | [Thiết lập khóa học](./lessons/0-course-setup/setup.md) | [Thiết lập môi trường phát triển](./lessons/0-course-setup/how-to-run.md) | | +| 0 | [Thiết lập Khóa học](./lessons/0-course-setup/setup.md) | [Thiết lập Môi trường Phát triển của Bạn](./lessons/0-course-setup/how-to-run.md) | | | I | [**Giới thiệu về AI**](./lessons/1-Intro/README.md) | | | | 01 | [Giới thiệu và Lịch sử AI](./lessons/1-Intro/README.md) | - | - | -| II | **AI Ký hiệu** | -| 02 | [Biểu diễn Kiến thức và Hệ chuyên gia](./lessons/2-Symbolic/README.md) | [Hệ chuyên gia](./lessons/2-Symbolic/Animals.ipynb) / [Ontology](./lessons/2-Symbolic/FamilyOntology.ipynb) /[Đồ thị Khái niệm](./lessons/2-Symbolic/MSConceptGraph.ipynb) | | -| III | [**Giới thiệu về Mạng Nơ-ron**](./lessons/3-NeuralNetworks/README.md) ||| -| 03 | [Perceptron](./lessons/3-NeuralNetworks/03-Perceptron/README.md) | [Sổ tay](./lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb) | [Thí nghiệm](./lessons/3-NeuralNetworks/03-Perceptron/lab/README.md) | -| 04 | [Perceptron đa lớp và Tạo nền tảng riêng của chúng ta](./lessons/3-NeuralNetworks/04-OwnFramework/README.md) | [Sổ tay](./lessons/3-NeuralNetworks/04-OwnFramework/OwnFramework.ipynb) | [Thí nghiệm](./lessons/3-NeuralNetworks/04-OwnFramework/lab/README.md) | -| 05 | [Giới thiệu về các Framework (PyTorch/TensorFlow) và Hiện tượng Overfitting](./lessons/3-NeuralNetworks/05-Frameworks/README.md) | [PyTorch](./lessons/3-NeuralNetworks/05-Frameworks/IntroPyTorch.ipynb) / [Keras](./lessons/3-NeuralNetworks/05-Frameworks/IntroKeras.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Thí nghiệm](./lessons/3-NeuralNetworks/05-Frameworks/lab/README.md) | -| IV | [**Thị giác máy tính**](./lessons/4-ComputerVision/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-computer-vision-pytorch/?WT.mc_id=academic-77998-cacaste) / [TensorFlow](https://docs.microsoft.com/learn/modules/intro-computer-vision-TensorFlow/?WT.mc_id=academic-77998-cacaste)| [Khám phá Thị giác Máy tính trên Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) | -| 06 | [Giới thiệu Thị giác Máy tính. OpenCV](./lessons/4-ComputerVision/06-IntroCV/README.md) | [Sổ tay](./lessons/4-ComputerVision/06-IntroCV/OpenCV.ipynb) | [Thí nghiệm](./lessons/4-ComputerVision/06-IntroCV/lab/README.md) | -| 07 | [Mạng Nơ-ron Tích chập](./lessons/4-ComputerVision/07-ConvNets/README.md) & [Kiến trúc CNN](./lessons/4-ComputerVision/07-ConvNets/CNN_Architectures.md) | [PyTorch](./lessons/4-ComputerVision/07-ConvNets/ConvNetsPyTorch.ipynb) /[TensorFlow](./lessons/4-ComputerVision/07-ConvNets/ConvNetsTF.ipynb) | [Thí nghiệm](./lessons/4-ComputerVision/07-ConvNets/lab/README.md) | -| 08 | [Mạng đã được huấn luyện trước và Học chuyển giao](./lessons/4-ComputerVision/08-TransferLearning/README.md) và [Mẹo huấn luyện](./lessons/4-ComputerVision/08-TransferLearning/TrainingTricks.md) | [PyTorch](./lessons/4-ComputerVision/08-TransferLearning/TransferLearningPyTorch.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Thí nghiệm](./lessons/4-ComputerVision/08-TransferLearning/lab/README.md) | -| 09 | [Autoencoders và VAEs](./lessons/4-ComputerVision/09-Autoencoders/README.md) | [PyTorch](./lessons/4-ComputerVision/09-Autoencoders/AutoEncodersPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/09-Autoencoders/AutoencodersTF.ipynb) | | -| 10 | [Mạng Tạo sinh đối kháng & Chuyển phong cách nghệ thuật](./lessons/4-ComputerVision/10-GANs/README.md) | [PyTorch](./lessons/4-ComputerVision/10-GANs/GANPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/10-GANs/GANTF.ipynb) | | -| 11 | [Phát hiện đối tượng](./lessons/4-ComputerVision/11-ObjectDetection/README.md) | [TensorFlow](./lessons/4-ComputerVision/11-ObjectDetection/ObjectDetection.ipynb) | [Thí nghiệm](./lessons/4-ComputerVision/11-ObjectDetection/lab/README.md) | +| II | **AI biểu tượng** | +| 02 | [Biểu diễn kiến thức và Hệ chuyên gia](./lessons/2-Symbolic/README.md) | [Hệ chuyên gia](./lessons/2-Symbolic/Animals.ipynb) / [Ontology](./lessons/2-Symbolic/FamilyOntology.ipynb) /[Đồ thị khái niệm](./lessons/2-Symbolic/MSConceptGraph.ipynb) | | +| III | [**Giới thiệu về Mạng thần kinh**](./lessons/3-NeuralNetworks/README.md) ||| +| 03 | [Perceptron](./lessons/3-NeuralNetworks/03-Perceptron/README.md) | [Sổ tay](./lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb) | [Phòng thí nghiệm](./lessons/3-NeuralNetworks/03-Perceptron/lab/README.md) | +| 04 | [Perceptron đa lớp và Tạo Framework riêng của chúng ta](./lessons/3-NeuralNetworks/04-OwnFramework/README.md) | [Sổ tay](./lessons/3-NeuralNetworks/04-OwnFramework/OwnFramework.ipynb) | [Phòng thí nghiệm](./lessons/3-NeuralNetworks/04-OwnFramework/lab/README.md) | +| 05 | [Giới thiệu về Frameworks (PyTorch/TensorFlow) và Hiện tượng quá khớp](./lessons/3-NeuralNetworks/05-Frameworks/README.md) | [PyTorch](./lessons/3-NeuralNetworks/05-Frameworks/IntroPyTorch.ipynb) / [Keras](./lessons/3-NeuralNetworks/05-Frameworks/IntroKeras.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Phòng thí nghiệm](./lessons/3-NeuralNetworks/05-Frameworks/lab/README.md) | +| IV | [**Thị giác máy tính**](./lessons/4-ComputerVision/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-computer-vision-pytorch/?WT.mc_id=academic-77998-cacaste) / [TensorFlow](https://docs.microsoft.com/learn/modules/intro-computer-vision-TensorFlow/?WT.mc_id=academic-77998-cacaste)| [Khám phá Thị giác máy tính trên Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) | +| 06 | [Giới thiệu về Thị giác máy tính. OpenCV](./lessons/4-ComputerVision/06-IntroCV/README.md) | [Sổ tay](./lessons/4-ComputerVision/06-IntroCV/OpenCV.ipynb) | [Phòng thí nghiệm](./lessons/4-ComputerVision/06-IntroCV/lab/README.md) | +| 07 | [Mạng thần kinh tích chập](./lessons/4-ComputerVision/07-ConvNets/README.md) & [Kiến trúc CNN](./lessons/4-ComputerVision/07-ConvNets/CNN_Architectures.md) | [PyTorch](./lessons/4-ComputerVision/07-ConvNets/ConvNetsPyTorch.ipynb) /[TensorFlow](./lessons/4-ComputerVision/07-ConvNets/ConvNetsTF.ipynb) | [Phòng thí nghiệm](./lessons/4-ComputerVision/07-ConvNets/lab/README.md) | +| 08 | [Mạng đã được huấn luyện trước và Học chuyển giao](./lessons/4-ComputerVision/08-TransferLearning/README.md) và [Mẹo huấn luyện](./lessons/4-ComputerVision/08-TransferLearning/TrainingTricks.md) | [PyTorch](./lessons/4-ComputerVision/08-TransferLearning/TransferLearningPyTorch.ipynb) / [TensorFlow](./lessons/3-NeuralNetworks/05-Frameworks/IntroKerasTF.ipynb) | [Phòng thí nghiệm](./lessons/4-ComputerVision/08-TransferLearning/lab/README.md) | +| 09 | [Autoencoder và VAE](./lessons/4-ComputerVision/09-Autoencoders/README.md) | [PyTorch](./lessons/4-ComputerVision/09-Autoencoders/AutoEncodersPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/09-Autoencoders/AutoencodersTF.ipynb) | | +| 10 | [Mạng đối kháng sinh tạo & Chuyển đổi phong cách nghệ thuật](./lessons/4-ComputerVision/10-GANs/README.md) | [PyTorch](./lessons/4-ComputerVision/10-GANs/GANPyTorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/10-GANs/GANTF.ipynb) | | +| 11 | [Phát hiện đối tượng](./lessons/4-ComputerVision/11-ObjectDetection/README.md) | [TensorFlow](./lessons/4-ComputerVision/11-ObjectDetection/ObjectDetection.ipynb) | [Phòng thí nghiệm](./lessons/4-ComputerVision/11-ObjectDetection/lab/README.md) | | 12 | [Phân đoạn ngữ nghĩa. U-Net](./lessons/4-ComputerVision/12-Segmentation/README.md) | [PyTorch](./lessons/4-ComputerVision/12-Segmentation/SemanticSegmentationPytorch.ipynb) / [TensorFlow](./lessons/4-ComputerVision/12-Segmentation/SemanticSegmentationTF.ipynb) | | -| V | [**Xử lý ngôn ngữ tự nhiên**](./lessons/5-NLP/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-pytorch/?WT.mc_id=academic-77998-cacaste) /[TensorFlow](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-TensorFlow/?WT.mc_id=academic-77998-cacaste) | [Khám phá Xử lý Ngôn ngữ Tự nhiên trên Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum)| +| V | [**Xử lý ngôn ngữ tự nhiên**](./lessons/5-NLP/README.md) | [PyTorch](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-pytorch/?WT.mc_id=academic-77998-cacaste) /[TensorFlow](https://docs.microsoft.com/learn/modules/intro-natural-language-processing-TensorFlow/?WT.mc_id=academic-77998-cacaste) | [Khám phá Xử lý ngôn ngữ tự nhiên trên Microsoft Azure](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum)| | 13 | [Biểu diễn văn bản. Bow/TF-IDF](./lessons/5-NLP/13-TextRep/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/13-TextRep/TextRepresentationPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/13-TextRep/TextRepresentationTF.ipynb) | | -| 14 | [Biểu diễn từ ngữ ngữ nghĩa. Word2Vec và GloVe](./lessons/5-NLP/14-Embeddings/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsTF.ipynb) | | -| 15 | [Mô hình ngôn ngữ. Huấn luyện biểu diễn từ của bạn](./lessons/5-NLP/15-LanguageModeling/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-PyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-TF.ipynb) | [Thí nghiệm](./lessons/5-NLP/15-LanguageModeling/lab/README.md) | -| 16 | [Mạng nơ-ron hồi tiếp](./lessons/5-NLP/16-RNN/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNTF.ipynb) | | -| 17 | [Mạng hồi tiếp sinh generative](./lessons/5-NLP/17-GenerativeNetworks/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativePyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativeTF.ipynb) | [Thí nghiệm](./lessons/5-NLP/17-GenerativeNetworks/lab/README.md) | +| 14 | [Nhúng ngữ nghĩa từ. Word2Vec và GloVe](./lessons/5-NLP/14-Embeddings/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/14-Embeddings/EmbeddingsTF.ipynb) | | +| 15 | [Mô hình ngôn ngữ. Huấn luyện nhúng của riêng bạn](./lessons/5-NLP/15-LanguageModeling/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-PyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/15-LanguageModeling/CBoW-TF.ipynb) | [Phòng thí nghiệm](./lessons/5-NLP/15-LanguageModeling/lab/README.md) | +| 16 | [Mạng thần kinh hồi tiếp](./lessons/5-NLP/16-RNN/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNPyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/16-RNN/RNNTF.ipynb) | | +| 17 | [Mạng hồi tiếp sinh tạo](./lessons/5-NLP/17-GenerativeNetworks/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativePyTorch.ipynb) / [TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/17-GenerativeNetworks/GenerativeTF.ipynb) | [Phòng thí nghiệm](./lessons/5-NLP/17-GenerativeNetworks/lab/README.md) | | 18 | [Transformers. BERT.](./lessons/5-NLP/18-Transformers/README.md) | [PyTorch](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/18-Transformers/TransformersPyTorch.ipynb) /[TensorFlow](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/5-NLP/18-Transformers/TransformersTF.ipynb) | | -| 19 | [Nhận dạng thực thể có tên](./lessons/5-NLP/19-NER/README.md) | [TensorFlow](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/19-NER/NER-TF.ipynb) | [Thí nghiệm](./lessons/5-NLP/19-NER/lab/README.md) | +| 19 | [Nhận dạng Thực thể có tên](./lessons/5-NLP/19-NER/README.md) | [TensorFlow](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/19-NER/NER-TF.ipynb) | [Phòng thí nghiệm](./lessons/5-NLP/19-NER/lab/README.md) | | 20 | [Mô hình ngôn ngữ lớn, Lập trình Prompt và Nhiệm vụ Few-Shot](./lessons/5-NLP/20-LangModels/README.md) | [PyTorch](https://microsoft.github.io/AI-For-Beginners/lessons/5-NLP/20-LangModels/GPT-PyTorch.ipynb) | | | VI | **Các kỹ thuật AI khác** || | | 21 | [Thuật toán di truyền](./lessons/6-Other/21-GeneticAlgorithms/README.md) | [Sổ tay](./lessons/6-Other/21-GeneticAlgorithms/Genetic.ipynb) | | -| 22 | [Học tăng cường sâu](./lessons/6-Other/22-DeepRL/README.md) | [PyTorch](./lessons/6-Other/22-DeepRL/CartPole-RL-PyTorch.ipynb) /[TensorFlow](./lessons/6-Other/22-DeepRL/CartPole-RL-TF.ipynb) | [Thí nghiệm](./lessons/6-Other/22-DeepRL/lab/README.md) | -| 23 | [Hệ thống đa tác nhân](./lessons/6-Other/23-MultiagentSystems/README.md) | | | +| 22 | [Học tăng cường sâu](./lessons/6-Other/22-DeepRL/README.md) | [PyTorch](./lessons/6-Other/22-DeepRL/CartPole-RL-PyTorch.ipynb) /[TensorFlow](./lessons/6-Other/22-DeepRL/CartPole-RL-TF.ipynb) | [Phòng thí nghiệm](./lessons/6-Other/22-DeepRL/lab/README.md) | +| 23 | [Hệ đa tác nhân](./lessons/6-Other/23-MultiagentSystems/README.md) | | | | VII | **Đạo đức AI** | | | -| 24 | [Đạo đức AI và AI có trách nhiệm](./lessons/7-Ethics/README.md) | [Microsoft Learn: Các nguyên tắc AI có trách nhiệm](https://docs.microsoft.com/learn/paths/responsible-ai-business-principles/?WT.mc_id=academic-77998-cacaste) | | -| IX | **Phụ lục** | | | +| 24 | [Đạo đức AI và AI có trách nhiệm](./lessons/7-Ethics/README.md) | [Microsoft Learn: Nguyên tắc AI có trách nhiệm](https://docs.microsoft.com/learn/paths/responsible-ai-business-principles/?WT.mc_id=academic-77998-cacaste) | | +| IX | **Phần bổ sung** | | | | 25 | [Mạng đa phương thức, CLIP và VQGAN](./lessons/X-Extras/X1-MultiModal/README.md) | [Sổ tay](./lessons/X-Extras/X1-MultiModal/Clip.ipynb) | | ## Mỗi bài học bao gồm - -* Tài liệu chuẩn bị trước khi học -* Các Sổ tay Jupyter có thể thực thi, thường dành riêng cho một framework (**PyTorch** hoặc **TensorFlow**). Sổ tay thực thi cũng chứa rất nhiều tài liệu lý thuyết, vì vậy để hiểu chủ đề bạn cần làm ít nhất một phiên bản của sổ tay (PyTorch hoặc TensorFlow). -* **Thí nghiệm** có sẵn cho một số chủ đề, tạo cơ hội để bạn thử áp dụng kiến thức đã học vào một vấn đề cụ thể. -* Một số phần có liên kết đến các module [**MS Learn**](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) liên quan. +* Tài liệu đọc trước +* Các Jupyter Notebooks có thể thực thi, thường dành riêng cho framework (**PyTorch** hoặc **TensorFlow**). Notebook có thể thực thi cũng chứa rất nhiều tài liệu lý thuyết, vì vậy để hiểu chủ đề bạn cần xem qua ít nhất một phiên bản của notebook (hoặc PyTorch hoặc TensorFlow). +* **Phòng thí nghiệm** có sẵn cho một số chủ đề, giúp bạn có cơ hội thử áp dụng tài liệu đã học vào một bài toán cụ thể. +* Một số phần chứa liên kết đến các module [**MS Learn**](https://learn.microsoft.com/en-us/collections/7w28iy2xrqzdj0?WT.mc_id=academic-77998-bethanycheum) bao gồm các chủ đề liên quan. ## Bắt đầu -### 🎯 Mới với AI? Bắt đầu ở đây! +### 🎯 Mới với AI? Bắt đầu tại đây! Nếu bạn hoàn toàn mới với AI và muốn các ví dụ nhanh, thực hành, hãy xem [**Ví dụ dành cho người mới bắt đầu**](./examples/README.md)! Bao gồm: - 🌟 **Hello AI World** - Chương trình AI đầu tiên của bạn (nhận dạng mẫu) - 🧠 **Mạng Nơ-ron đơn giản** - Xây dựng mạng nơ-ron từ đầu +- 🖼️ **Phân loại ảnh** - Phân loại hình ảnh với bình luận chi tiết +- 💬 **Phân tích cảm xúc văn bản** - Phân tích văn bản tích cực/tiêu cực -- 🖼️ **Phân loại Hình ảnh** - Phân loại hình ảnh với bình luận chi tiết -- 💬 **Phân tích Tâm trạng Văn bản** - Phân tích văn bản tích cực/tiêu cực +Những ví dụ này được thiết kế để giúp bạn hiểu các khái niệm AI trước khi vào chương trình học đầy đủ. -Các ví dụ này được thiết kế để giúp bạn hiểu các khái niệm AI trước khi bước vào toàn bộ chương trình học. +### 📚 Thiết lập chương trình học đầy đủ -### 📚 Thiết lập Toàn bộ Chương trình Học +- Chúng tôi đã tạo một [bài học thiết lập](./lessons/0-course-setup/setup.md) để giúp bạn thiết lập môi trường phát triển. +- Đối với giáo viên, chúng tôi cũng có bài học [thiết lập chương trình học](./lessons/0-course-setup/for-teachers.md) dành cho bạn! +- Cách [chạy mã trong VSCode hoặc Codespace](./lessons/0-course-setup/how-to-run.md) -- Chúng tôi đã tạo một [bài học thiết lập](./lessons/0-course-setup/setup.md) để giúp bạn thiết lập môi trường phát triển. - Dành cho các Giảng viên, chúng tôi cũng đã tạo một [bài học thiết lập chương trình học](./lessons/0-course-setup/for-teachers.md) cho bạn! -- Cách [Chạy mã trong VSCode hoặc Codespace](./lessons/0-course-setup/how-to-run.md) +Làm theo các bước sau: -Thực hiện theo các bước sau: +Fork kho lưu trữ: Nhấn nút "Fork" ở góc trên bên phải của trang này. -Fork Kho Lưu trữ: Nhấp vào nút "Fork" ở góc trên bên phải của trang này. +Clone kho lưu trữ: `git clone https://github.com/microsoft/AI-For-Beginners.git` -Clone Kho Lưu trữ: `git clone https://github.com/microsoft/AI-For-Beginners.git` +Đừng quên đánh dấu sao (🌟) repo này để dễ tìm lại sau. -Đừng quên đánh dấu sao (🌟) repo này để dễ tìm hơn sau này. +## Gặp gỡ các học viên khác -## Gặp gỡ các Học viên Khác +Tham gia [máy chủ Discord AI chính thức của chúng tôi](https://aka.ms/genai-discord?WT.mc_id=academic-105485-bethanycheum) để gặp gỡ và kết nối với các học viên khác đang học khóa này và nhận hỗ trợ. -Tham gia [máy chủ AI Discord chính thức của chúng tôi](https://aka.ms/genai-discord?WT.mc_id=academic-105485-bethanycheum) để gặp gỡ và kết nối với những người học khác đang tham gia khóa học này và nhận hỗ trợ. +Nếu bạn có phản hồi về sản phẩm hoặc câu hỏi trong quá trình xây dựng, hãy truy cập [Diễn đàn Nhà phát triển Azure AI Foundry](https://aka.ms/foundry/forum) -Nếu bạn có phản hồi về sản phẩm hoặc câu hỏi trong khi xây dựng, hãy truy cập [Diễn đàn Nhà phát triển Azure AI Foundry](https://aka.ms/foundry/forum) +## Bài kiểm tra -## Các bài Kiểm tra +> **Lưu ý về bài kiểm tra**: Tất cả các bài kiểm tra đều nằm trong thư mục Quiz-app tại etc\quiz-app, hoặc [Trực tuyến tại đây](https://ff-quizzes.netlify.app/) Chúng được liên kết trong các bài học, ứng dụng quiz có thể chạy cục bộ hoặc triển khai lên Azure; làm theo hướng dẫn trong thư mục `quiz-app`. Các bài này đang dần được bản địa hóa. -> **Một lưu ý về các bài kiểm tra**: Tất cả các bài kiểm tra đều nằm trong thư mục Quiz-app tại etc\quiz-app, hoặc [Trực tuyến tại đây](https://ff-quizzes.netlify.app/). Chúng được liên kết từ bên trong các bài học, ứng dụng quiz có thể chạy cục bộ hoặc triển khai lên Azure; làm theo hướng dẫn trong thư mục `quiz-app`. Các bài kiểm tra đang được bản địa hóa dần dần. +## Cần giúp đỡ -## Cần Giúp đỡ +Bạn có đề xuất hoặc phát hiện lỗi đánh máy hay lỗi code? Hãy tạo issue hoặc pull request. -Bạn có đề xuất hoặc phát hiện lỗi chính tả hoặc lỗi mã không? Hãy tạo một issue hoặc pull request. +## Lời cảm ơn đặc biệt -## Lời cảm ơn đặc biệt +* **✍️ Tác giả chính:** [Dmitry Soshnikov](http://soshnikov.com), Tiến sĩ +* **🔥 Biên tập viên:** [Jen Looper](https://twitter.com/jenlooper), Tiến sĩ +* **🎨 Minh họa sketchnote:** [Tomomi Imura](https://twitter.com/girlie_mac) +* **✅ Người tạo bài kiểm tra:** [Lateefah Bello](https://github.com/CinnamonXI), [MLSA](https://studentambassadors.microsoft.com/) +* **🙏 Đóng góp chính:** [Evgenii Pishchik](https://github.com/Pe4enIks) -* **✍️ Tác giả chính:** [Dmitry Soshnikov](http://soshnikov.com), Tiến sĩ -* **🔥 Biên tập viên:** [Jen Looper](https://twitter.com/jenlooper), Tiến sĩ -* **🎨 Minh họa Sketchnote:** [Tomomi Imura](https://twitter.com/girlie_mac) -* **✅ Người tạo Quiz:** [Lateefah Bello](https://github.com/CinnamonXI), [MLSA](https://studentambassadors.microsoft.com/) -* **🙏 Những người đóng góp chính:** [Evgenii Pishchik](https://github.com/Pe4enIks) +## Các chương trình học khác -## Các Chương trình Học Khác - -Nhóm của chúng tôi còn sản xuất các chương trình học khác! Hãy xem: +Nhóm của chúng tôi sản xuất các chương trình học khác! Hãy xem: -### LangChain -[![LangChain4j for Beginners](https://img.shields.io/badge/LangChain4j%20for%20Beginners-22C55E?style=for-the-badge&&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchain4j-for-beginners) -[![LangChain.js for Beginners](https://img.shields.io/badge/LangChain.js%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchainjs-for-beginners?WT.mc_id=m365-94501-dwahlin) -[![LangChain for Beginners](https://img.shields.io/badge/LangChain%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://github.com/microsoft/langchain-for-beginners?WT.mc_id=m365-94501-dwahlin) ---- +### LangChain +[![LangChain4j cho người mới bắt đầu](https://img.shields.io/badge/LangChain4j%20for%20Beginners-22C55E?style=for-the-badge&&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchain4j-for-beginners) +[![LangChain.js cho người mới bắt đầu](https://img.shields.io/badge/LangChain.js%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchainjs-for-beginners?WT.mc_id=m365-94501-dwahlin) +[![LangChain cho người mới bắt đầu](https://img.shields.io/badge/LangChain%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://github.com/microsoft/langchain-for-beginners?WT.mc_id=m365-94501-dwahlin) +--- -### Azure / Edge / MCP / Agents -[![AZD for Beginners](https://img.shields.io/badge/AZD%20for%20Beginners-0078D4?style=for-the-badge&labelColor=E5E7EB&color=0078D4)](https://github.com/microsoft/AZD-for-beginners?WT.mc_id=academic-105485-koreyst) -[![Edge AI for Beginners](https://img.shields.io/badge/Edge%20AI%20for%20Beginners-00B8E4?style=for-the-badge&labelColor=E5E7EB&color=00B8E4)](https://github.com/microsoft/edgeai-for-beginners?WT.mc_id=academic-105485-koreyst) -[![MCP for Beginners](https://img.shields.io/badge/MCP%20for%20Beginners-009688?style=for-the-badge&labelColor=E5E7EB&color=009688)](https://github.com/microsoft/mcp-for-beginners?WT.mc_id=academic-105485-koreyst) -[![AI Agents for Beginners](https://img.shields.io/badge/AI%20Agents%20for%20Beginners-00C49A?style=for-the-badge&labelColor=E5E7EB&color=00C49A)](https://github.com/microsoft/ai-agents-for-beginners?WT.mc_id=academic-105485-koreyst) +### Azure / Edge / MCP / Agents +[![AZD cho người mới bắt đầu](https://img.shields.io/badge/AZD%20for%20Beginners-0078D4?style=for-the-badge&labelColor=E5E7EB&color=0078D4)](https://github.com/microsoft/AZD-for-beginners?WT.mc_id=academic-105485-koreyst) +[![Edge AI cho người mới bắt đầu](https://img.shields.io/badge/Edge%20AI%20for%20Beginners-00B8E4?style=for-the-badge&labelColor=E5E7EB&color=00B8E4)](https://github.com/microsoft/edgeai-for-beginners?WT.mc_id=academic-105485-koreyst) +[![MCP cho người mới bắt đầu](https://img.shields.io/badge/MCP%20for%20Beginners-009688?style=for-the-badge&labelColor=E5E7EB&color=009688)](https://github.com/microsoft/mcp-for-beginners?WT.mc_id=academic-105485-koreyst) +[![AI Agents cho người mới bắt đầu](https://img.shields.io/badge/AI%20Agents%20for%20Beginners-00C49A?style=for-the-badge&labelColor=E5E7EB&color=00C49A)](https://github.com/microsoft/ai-agents-for-beginners?WT.mc_id=academic-105485-koreyst) ---- - -### Dãy AI Sinh tạo -[![Generative AI for Beginners](https://img.shields.io/badge/Generative%20AI%20for%20Beginners-8B5CF6?style=for-the-badge&labelColor=E5E7EB&color=8B5CF6)](https://github.com/microsoft/generative-ai-for-beginners?WT.mc_id=academic-105485-koreyst) -[![Generative AI (.NET)](https://img.shields.io/badge/Generative%20AI%20(.NET)-9333EA?style=for-the-badge&labelColor=E5E7EB&color=9333EA)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet?WT.mc_id=academic-105485-koreyst) -[![Generative AI (Java)](https://img.shields.io/badge/Generative%20AI%20(Java)-C084FC?style=for-the-badge&labelColor=E5E7EB&color=C084FC)](https://github.com/microsoft/generative-ai-for-beginners-java?WT.mc_id=academic-105485-koreyst) -[![Generative AI (JavaScript)](https://img.shields.io/badge/Generative%20AI%20(JavaScript)-E879F9?style=for-the-badge&labelColor=E5E7EB&color=E879F9)](https://github.com/microsoft/generative-ai-with-javascript?WT.mc_id=academic-105485-koreyst) +--- + +### Chuỗi AI sinh tạo +[![AI sinh tạo cho người mới bắt đầu](https://img.shields.io/badge/Generative%20AI%20for%20Beginners-8B5CF6?style=for-the-badge&labelColor=E5E7EB&color=8B5CF6)](https://github.com/microsoft/generative-ai-for-beginners?WT.mc_id=academic-105485-koreyst) +[![AI sinh tạo (.NET)](https://img.shields.io/badge/Generative%20AI%20(.NET)-9333EA?style=for-the-badge&labelColor=E5E7EB&color=9333EA)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet?WT.mc_id=academic-105485-koreyst) +[![AI sinh tạo (Java)](https://img.shields.io/badge/Generative%20AI%20(Java)-C084FC?style=for-the-badge&labelColor=E5E7EB&color=C084FC)](https://github.com/microsoft/generative-ai-for-beginners-java?WT.mc_id=academic-105485-koreyst) +[![AI sinh tạo (JavaScript)](https://img.shields.io/badge/Generative%20AI%20(JavaScript)-E879F9?style=for-the-badge&labelColor=E5E7EB&color=E879F9)](https://github.com/microsoft/generative-ai-with-javascript?WT.mc_id=academic-105485-koreyst) ---- - -### Học tập Cốt lõi -[![ML for Beginners](https://img.shields.io/badge/ML%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=22C55E)](https://aka.ms/ml-beginners?WT.mc_id=academic-105485-koreyst) -[![Data Science for Beginners](https://img.shields.io/badge/Data%20Science%20for%20Beginners-84CC16?style=for-the-badge&labelColor=E5E7EB&color=84CC16)](https://aka.ms/datascience-beginners?WT.mc_id=academic-105485-koreyst) -[![AI for Beginners](https://img.shields.io/badge/AI%20for%20Beginners-A3E635?style=for-the-badge&labelColor=E5E7EB&color=A3E635)](https://aka.ms/ai-beginners?WT.mc_id=academic-105485-koreyst) -[![Cybersecurity for Beginners](https://img.shields.io/badge/Cybersecurity%20for%20Beginners-F97316?style=for-the-badge&labelColor=E5E7EB&color=F97316)](https://github.com/microsoft/Security-101?WT.mc_id=academic-96948-sayoung) -[![Web Dev for Beginners](https://img.shields.io/badge/Web%20Dev%20for%20Beginners-EC4899?style=for-the-badge&labelColor=E5E7EB&color=EC4899)](https://aka.ms/webdev-beginners?WT.mc_id=academic-105485-koreyst) -[![IoT for Beginners](https://img.shields.io/badge/IoT%20for%20Beginners-14B8A6?style=for-the-badge&labelColor=E5E7EB&color=14B8A6)](https://aka.ms/iot-beginners?WT.mc_id=academic-105485-koreyst) -[![XR Development for Beginners](https://img.shields.io/badge/XR%20Development%20for%20Beginners-38BDF8?style=for-the-badge&labelColor=E5E7EB&color=38BDF8)](https://github.com/microsoft/xr-development-for-beginners?WT.mc_id=academic-105485-koreyst) +--- + +### Học cốt lõi +[![ML cho người mới bắt đầu](https://img.shields.io/badge/ML%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=22C55E)](https://aka.ms/ml-beginners?WT.mc_id=academic-105485-koreyst) +[![Khoa học dữ liệu cho người mới bắt đầu](https://img.shields.io/badge/Data%20Science%20for%20Beginners-84CC16?style=for-the-badge&labelColor=E5E7EB&color=84CC16)](https://aka.ms/datascience-beginners?WT.mc_id=academic-105485-koreyst) +[![AI cho người mới bắt đầu](https://img.shields.io/badge/AI%20for%20Beginners-A3E635?style=for-the-badge&labelColor=E5E7EB&color=A3E635)](https://aka.ms/ai-beginners?WT.mc_id=academic-105485-koreyst) +[![An ninh mạng cho người mới bắt đầu](https://img.shields.io/badge/Cybersecurity%20for%20Beginners-F97316?style=for-the-badge&labelColor=E5E7EB&color=F97316)](https://github.com/microsoft/Security-101?WT.mc_id=academic-96948-sayoung) +[![Phát triển web cho người mới bắt đầu](https://img.shields.io/badge/Web%20Dev%20for%20Beginners-EC4899?style=for-the-badge&labelColor=E5E7EB&color=EC4899)](https://aka.ms/webdev-beginners?WT.mc_id=academic-105485-koreyst) +[![IoT cho người mới bắt đầu](https://img.shields.io/badge/IoT%20for%20Beginners-14B8A6?style=for-the-badge&labelColor=E5E7EB&color=14B8A6)](https://aka.ms/iot-beginners?WT.mc_id=academic-105485-koreyst) +[![Phát triển XR cho người mới bắt đầu](https://img.shields.io/badge/XR%20Development%20for%20Beginners-38BDF8?style=for-the-badge&labelColor=E5E7EB&color=38BDF8)](https://github.com/microsoft/xr-development-for-beginners?WT.mc_id=academic-105485-koreyst) ---- - -### Dãy Copilot -[![Copilot for AI Paired Programming](https://img.shields.io/badge/Copilot%20for%20AI%20Paired%20Programming-FACC15?style=for-the-badge&labelColor=E5E7EB&color=FACC15)](https://aka.ms/GitHubCopilotAI?WT.mc_id=academic-105485-koreyst) -[![Copilot for C#/.NET](https://img.shields.io/badge/Copilot%20for%20C%23/.NET-FBBF24?style=for-the-badge&labelColor=E5E7EB&color=FBBF24)](https://github.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?WT.mc_id=academic-105485-koreyst) -[![Copilot Adventure](https://img.shields.io/badge/Copilot%20Adventure-FDE68A?style=for-the-badge&labelColor=E5E7EB&color=FDE68A)](https://github.com/microsoft/CopilotAdventures?WT.mc_id=academic-105485-koreyst) - +--- + +### Chuỗi Copilot +[![Copilot cho lập trình ghép đôi AI](https://img.shields.io/badge/Copilot%20for%20AI%20Paired%20Programming-FACC15?style=for-the-badge&labelColor=E5E7EB&color=FACC15)](https://aka.ms/GitHubCopilotAI?WT.mc_id=academic-105485-koreyst) +[![Copilot cho C#/.NET](https://img.shields.io/badge/Copilot%20for%20C%23/.NET-FBBF24?style=for-the-badge&labelColor=E5E7EB&color=FBBF24)](https://github.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?WT.mc_id=academic-105485-koreyst) +[![Cuộc phiêu lưu Copilot](https://img.shields.io/badge/Copilot%20Adventure-FDE68A?style=for-the-badge&labelColor=E5E7EB&color=FDE68A)](https://github.com/microsoft/CopilotAdventures?WT.mc_id=academic-105485-koreyst) + -## Nhận trợ giúp +## Nhận sự trợ giúp -Nếu bạn bị mắc kẹt hoặc có bất kỳ câu hỏi nào về việc xây dựng ứng dụng AI, hãy tham gia cùng những người học và các nhà phát triển có kinh nghiệm trong các cuộc thảo luận về MCP. Đây là một cộng đồng hỗ trợ nơi các câu hỏi được chào đón và kiến thức được chia sẻ tự do. +Nếu bạn bị mắc kẹt hoặc có bất kỳ câu hỏi nào về việc xây dựng ứng dụng AI. Tham gia cùng các học viên và nhà phát triển có kinh nghiệm trong các cuộc thảo luận về MCP. Đây là một cộng đồng hỗ trợ, nơi các câu hỏi được chào đón và kiến thức được chia sẻ tự do. -[![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) +[![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) -Nếu bạn có phản hồi về sản phẩm hoặc lỗi trong quá trình xây dựng, hãy truy cập: +Nếu bạn có phản hồi về sản phẩm hoặc phát hiện lỗi trong quá trình xây dựng, hãy truy cập: [![Microsoft Foundry Developer Forum](https://img.shields.io/badge/GitHub-Microsoft_Foundry_Developer_Forum-blue?style=for-the-badge&logo=github&color=000000&logoColor=fff)](https://aka.ms/foundry/forum) --- -**Tuyên bố miễn trừ trách nhiệm**: -Tài liệu này đã được dịch sử dụng dịch vụ dịch thuật AI [Co-op Translator](https://github.com/Azure/co-op-translator). Mặc dù chúng tôi nỗ lực để đảm bảo độ chính xác, vui lòng lưu ý rằng bản dịch tự động có thể chứa lỗi hoặc những điểm không chính xác. Tài liệu gốc bằng ngôn ngữ gốc của nó nên được xem là nguồn thông tin chính xác và đáng tin cậy. Đối với các thông tin quan trọng, nên sử dụng dịch vụ dịch thuật chuyên nghiệp do con người thực hiện. Chúng tôi không chịu trách nhiệm cho bất kỳ sự hiểu lầm hoặc giải thích sai nào phát sinh từ việc sử dụng bản dịch này. +**Tuyên bố từ chối trách nhiệm**: +Tài liệu này đã được dịch bằng dịch vụ dịch thuật AI [Co-op Translator](https://github.com/Azure/co-op-translator). Mặc dù chúng tôi cố gắng đảm bảo độ chính xác, xin lưu ý rằng bản dịch tự động có thể chứa lỗi hoặc không chính xác. Tài liệu gốc bằng ngôn ngữ gốc nên được coi là nguồn thông tin chính thức. Đối với các thông tin quan trọng, nên sử dụng dịch vụ dịch thuật chuyên nghiệp của con người. Chúng tôi không chịu trách nhiệm về bất kỳ sự hiểu lầm hay sai lệch nào phát sinh từ việc sử dụng bản dịch này. \ No newline at end of file diff --git a/translations/vi/lessons/2-Symbolic/MSConceptGraph.ipynb b/translations/vi/lessons/2-Symbolic/MSConceptGraph.ipynb index 6b34237e..290bea95 100644 --- a/translations/vi/lessons/2-Symbolic/MSConceptGraph.ipynb +++ b/translations/vi/lessons/2-Symbolic/MSConceptGraph.ipynb @@ -1,539 +1,532 @@ { - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Microsoft Concept Graph - API NÀY KHÔNG CÒN HOẠT ĐỘNG NHƯNG VUI LÒNG XEM NOTEBOOK ĐỂ HIỂU RÕ KHÁI NIỆM\n", - "\n", - "[Microsoft Concept Graph](https://concept.research.microsoft.com/) là một hệ thống phân loại lớn các thuật ngữ được khai thác từ internet, với các mối quan hệ `is-a` giữa các khái niệm.\n", - "\n", - "Context Graph có sẵn dưới hai hình thức:\n", - " * Tệp văn bản lớn để tải xuống\n", - " * REST API\n", - "\n", - "Thống kê:\n", - " * 5401933 khái niệm độc nhất\n", - " * 12551613 thực thể độc nhất\n", - " * 87603947 mối quan hệ `is-a`\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Sử dụng Dịch vụ Web\n", - "\n", - "Dịch vụ web cung cấp các lệnh gọi khác nhau để ước tính xác suất một khái niệm thuộc về các nhóm khác nhau. Thông tin chi tiết có thể xem [tại đây](https://concept.research.microsoft.com/Home/Api). \n", - "Dưới đây là URL mẫu để thực hiện lệnh gọi: `https://api.conceptnet.io/query?start=/c/en/microsoft&rel=/r/IsA&limit=10`\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "import urllib\n", - "import json\n", - "\n", - "def http(x):\n", - " response = urllib.request.urlopen(x)\n", - " data = response.read()\n", - " return data.decode('utf-8')\n", - "\n", - "def query(x):\n", - " concept = x.lower().replace(' ', '_')\n", - " url = \"https://api.conceptnet.io/query?start=/c/en/{}&rel=/r/IsA&limit=10\".format(\n", - " urllib.parse.quote(concept))\n", - " try:\n", - " result = json.loads(http(url))\n", - " except Exception:\n", - " return {}\n", - " edges = result.get('edges', [])\n", - " if not edges:\n", - " return {}\n", - " total_weight = sum(edge['weight'] for edge in edges)\n", - " if total_weight == 0:\n", - " return {}\n", - " return {edge['end']['label']: edge['weight'] / total_weight for edge in edges}\n", - "\n", - "query('microsoft')" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Hãy thử phân loại các tiêu đề tin tức bằng cách sử dụng các khái niệm cha. Để lấy các tiêu đề tin tức, chúng ta sẽ sử dụng dịch vụ [NewsApi.org](http://newsapi.org). Bạn cần tự lấy khóa API của mình để sử dụng dịch vụ - hãy truy cập trang web và đăng ký gói nhà phát triển miễn phí.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "newsapi_key = ''\n", - "def get_news(country='us'):\n", - " res = json.loads(http(\"https://newsapi.org/v2/top-headlines?country={0}&apiKey={1}\".format(country,newsapi_key)))\n", - " return res['articles']\n", - "\n", - "all_titles = [x['title'] for x in get_news('us')+get_news('gb')]" - ] - }, - { - "cell_type": "code", - "execution_count": 21, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "['Covid-19 Live Updates: Vaccines and Boosters News - The New York Times',\n", - " 'Ukrainians Flee Mariupol as Russian Forces Push to Take Port City - The Wall Street Journal',\n", - " 'Bond Yields Jump, Stock Futures Rise After Powell Says Fed Is Ready to Be More Aggressive - The Wall Street Journal',\n", - " 'Putin critic Alexei Navalny found guilty by Russian court - New York Post ',\n", - " \"Supreme Court nominee Ketanji Brown Jackson will face questions at confirmation hearing's second day - CNN\",\n", - " '2 teachers killed at Swedish high school, student arrested - ABC News',\n", - " 'Clues to Covid-19’s Next Moves Come From Sewers - The Wall Street Journal',\n", - " 'Republicans to roll dice by grilling Jackson over child-pornography sentencing decisions | TheHill - The Hill',\n", - " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", - " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", - " \"US stocks whipsawed overnight after Fed Chair Powell's remarks - Fox Business\",\n", - " \"'We've learned absolutely nothing': Tests could again be in short supply if Covid surges - POLITICO\",\n", - " \"Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\",\n", - " 'China searches for victims, flight recorders after first plane crash in 12 years - Reuters',\n", - " 'Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters',\n", - " 'Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español',\n", - " 'Powers Remain and Threats Lurk as Women’s Sweet 16 Is Set - The New York Times',\n", - " 'Webb Space Telescope Begins Multi-Instrument Alignment - SciTechDaily',\n", - " \"UConn vs UCF - NCAA women's tournament second-round highlights - March Madness\",\n", - " 'Bucking Republican Trend, Indiana Governor Vetoes Transgender Sports Bill - The New York Times',\n", - " \"Maggie Fox dead: Coronation Street and Shameless actress dies after 'sudden accident' - Mirror Online - The Mirror\",\n", - " 'China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent',\n", - " 'Daniel Morgan murder: damning report condemns Met police - The Guardian',\n", - " 'What to expect from Rishi Sunak’s Spring Statement - BBC.com',\n", - " 'UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian',\n", - " \"Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\",\n", - " 'Brass Eye’s outtakes show the brutal TV comedy was the tip of an iceberg - The Guardian',\n", - " \"Vladimir Putin threatens civilians to break Mariupol's spirit - The Times\",\n", - " 'Shell U-turn on Cambo oilfield would threaten green targets, say campaigners - The Guardian',\n", - " 'St Helens dog attack: Girl aged 17 months killed at home - BBC',\n", - " \"PlayStation to buy 'Assassin's Creed' veteran Jade Raymond's Haven Studios - NME\",\n", - " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", - " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", - " 'Nintendo Switch finally has folders • Eurogamer.net - Eurogamer.net',\n", - " 'FA to “find a solution” as Liverpool fan group blasts “shambolic” Wembley travel - This Is Anfield',\n", - " 'Manchester United transfer news LIVE Erik ten Hag latest and Man Utd manager updates - Manchester Evening News',\n", - " 'Inflation raises cost of UK government borrowing in February; crude oil up again – business live - The Guardian',\n", - " 'Alexei Navalny: Kremlin critic found guilty of large-scale fraud and contempt of court by Russian court - Sky News',\n", - " \"UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\",\n", - " 'Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian']" - ] - }, - "execution_count": 21, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "all_titles" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Trước hết, chúng tôi muốn có thể trích xuất danh từ từ tiêu đề tin tức. Chúng tôi sẽ sử dụng thư viện `TextBlob` để thực hiện điều này, thư viện này đơn giản hóa rất nhiều tác vụ NLP điển hình như thế này.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Requirement already satisfied: textblob in c:\\winapp\\miniconda3\\lib\\site-packages (0.17.1)\n", - "Requirement already satisfied: nltk>=3.1 in c:\\winapp\\miniconda3\\lib\\site-packages (from textblob) (3.5)\n", - "Requirement already satisfied: joblib in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (1.0.1)\n", - "Requirement already satisfied: regex in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (2021.11.10)\n", - "Requirement already satisfied: tqdm in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (4.61.2)\n", - "Requirement already satisfied: click in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (8.0.3)\n", - "Requirement already satisfied: colorama in c:\\winapp\\miniconda3\\lib\\site-packages (from click->nltk>=3.1->textblob) (0.4.4)\n", - "Finished.\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "[nltk_data] Downloading package brown to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package brown is already up-to-date!\n", - "[nltk_data] Downloading package punkt to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package punkt is already up-to-date!\n", - "[nltk_data] Downloading package wordnet to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package wordnet is already up-to-date!\n", - "[nltk_data] Downloading package averaged_perceptron_tagger to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package averaged_perceptron_tagger is already up-to-\n", - "[nltk_data] date!\n", - "[nltk_data] Downloading package conll2000 to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package conll2000 is already up-to-date!\n", - "[nltk_data] Downloading package movie_reviews to\n", - "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] Package movie_reviews is already up-to-date!\n" - ] - } - ], - "source": [ - "import sys\n", - "!{sys.executable} -m pip install textblob\n", - "!{sys.executable} -m textblob.download_corpora\n", - "from textblob import TextBlob" - ] - }, - { - "cell_type": "code", - "execution_count": 22, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'covid-19 live updates': 1,\n", - " 'vaccines': 1,\n", - " 'boosters': 1,\n", - " 'york': 4,\n", - " 'ukrainians flee mariupol': 1,\n", - " 'forces push': 1,\n", - " 'port city': 1,\n", - " 'wall street journal': 3,\n", - " 'bond yields': 1,\n", - " 'futures rise': 1,\n", - " 'powell says fed': 1,\n", - " 'ready': 1,\n", - " 'be': 1,\n", - " 'aggressive': 1,\n", - " 'putin': 3,\n", - " 'alexei navalny': 2,\n", - " 'russian': 2,\n", - " 'supreme court nominee': 1,\n", - " 'ketanji brown jackson': 1,\n", - " \"confirmation hearing 's\": 1,\n", - " 'cnn': 1,\n", - " 'swedish': 1,\n", - " 'high school': 1,\n", - " 'abc': 1,\n", - " 'clues': 1,\n", - " 'covid-19': 1,\n", - " '’ s': 2,\n", - " 'moves': 1,\n", - " 'sewers': 1,\n", - " 'roll dice': 1,\n", - " 'jackson': 1,\n", - " 'decisions |': 1,\n", - " 'thehill': 1,\n", - " 'clear': 2,\n", - " 'chemical weapons': 2,\n", - " 'ukraine': 3,\n", - " 'claims president': 2,\n", - " 'biden': 2,\n", - " 'nasa': 2,\n", - " 'solar system': 2,\n", - " 'daily mail': 3,\n", - " 'us stocks': 1,\n", - " 'fed chair powell': 1,\n", - " \"'s remarks\": 1,\n", - " 'fox': 1,\n", - " \"'we 've\": 1,\n", - " 'tests': 1,\n", - " 'covid': 1,\n", - " 'politico': 1,\n", - " 'duchess': 1,\n", - " 'cambridge': 1,\n", - " 'swaps khaki jungle gear': 1,\n", - " 'vampire': 1,\n", - " 'wife': 1,\n", - " 'belize': 1,\n", - " 'china': 2,\n", - " 'flight recorders': 1,\n", - " 'plane crash': 1,\n", - " 'reuters': 2,\n", - " 'russian oligarch': 1,\n", - " 'abramovich': 1,\n", - " 'live': 1,\n", - " 'russia': 2,\n", - " 'stops talks': 1,\n", - " 'japan': 1,\n", - " 'español': 1,\n", - " 'powers remain': 1,\n", - " 'threats lurk': 1,\n", - " 'set': 1,\n", - " 'webb': 1,\n", - " 'telescope begins multi-instrument alignment': 1,\n", - " 'scitechdaily': 1,\n", - " 'uconn': 1,\n", - " 'ucf': 1,\n", - " 'ncaa': 1,\n", - " \"women 's tournament second-round highlights\": 1,\n", - " 'march madness': 1,\n", - " 'bucking republican trend': 1,\n", - " 'indiana': 1,\n", - " 'vetoes transgender': 1,\n", - " 'bill': 1,\n", - " 'maggie fox': 1,\n", - " 'coronation': 1,\n", - " 'shameless': 1,\n", - " \"'sudden accident\": 1,\n", - " 'mirror online': 1,\n", - " 'mirror': 2,\n", - " 'plane crash –': 1,\n", - " 'search': 1,\n", - " 'moment flight': 1,\n", - " 'daniel morgan': 1,\n", - " 'report condemns': 1,\n", - " 'met': 1,\n", - " 'guardian': 6,\n", - " 'rishi sunak': 1,\n", - " '’ s spring': 1,\n", - " 'statement': 1,\n", - " 'bbc.com': 1,\n", - " 'uk': 3,\n", - " 'ireland': 1,\n", - " 'euro': 1,\n", - " 'vladimir putin': 2,\n", - " \"'s 'lover\": 1,\n", - " 'brass eye': 1,\n", - " '’ s outtakes': 1,\n", - " 'brutal tv comedy': 1,\n", - " 'threatens civilians': 1,\n", - " 'mariupol': 1,\n", - " \"'s spirit\": 1,\n", - " 'shell u-turn': 1,\n", - " 'cambo': 1,\n", - " 'green targets': 1,\n", - " 'st helens': 1,\n", - " 'dog attack': 1,\n", - " 'girl': 1,\n", - " 'bbc': 1,\n", - " 'playstation': 1,\n", - " \"'assassin 's\": 1,\n", - " 'creed': 1,\n", - " 'jade raymond': 1,\n", - " 'haven studios': 1,\n", - " 'nme': 1,\n", - " 'nintendo switch': 1,\n", - " 'folders •': 1,\n", - " 'eurogamer.net': 2,\n", - " 'fa': 1,\n", - " 'solution ”': 1,\n", - " 'liverpool': 1,\n", - " 'fan group blasts “ shambolic ”': 1,\n", - " 'wembley': 1,\n", - " 'anfield': 1,\n", - " 'manchester': 1,\n", - " 'live erik': 1,\n", - " 'hag': 1,\n", - " 'utd': 1,\n", - " 'manager updates': 1,\n", - " 'manchester evening': 1,\n", - " 'inflation': 1,\n", - " 'government borrowing': 1,\n", - " 'february': 1,\n", - " 'crude oil': 1,\n", - " '– business': 1,\n", - " 'kremlin': 1,\n", - " 'large-scale fraud': 1,\n", - " 'sky': 1,\n", - " 'natural gas': 1,\n", - " 'gazprom': 1,\n", - " 'retail unit': 1,\n", - " 'insider': 1,\n", - " 'zaghari-ratcliffe': 1,\n", - " 'hunt': 1,\n", - " 'iran': 1,\n", - " 'debt payment': 1}" - ] - }, - "execution_count": 22, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "w = {}\n", - "for x in all_titles:\n", - " for n in TextBlob(x).noun_phrases:\n", - " if n in w:\n", - " w[n].append(x)\n", - " else:\n", - " w[n]=[x]\n", - "{ x:len(w[x]) for x in w.keys()}" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Chúng ta có thể thấy rằng danh từ không cung cấp cho chúng ta các nhóm chủ đề lớn. Hãy thay thế danh từ bằng các thuật ngữ tổng quát hơn thu được từ đồ thị khái niệm. Điều này sẽ mất một chút thời gian, vì chúng ta đang thực hiện cuộc gọi REST cho mỗi cụm danh từ.\n" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "metadata": { - "trusted": true - }, - "outputs": [], - "source": [ - "w = {}\n", - "for x in all_titles:\n", - " for noun in TextBlob(x).noun_phrases:\n", - " terms = query(noun)\n", - " for term in [u for u in terms.keys() if terms[u]>0.1]:\n", - " if term in w:\n", - " w[term].append(x)\n", - " else:\n", - " w[term]=[x]" - ] - }, - { - "cell_type": "code", - "execution_count": 24, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'city': 9,\n", - " 'brand': 4,\n", - " 'place': 9,\n", - " 'town': 4,\n", - " 'factor': 4,\n", - " 'film': 4,\n", - " 'nation': 11,\n", - " 'state': 5,\n", - " 'person': 4,\n", - " 'organization': 5,\n", - " 'publication': 10,\n", - " 'market': 5,\n", - " 'economy': 4,\n", - " 'company': 6,\n", - " 'newspaper': 6,\n", - " 'relationship': 6}" - ] - }, - "execution_count": 24, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "{ x:len(w[x]) for x in w.keys() if len(w[x])>3}" - ] - }, - { - "cell_type": "code", - "execution_count": 27, - "metadata": { - "trusted": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "ECONOMY:\n", - "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", - "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", - "\n", - "NATION:\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", - "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", - "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", - "UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian\n", - "Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", - "Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian\n", - "\n", - "PERSON:\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", - "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", - "Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters\n", - "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n" - ] - } - ], - "source": [ - "print('\\nECONOMY:\\n'+'\\n'.join(w['economy']))\n", - "print('\\nNATION:\\n'+'\\n'.join(w['nation']))\n", - "print('\\nPERSON:\\n'+'\\n'.join(w['person']))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "\n---\n\n**Tuyên bố miễn trừ trách nhiệm**: \nTài liệu này đã được dịch bằng dịch vụ dịch thuật AI [Co-op Translator](https://github.com/Azure/co-op-translator). Mặc dù chúng tôi cố gắng đảm bảo độ chính xác, xin lưu ý rằng các bản dịch tự động có thể chứa lỗi hoặc không chính xác. Tài liệu gốc bằng ngôn ngữ bản địa nên được coi là nguồn thông tin chính thức. Đối với các thông tin quan trọng, khuyến nghị sử dụng dịch vụ dịch thuật chuyên nghiệp bởi con người. Chúng tôi không chịu trách nhiệm cho bất kỳ sự hiểu lầm hoặc diễn giải sai nào phát sinh từ việc sử dụng bản dịch này.\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3.7.4 64-bit (conda)", - "metadata": { - "interpreter": { - "hash": "86193a1ab0ba47eac1c69c1756090baa3b420b3eea7d4aafab8b85f8b312f0c5" - } - }, - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.5" - }, - "coopTranslator": { - "original_hash": "7b3f1fc049371bcf8649ac9fefdf0413", - "translation_date": "2025-10-03T18:56:44+00:00", - "source_file": "lessons/2-Symbolic/MSConceptGraph.ipynb", - "language_code": "vi" - } + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Đồ thị Khái niệm sử dụng ConceptNet\n", + "\n", + "> **Lưu ý:** API [Microsoft Concept Graph](https://concept.research.microsoft.com/) gốc không còn khả dụng. Sổ tay này đã được cập nhật để sử dụng [ConceptNet](https://conceptnet.io/) như một giải pháp thay thế, đó là một đồ thị tri thức mở miễn phí với các mối quan hệ `is-a` tương tự giữa các khái niệm.\n", + "\n", + "[ConceptNet](https://conceptnet.io/) là một mạng ngữ nghĩa lớn gồm các khái niệm với các mối quan hệ như `IsA`, `PartOf`, `UsedFor` và nhiều hơn nữa. Nó có sẵn dưới dạng:\n", + " * Một tệp dữ liệu có thể tải xuống\n", + " * Một REST API (không cần khóa API)\n", + "\n", + "Thống kê ConceptNet:\n", + " * Hơn 8 triệu nút\n", + " * Hơn 21 triệu cạnh trên 83 ngôn ngữ\n" + ] }, - "nbformat": 4, - "nbformat_minor": 2 + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Sử dụng Dịch vụ Web ConceptNet\n", + "\n", + "[ConceptNet](https://conceptnet.io/) cung cấp một REST API để khám phá các mối quan hệ `is-a` (IsA) giữa các khái niệm. Không yêu cầu khóa API.\n", + "Dưới đây là URL mẫu để gọi: `https://api.conceptnet.io/query?start=/c/en/microsoft&rel=/r/IsA&limit=10`\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "import urllib\n", + "import json\n", + "\n", + "def http(x):\n", + " response = urllib.request.urlopen(x)\n", + " data = response.read()\n", + " return data.decode('utf-8')\n", + "\n", + "def query(x):\n", + " concept = x.lower().replace(' ', '_')\n", + " url = \"https://api.conceptnet.io/query?start=/c/en/{}&rel=/r/IsA&limit=10\".format(\n", + " urllib.parse.quote(concept))\n", + " try:\n", + " result = json.loads(http(url))\n", + " except Exception:\n", + " return {}\n", + " edges = result.get('edges', [])\n", + " if not edges:\n", + " return {}\n", + " total_weight = sum(edge['weight'] for edge in edges)\n", + " if total_weight == 0:\n", + " return {}\n", + " return {edge['end']['label']: edge['weight'] / total_weight for edge in edges}\n", + "\n", + "query('microsoft')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Hãy thử phân loại các tiêu đề tin tức bằng cách sử dụng các khái niệm chính. Để lấy các tiêu đề tin tức, chúng ta sẽ sử dụng dịch vụ [NewsApi.org](http://newsapi.org). Bạn cần có khóa API riêng để sử dụng dịch vụ này - hãy truy cập trang web và đăng ký gói phát triển miễn phí.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "newsapi_key = ''\n", + "def get_news(country='us'):\n", + " res = json.loads(http(\"https://newsapi.org/v2/top-headlines?country={0}&apiKey={1}\".format(country,newsapi_key)))\n", + " return res['articles']\n", + "\n", + "all_titles = [x['title'] for x in get_news('us')+get_news('gb')]" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['Covid-19 Live Updates: Vaccines and Boosters News - The New York Times',\n", + " 'Ukrainians Flee Mariupol as Russian Forces Push to Take Port City - The Wall Street Journal',\n", + " 'Bond Yields Jump, Stock Futures Rise After Powell Says Fed Is Ready to Be More Aggressive - The Wall Street Journal',\n", + " 'Putin critic Alexei Navalny found guilty by Russian court - New York Post ',\n", + " \"Supreme Court nominee Ketanji Brown Jackson will face questions at confirmation hearing's second day - CNN\",\n", + " '2 teachers killed at Swedish high school, student arrested - ABC News',\n", + " 'Clues to Covid-19’s Next Moves Come From Sewers - The Wall Street Journal',\n", + " 'Republicans to roll dice by grilling Jackson over child-pornography sentencing decisions | TheHill - The Hill',\n", + " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", + " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", + " \"US stocks whipsawed overnight after Fed Chair Powell's remarks - Fox Business\",\n", + " \"'We've learned absolutely nothing': Tests could again be in short supply if Covid surges - POLITICO\",\n", + " \"Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\",\n", + " 'China searches for victims, flight recorders after first plane crash in 12 years - Reuters',\n", + " 'Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters',\n", + " 'Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español',\n", + " 'Powers Remain and Threats Lurk as Women’s Sweet 16 Is Set - The New York Times',\n", + " 'Webb Space Telescope Begins Multi-Instrument Alignment - SciTechDaily',\n", + " \"UConn vs UCF - NCAA women's tournament second-round highlights - March Madness\",\n", + " 'Bucking Republican Trend, Indiana Governor Vetoes Transgender Sports Bill - The New York Times',\n", + " \"Maggie Fox dead: Coronation Street and Shameless actress dies after 'sudden accident' - Mirror Online - The Mirror\",\n", + " 'China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent',\n", + " 'Daniel Morgan murder: damning report condemns Met police - The Guardian',\n", + " 'What to expect from Rishi Sunak’s Spring Statement - BBC.com',\n", + " 'UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian',\n", + " \"Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\",\n", + " 'Brass Eye’s outtakes show the brutal TV comedy was the tip of an iceberg - The Guardian',\n", + " \"Vladimir Putin threatens civilians to break Mariupol's spirit - The Times\",\n", + " 'Shell U-turn on Cambo oilfield would threaten green targets, say campaigners - The Guardian',\n", + " 'St Helens dog attack: Girl aged 17 months killed at home - BBC',\n", + " \"PlayStation to buy 'Assassin's Creed' veteran Jade Raymond's Haven Studios - NME\",\n", + " '‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent',\n", + " 'NASA confirms there are 5,000 planets outside our solar system - Daily Mail',\n", + " 'Nintendo Switch finally has folders • Eurogamer.net - Eurogamer.net',\n", + " 'FA to “find a solution” as Liverpool fan group blasts “shambolic” Wembley travel - This Is Anfield',\n", + " 'Manchester United transfer news LIVE Erik ten Hag latest and Man Utd manager updates - Manchester Evening News',\n", + " 'Inflation raises cost of UK government borrowing in February; crude oil up again – business live - The Guardian',\n", + " 'Alexei Navalny: Kremlin critic found guilty of large-scale fraud and contempt of court by Russian court - Sky News',\n", + " \"UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\",\n", + " 'Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian']" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "all_titles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Trước tiên, chúng ta muốn có khả năng trích xuất danh từ từ tiêu đề tin tức. Chúng ta sẽ sử dụng thư viện `TextBlob` để làm điều này, thư viện này giúp đơn giản hóa nhiều tác vụ NLP điển hình như vậy.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Requirement already satisfied: textblob in c:\\winapp\\miniconda3\\lib\\site-packages (0.17.1)\n", + "Requirement already satisfied: nltk>=3.1 in c:\\winapp\\miniconda3\\lib\\site-packages (from textblob) (3.5)\n", + "Requirement already satisfied: joblib in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (1.0.1)\n", + "Requirement already satisfied: regex in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (2021.11.10)\n", + "Requirement already satisfied: tqdm in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (4.61.2)\n", + "Requirement already satisfied: click in c:\\winapp\\miniconda3\\lib\\site-packages (from nltk>=3.1->textblob) (8.0.3)\n", + "Requirement already satisfied: colorama in c:\\winapp\\miniconda3\\lib\\site-packages (from click->nltk>=3.1->textblob) (0.4.4)\n", + "Finished.\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "[nltk_data] Downloading package brown to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package brown is already up-to-date!\n", + "[nltk_data] Downloading package punkt to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package punkt is already up-to-date!\n", + "[nltk_data] Downloading package wordnet to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package wordnet is already up-to-date!\n", + "[nltk_data] Downloading package averaged_perceptron_tagger to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package averaged_perceptron_tagger is already up-to-\n", + "[nltk_data] date!\n", + "[nltk_data] Downloading package conll2000 to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package conll2000 is already up-to-date!\n", + "[nltk_data] Downloading package movie_reviews to\n", + "[nltk_data] C:\\Users\\dmitryso\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package movie_reviews is already up-to-date!\n" + ] + } + ], + "source": [ + "import sys\n", + "!{sys.executable} -m pip install textblob\n", + "!{sys.executable} -m textblob.download_corpora\n", + "from textblob import TextBlob" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'covid-19 live updates': 1,\n", + " 'vaccines': 1,\n", + " 'boosters': 1,\n", + " 'york': 4,\n", + " 'ukrainians flee mariupol': 1,\n", + " 'forces push': 1,\n", + " 'port city': 1,\n", + " 'wall street journal': 3,\n", + " 'bond yields': 1,\n", + " 'futures rise': 1,\n", + " 'powell says fed': 1,\n", + " 'ready': 1,\n", + " 'be': 1,\n", + " 'aggressive': 1,\n", + " 'putin': 3,\n", + " 'alexei navalny': 2,\n", + " 'russian': 2,\n", + " 'supreme court nominee': 1,\n", + " 'ketanji brown jackson': 1,\n", + " \"confirmation hearing 's\": 1,\n", + " 'cnn': 1,\n", + " 'swedish': 1,\n", + " 'high school': 1,\n", + " 'abc': 1,\n", + " 'clues': 1,\n", + " 'covid-19': 1,\n", + " '’ s': 2,\n", + " 'moves': 1,\n", + " 'sewers': 1,\n", + " 'roll dice': 1,\n", + " 'jackson': 1,\n", + " 'decisions |': 1,\n", + " 'thehill': 1,\n", + " 'clear': 2,\n", + " 'chemical weapons': 2,\n", + " 'ukraine': 3,\n", + " 'claims president': 2,\n", + " 'biden': 2,\n", + " 'nasa': 2,\n", + " 'solar system': 2,\n", + " 'daily mail': 3,\n", + " 'us stocks': 1,\n", + " 'fed chair powell': 1,\n", + " \"'s remarks\": 1,\n", + " 'fox': 1,\n", + " \"'we 've\": 1,\n", + " 'tests': 1,\n", + " 'covid': 1,\n", + " 'politico': 1,\n", + " 'duchess': 1,\n", + " 'cambridge': 1,\n", + " 'swaps khaki jungle gear': 1,\n", + " 'vampire': 1,\n", + " 'wife': 1,\n", + " 'belize': 1,\n", + " 'china': 2,\n", + " 'flight recorders': 1,\n", + " 'plane crash': 1,\n", + " 'reuters': 2,\n", + " 'russian oligarch': 1,\n", + " 'abramovich': 1,\n", + " 'live': 1,\n", + " 'russia': 2,\n", + " 'stops talks': 1,\n", + " 'japan': 1,\n", + " 'español': 1,\n", + " 'powers remain': 1,\n", + " 'threats lurk': 1,\n", + " 'set': 1,\n", + " 'webb': 1,\n", + " 'telescope begins multi-instrument alignment': 1,\n", + " 'scitechdaily': 1,\n", + " 'uconn': 1,\n", + " 'ucf': 1,\n", + " 'ncaa': 1,\n", + " \"women 's tournament second-round highlights\": 1,\n", + " 'march madness': 1,\n", + " 'bucking republican trend': 1,\n", + " 'indiana': 1,\n", + " 'vetoes transgender': 1,\n", + " 'bill': 1,\n", + " 'maggie fox': 1,\n", + " 'coronation': 1,\n", + " 'shameless': 1,\n", + " \"'sudden accident\": 1,\n", + " 'mirror online': 1,\n", + " 'mirror': 2,\n", + " 'plane crash –': 1,\n", + " 'search': 1,\n", + " 'moment flight': 1,\n", + " 'daniel morgan': 1,\n", + " 'report condemns': 1,\n", + " 'met': 1,\n", + " 'guardian': 6,\n", + " 'rishi sunak': 1,\n", + " '’ s spring': 1,\n", + " 'statement': 1,\n", + " 'bbc.com': 1,\n", + " 'uk': 3,\n", + " 'ireland': 1,\n", + " 'euro': 1,\n", + " 'vladimir putin': 2,\n", + " \"'s 'lover\": 1,\n", + " 'brass eye': 1,\n", + " '’ s outtakes': 1,\n", + " 'brutal tv comedy': 1,\n", + " 'threatens civilians': 1,\n", + " 'mariupol': 1,\n", + " \"'s spirit\": 1,\n", + " 'shell u-turn': 1,\n", + " 'cambo': 1,\n", + " 'green targets': 1,\n", + " 'st helens': 1,\n", + " 'dog attack': 1,\n", + " 'girl': 1,\n", + " 'bbc': 1,\n", + " 'playstation': 1,\n", + " \"'assassin 's\": 1,\n", + " 'creed': 1,\n", + " 'jade raymond': 1,\n", + " 'haven studios': 1,\n", + " 'nme': 1,\n", + " 'nintendo switch': 1,\n", + " 'folders •': 1,\n", + " 'eurogamer.net': 2,\n", + " 'fa': 1,\n", + " 'solution ”': 1,\n", + " 'liverpool': 1,\n", + " 'fan group blasts “ shambolic ”': 1,\n", + " 'wembley': 1,\n", + " 'anfield': 1,\n", + " 'manchester': 1,\n", + " 'live erik': 1,\n", + " 'hag': 1,\n", + " 'utd': 1,\n", + " 'manager updates': 1,\n", + " 'manchester evening': 1,\n", + " 'inflation': 1,\n", + " 'government borrowing': 1,\n", + " 'february': 1,\n", + " 'crude oil': 1,\n", + " '– business': 1,\n", + " 'kremlin': 1,\n", + " 'large-scale fraud': 1,\n", + " 'sky': 1,\n", + " 'natural gas': 1,\n", + " 'gazprom': 1,\n", + " 'retail unit': 1,\n", + " 'insider': 1,\n", + " 'zaghari-ratcliffe': 1,\n", + " 'hunt': 1,\n", + " 'iran': 1,\n", + " 'debt payment': 1}" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w = {}\n", + "for x in all_titles:\n", + " for n in TextBlob(x).noun_phrases:\n", + " if n in w:\n", + " w[n].append(x)\n", + " else:\n", + " w[n]=[x]\n", + "{ x:len(w[x]) for x in w.keys()}" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Chúng ta có thể thấy rằng các danh từ không tạo ra cho chúng ta các nhóm chủ đề lớn. Hãy thay thế các danh từ bằng các thuật ngữ tổng quát hơn lấy từ đồ thị khái niệm. Việc này sẽ mất một chút thời gian, vì chúng ta đang thực hiện gọi REST cho mỗi cụm danh từ.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "trusted": true + }, + "outputs": [], + "source": [ + "w = {}\n", + "for x in all_titles:\n", + " for noun in TextBlob(x).noun_phrases:\n", + " terms = query(noun)\n", + " for term in [u for u in terms.keys() if terms[u]>0.1]:\n", + " if term in w:\n", + " w[term].append(x)\n", + " else:\n", + " w[term]=[x]" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'city': 9,\n", + " 'brand': 4,\n", + " 'place': 9,\n", + " 'town': 4,\n", + " 'factor': 4,\n", + " 'film': 4,\n", + " 'nation': 11,\n", + " 'state': 5,\n", + " 'person': 4,\n", + " 'organization': 5,\n", + " 'publication': 10,\n", + " 'market': 5,\n", + " 'economy': 4,\n", + " 'company': 6,\n", + " 'newspaper': 6,\n", + " 'relationship': 6}" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "{ x:len(w[x]) for x in w.keys() if len(w[x])>3}" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "trusted": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "ECONOMY:\n", + "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", + "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", + "\n", + "NATION:\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", + "China searches for victims, flight recorders after first plane crash in 12 years - Reuters\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "Live updates: Russia stops talks with Japan over sanctions - The Associated Press - en Español\n", + "China plane crash – live: Search for survivors continues as witness describes moment flight fell from sky - The Independent\n", + "UK and Republic of Ireland in line to host Euro 2028 after no one else bids - The Guardian\n", + "Friends beg Vladimir Putin's 'lover' to persuade him to end Ukraine invasion - The Mirror\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "UK prepares to nationalize Russia natural gas giant Gazprom's retail unit - Business Insider\n", + "Zaghari-Ratcliffe: Hunt calls for inquiry into delay over Iran debt payment - The Guardian\n", + "\n", + "PERSON:\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n", + "Duchess of Cambridge swaps khaki jungle gear for Vampire's Wife dress on Belize trip - Daily Mail\n", + "Second superyacht linked to Russian oligarch Abramovich docks in Turkey - Reuters\n", + "‘Clear sign’ Putin considering using chemical weapons in Ukraine, claims President Biden - The Independent\n" + ] + } + ], + "source": [ + "print('\\nECONOMY:\\n'+'\\n'.join(w['economy']))\n", + "print('\\nNATION:\\n'+'\\n'.join(w['nation']))\n", + "print('\\nPERSON:\\n'+'\\n'.join(w['person']))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "---\n\n\n**Tuyên bố miễn trừ trách nhiệm**: \nTài liệu này đã được dịch bằng dịch vụ dịch thuật AI [Co-op Translator](https://github.com/Azure/co-op-translator). Mặc dù chúng tôi nỗ lực để đảm bảo độ chính xác, xin lưu ý rằng bản dịch tự động có thể chứa lỗi hoặc không chính xác. Văn bản gốc bằng ngôn ngữ gốc của tài liệu nên được xem là nguồn tham khảo chính thức. Đối với các thông tin quan trọng, nên sử dụng dịch vụ dịch thuật chuyên nghiệp bởi con người. Chúng tôi không chịu trách nhiệm đối với bất kỳ sự hiểu lầm hoặc diễn giải sai nào phát sinh từ việc sử dụng bản dịch này.\n\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3.7.4 64-bit (conda)", + "metadata": { + "interpreter": { + "hash": "86193a1ab0ba47eac1c69c1756090baa3b420b3eea7d4aafab8b85f8b312f0c5" + } + }, + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.5" + } + }, + "nbformat": 4, + "nbformat_minor": 2 } \ No newline at end of file