Skip to content

Commit 74bc2d3

Browse files
author
github-actions
committed
Auto-convert .md episodes to .ipynb notebooks
1 parent a630181 commit 74bc2d3

11 files changed

+294
-295
lines changed

notebooks/01-basicConcepts.ipynb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "37429dd6",
5+
"id": "93bb0e29",
66
"metadata": {},
77
"source": [
88
"# Introduction to Natural Language Processing"
99
]
1010
},
1111
{
1212
"cell_type": "markdown",
13-
"id": "3fbaa4a3",
13+
"id": "e3c0f7c0",
1414
"metadata": {},
1515
"source": [
1616
"# Introduction\n",
@@ -72,7 +72,7 @@
7272
{
7373
"cell_type": "code",
7474
"execution_count": null,
75-
"id": "7abbf4a7",
75+
"id": "1da4b66d",
7676
"metadata": {},
7777
"outputs": [],
7878
"source": [
@@ -82,23 +82,22 @@
8282
"#disable warning about optional authentication\n",
8383
"logging.set_verbosity_error()\n",
8484
"\n",
85-
"text2text_generator = pipeline(\"text2text-generation\")\n",
86-
"print(text2text_generator(\"question: What is 42 ? context: 42 is the answer to life, the universe and everything\"))"
85+
"text2text_generator = pipeline(\"text2text-generation\")"
8786
]
8887
},
8988
{
9089
"cell_type": "code",
9190
"execution_count": null,
92-
"id": "615b8912",
91+
"id": "2af2ff94",
9392
"metadata": {},
9493
"outputs": [],
9594
"source": [
96-
"[{'generated_text': 'the answer to life, the universe and everything'}]"
95+
"print(text2text_generator(\"question: What is 42 ? context: 42 is the answer to life, the universe and everything\"))"
9796
]
9897
},
9998
{
10099
"cell_type": "markdown",
101-
"id": "06a49697",
100+
"id": "571dda1c",
102101
"metadata": {},
103102
"source": [
104103
"Feel free to prompt the chatbot with a few prompts of your own.\n",

notebooks/02-apis.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "3bde66d0",
5+
"id": "e5762b87",
66
"metadata": {},
77
"source": [
88
"# Corpus Development- Text Data Collection\n",

0 commit comments

Comments
 (0)