Skip to content

Commit

Permalink
Merge pull request microsoft#165 from yaph/main
Browse files Browse the repository at this point in the history
Grammar: This happen happened -> This happened
  • Loading branch information
BethanyJep authored Jun 5, 2023
2 parents 34ad1d8 + acfb253 commit a7e3a49
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 65 deletions.
2 changes: 1 addition & 1 deletion lessons/1-Intro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Year | Human Parity achieved
2018 | [Automatic Machine Translation](https://arxiv.org/abs/1803.05567) (Chinese-to-English)
2020 | [Image Captioning](https://arxiv.org/abs/2009.13682)

Over the past few years we have witnessed huge successes with large language models, such as BERT and GPT-3. This happen happened mostly due to the fact that there is a lot of general text data available that allows us to train models to capture the structure and meaning of texts, pre-train them on general text collections, and then specialize those models for more specific tasks. We will learn more about [Natural Language Processing](../5-NLP/README.md) later in this course.
Over the past few years we have witnessed huge successes with large language models, such as BERT and GPT-3. This happened mostly due to the fact that there is a lot of general text data available that allows us to train models to capture the structure and meaning of texts, pre-train them on general text collections, and then specialize those models for more specific tasks. We will learn more about [Natural Language Processing](../5-NLP/README.md) later in this course.

## 🚀 Challenge

Expand Down
73 changes: 41 additions & 32 deletions lessons/2-Symbolic/Animals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 1,
"metadata": {
"trusted": true
},
Expand Down Expand Up @@ -71,7 +71,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 2,
"metadata": {
"trusted": true
},
Expand Down Expand Up @@ -110,7 +110,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 3,
"metadata": {
"trusted": true
},
Expand Down Expand Up @@ -177,7 +177,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 4,
"metadata": {
"trusted": true
},
Expand All @@ -192,12 +192,18 @@
"y/n\n",
"claws\n",
"y/n\n",
"eats meat\n",
"forward-looking eyes\n",
"y/n\n",
"color\n",
"0. red-brown\n",
"1. black and white\n",
"2. other\n",
"has hooves\n",
"y/n\n",
"long neck\n",
"y/n\n",
"long legs\n",
"y/n\n",
"pattern\n",
"0. dark stripes\n",
"1. dark spots\n"
Expand All @@ -206,10 +212,10 @@
{
"data": {
"text/plain": [
"'monkey'"
"'giraffe'"
]
},
"execution_count": 34,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -232,7 +238,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 5,
"metadata": {
"trusted": true
},
Expand All @@ -242,31 +248,26 @@
"output_type": "stream",
"text": [
"Collecting git+https://github.com/buguroo/pyknow/\n",
" Cloning https://github.com/buguroo/pyknow/ to c:\\users\\dmitryso\\appdata\\local\\temp\\pip-req-build-3iv4twpl\n",
"Collecting frozendict==1.2\n",
" Cloning https://github.com/buguroo/pyknow/ to /tmp/pip-req-build-3cqeulyl\n",
" Running command git clone --filter=blob:none --quiet https://github.com/buguroo/pyknow/ /tmp/pip-req-build-3cqeulyl\n",
" Resolved https://github.com/buguroo/pyknow/ to commit 48818336f2e9a126f1964f2d8dc22d37ff800fe8\n",
" Preparing metadata (setup.py) ... \u001b[?25ldone\n",
"\u001b[?25hCollecting frozendict==1.2\n",
" Using cached frozendict-1.2.tar.gz (2.6 kB)\n",
"Collecting schema==0.6.7\n",
" Preparing metadata (setup.py) ... \u001b[?25ldone\n",
"\u001b[?25hCollecting schema==0.6.7\n",
" Using cached schema-0.6.7-py2.py3-none-any.whl (14 kB)\n",
"Building wheels for collected packages: pyknow, frozendict\n",
" Building wheel for pyknow (setup.py): started\n",
" Building wheel for pyknow (setup.py): finished with status 'done'\n",
" Created wheel for pyknow: filename=pyknow-1.7.0-py3-none-any.whl size=34580 sha256=334cc7a6eb47459f488db594e8537d7d33d2865c2dbcdd44854146c5c27608e3\n",
" Stored in directory: C:\\Users\\dmitryso\\AppData\\Local\\Temp\\pip-ephem-wheel-cache-l_g7bnq7\\wheels\\96\\36\\bd\\ee1de50bbcf2c7a323dead05584cf90db8898524cf7f57f488\n",
" Building wheel for frozendict (setup.py): started\n",
" Building wheel for frozendict (setup.py): finished with status 'done'\n",
" Created wheel for frozendict: filename=frozendict-1.2-py3-none-any.whl size=3146 sha256=71e32ca6c8ad7e0413bdc9a38f5882a36ba0509e562564a69904fcc9c8b66a9b\n",
" Stored in directory: c:\\users\\dmitryso\\appdata\\local\\pip\\cache\\wheels\\5b\\fa\\ab\\0a80360debb57b95f092356ee3a075bbbffc631b9813136599\n",
" Building wheel for pyknow (setup.py) ... \u001b[?25ldone\n",
"\u001b[?25h Created wheel for pyknow: filename=pyknow-1.7.0-py3-none-any.whl size=34228 sha256=b7de5b09292c4007667c72f69b98d5a1b5f7324ff15f9dd8e077c3d5f7aade42\n",
" Stored in directory: /tmp/pip-ephem-wheel-cache-k7jpave7/wheels/81/1a/d3/f6c15dbe1955598a37755215f2a10449e7418500d7bd4b9508\n",
" Building wheel for frozendict (setup.py) ... \u001b[?25ldone\n",
"\u001b[?25h Created wheel for frozendict: filename=frozendict-1.2-py3-none-any.whl size=3148 sha256=2863d55c240d2409cddf05ccfe600591f8478681549fc97555c47c90dc6bb160\n",
" Stored in directory: /home/rg/.cache/pip/wheels/49/ac/f8/cb8120244e710bdb479c86198b03c7b08c3c2d3d2bf448fd6e\n",
"Successfully built pyknow frozendict\n",
"Installing collected packages: schema, frozendict, pyknow\n",
"Successfully installed frozendict-1.2 pyknow-1.7.0 schema-0.6.7\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
" Running command git clone -q https://github.com/buguroo/pyknow/ 'C:\\Users\\dmitryso\\AppData\\Local\\Temp\\pip-req-build-3iv4twpl'\n"
]
}
],
"source": [
Expand All @@ -276,13 +277,14 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 13,
"metadata": {
"trusted": true
},
"outputs": [],
"source": [
"from pyknow import *"
"from pyknow import *\n",
"#import pyknow"
]
},
{
Expand All @@ -294,7 +296,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 14,
"metadata": {
"trusted": true
},
Expand Down Expand Up @@ -381,7 +383,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 15,
"metadata": {
"trusted": true
},
Expand All @@ -408,7 +410,7 @@
" (9, Fact(animal='tiger'))])"
]
},
"execution_count": 43,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -426,6 +428,13 @@
"ex1.run()\n",
"ex1.facts"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -448,7 +457,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
"version": "3.11.2"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit a7e3a49

Please sign in to comment.