Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump release #381

Merged
merged 218 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
b759479
Chinese - Chapter 1 finished
yaoqih Apr 11, 2022
7db2d4e
Merge branch 'huggingface:main' into main
yaoqih Apr 12, 2022
8ec6fd3
Add zh to the languages field
yaoqih Apr 12, 2022
b931926
Remove untranslated chapters in _toctree.yml
yaoqih Apr 12, 2022
1aa5aa9
Merge branch 'huggingface:main' into main
yaoqih Apr 12, 2022
0778f36
Fixed an error in the translation format
yaoqih Apr 12, 2022
e7100c6
Added a small part of the missing content
yaoqih Apr 12, 2022
0990c77
Fix style
lewtun Apr 13, 2022
cfac53f
Merge remote-tracking branch 'upstream/main'
yaoqih Apr 26, 2022
fa0a047
Complete the translation of Chapters 0 and 2
yaoqih Apr 26, 2022
d65b6e9
Merge remote-tracking branch 'upstream/main'
yaoqih May 3, 2022
cfee90e
Fixed some bugs
yaoqih May 3, 2022
a2705ee
Add files via upload
yaoqih May 6, 2022
e76d10e
Merge branch 'huggingface:main' into main
yaoqih May 6, 2022
5157821
run make style to format chapter1 session3
yaoqih May 6, 2022
7c3c3f5
run make style to format code
yaoqih May 6, 2022
737c180
run make style to format code
yaoqih May 6, 2022
4823c13
Merge branch 'main' into 1375626371/main
lewtun May 12, 2022
15fc232
Fix style
lewtun May 12, 2022
a88b0bb
Chapter 2 Section 1 Bengali Translation (huggingface#72) (#168)
avishek-018 May 16, 2022
2e20395
[TH] Chapter 6 Section 1 and 2 (#171)
meanna May 16, 2022
dee8b18
[FA] CH1 / P1-2 (#142)
schoobani May 16, 2022
1abf819
Spanish Chapter 3: sections 1 & 2 (#162)
fordaz May 16, 2022
e260263
fix typos in bpe, wordpiece, unigram (#166)
KeremTurgutlu May 16, 2022
1781826
[FR] French Review (#186)
lbourdois May 16, 2022
ab803f3
Part 7: Training a causal... fixes (#179)
CakeCrusher May 17, 2022
6c78c3e
[TR] Translated Chapter 1.6 🤗 (#185)
tanersekmen May 17, 2022
1fe96c8
[PT][Chapter 01 - 2.mdx] - issue #51 (#170)
victorescosta May 17, 2022
d19424a
Fix Gradio ToC (#193)
lewtun May 18, 2022
b9548e9
Add Gradio authors and Blocks event (#189)
lewtun May 18, 2022
fbc9823
Update 6.mdx (#188)
couturierc May 18, 2022
af0bfc8
Add translating notes and glossary to Spanish (#192)
fordaz May 19, 2022
04d9444
add pt 4.3 (#191)
johnnv1 May 19, 2022
833ae2d
[FR] Visual corrections (#190)
lbourdois May 19, 2022
8226918
[PT] add chapter 4.4 and 4.5 (#196)
johnnv1 May 19, 2022
b6a2774
fix invite discord link (#197)
johnnv1 May 19, 2022
1302cef
[FA] Second draft of CH2/P1-2 (#139)
jowharshamshiri May 20, 2022
8b786d1
added chapter3 in hindi (#198)
robotjellyzone May 20, 2022
42d2030
[TR] Chapter 3/1 (#165)
Winvoker May 23, 2022
a340c81
[RU] Ch3-1/2/3 (#200)
pdumin May 23, 2022
b09e5fa
[PT] add 5.1 and 5.2 (#204)
johnnv1 May 23, 2022
6febc3e
Merge branch 'main' into prerelease-audio
lewtun May 24, 2022
e55809a
Add placeholders for audio chapters (#208)
lewtun May 24, 2022
3b081e9
[FA] - Ch3 - P1 and P2 (#199)
kambizG May 24, 2022
51a6c9f
[PT] add `end-of-chapter quiz` for chapter 4 (4.6) (#201)
johnnv1 May 24, 2022
751d069
Chapter1: 2.mdx Translated. (#206)
pandyaved98 May 24, 2022
9bf50f0
Remove comments from Persian ToC (#210)
lewtun May 24, 2022
b16fdff
Fix CI URL for PRs (#211)
lewtun May 24, 2022
d32eed6
Merge branch 'main' into prerelease-audio
lewtun May 24, 2022
e069fa0
Merge branch 'prerelease-audio' into add-audio-clf
lewtun May 24, 2022
db51446
code fragment & english syntax and meaning (#203)
CakeCrusher May 25, 2022
ef316d8
Updated Ch1/1 with Emoji (#214)
pandyaved98 May 25, 2022
62a824b
Add missing numpy import (#217)
lewtun May 25, 2022
7967b2b
Merge branch 'add-audio-clf'
yaoqih May 26, 2022
069f7df
Merge branch 'huggingface:main' into main
yaoqih May 26, 2022
7753f6a
Updata chapter3
yaoqih May 26, 2022
5f5c834
Code format for chapter3
yaoqih May 26, 2022
3885ff7
Updata yml file of chapter3
yaoqih May 26, 2022
76c59b2
Uptata yml file of chapter3
yaoqih May 26, 2022
54b4791
Fix yml file bug
yaoqih May 26, 2022
bc296c5
[ES] translate sections 8.1 and 8.2 (#215)
dzarkV May 27, 2022
4de9652
Fix path to datasets (#216)
listenaddress May 27, 2022
8545f05
[PT] add 5.3 (#218)
johnnv1 May 27, 2022
f66182e
fix 4.3 (#223)
johnnv1 May 27, 2022
4f10911
Run make style
yaoqih May 28, 2022
80b0fbd
Fix notebook generation (#227)
lewtun May 30, 2022
d9bef0c
add 5.4 (#226)
johnnv1 May 30, 2022
4052957
add pt wip (#225)
LincolnVS May 30, 2022
feff8a3
Added Gujarati List. (#221)
pandyaved98 May 30, 2022
7692aad
Merge branch 'main' into 1375626371/main
lewtun May 30, 2022
11ff5ec
Fix quality
lewtun May 30, 2022
1d9d9d3
Add Gradio nbs links to fr (#228)
lewtun May 30, 2022
d22cab9
Fix ToC tree
lewtun May 30, 2022
c930f3c
Remove audio templates
lewtun May 30, 2022
7363126
Merge branch 'main' into 1375626371/main
lewtun May 30, 2022
ac4d1b1
Fix fr section
lewtun May 30, 2022
7036ab1
Fix fr chapter
lewtun May 30, 2022
2302e48
Chinese - Chapter 3finished (#219)
yaoqih May 30, 2022
447c789
add ch7 at _toctree and translate 7.1 (#222)
LincolnVS May 30, 2022
52b8883
add 5.5 (#235)
johnnv1 Jun 9, 2022
7f5cc16
[FR] Review of chapter 7 (#233)
lbourdois Jun 9, 2022
4c74259
Italian translation - chapter 4 (#230)
ClonedOne Jun 9, 2022
097edcb
Added Thai translation of chapters 3 (#231)
meanna Jun 9, 2022
6dd7e6c
[Ru] Add part 2, chapter 2 (#234)
svv73 Jun 9, 2022
225c91d
Update 8.mdx (#237)
omerXfaruq Jun 9, 2022
85df4d9
Created HI/Chapter1/5.mdx (#232)
pandyaved98 Jun 14, 2022
e216c2f
Add Spanish chaper3/section4, update toc and glossary (#238)
fordaz Jun 17, 2022
77b3e15
[RU] Chapter 3 finished (#239)
pdumin Jun 17, 2022
3681c50
[PT] add 5.6 and 5.7 (#240)
johnnv1 Jun 17, 2022
9385a66
[EN] Visual corrections (#245)
lbourdois Jun 17, 2022
4b9dab4
Translation for 1/4, 1/5 and 1/6. (#247)
CaterinaBi Jun 17, 2022
e20a766
add event in PT (#250)
johnnv1 Jun 17, 2022
44690a3
Pin version of black (#252)
HiromuHota Jun 19, 2022
16efa44
Translate ja event (#241)
trtd56 Jun 20, 2022
456c608
[PT] add quiz chapter 5 (#243)
johnnv1 Jun 20, 2022
01231a1
Update 5.mdx (#253)
mehrdadnd Jun 20, 2022
3d5c36d
Translation for Traditional Chinese (zh-tw) chapter0 (#251)
thisistz Jun 20, 2022
4ebc0b9
Translated the whole Chapter 3 to Thai (#255)
a-krirk Jun 20, 2022
bd16058
Japanese chapter 4 (#244)
HiromuHota Jun 21, 2022
147496a
Translation of 1/7, 1/8, and 1/9. (#263)
CaterinaBi Jun 27, 2022
71f71e4
[PT] add chapter 8.1 and 8.2 (#265)
johnnv1 Jun 27, 2022
712d3b1
[RU] Chapter 4 (#269)
pdumin Jun 30, 2022
228a218
Add Thai translation for chapter 6.3b to 6.10 (#268)
meanna Jun 30, 2022
89c79d3
add 8.3 (#266)
johnnv1 Jun 30, 2022
a6cb07c
3.mdx of chapter 01 (#260)
victorescosta Jun 30, 2022
f5d6f46
Fix typo (#271)
atgctg Jul 5, 2022
b59a5ec
[PT] add chapter 6.1 (#273)
mdrs-thiago Jul 5, 2022
e46ab85
add Japanese chapter7 (#267)
webbigdata-jp Jul 6, 2022
cd9e36d
Merge branch 'huggingface:main' into main
yaoqih Jul 13, 2022
610d61c
zh-CN - Chapter 4,5finished
yaoqih Jul 13, 2022
d804922
replace `load_metric` with `evaluate.load` (#285)
lvwerra Jul 21, 2022
c34bfad
[GJ] Translation to Gujarati - Ch0 Setup (#287)
bhadreshpsavani Jul 25, 2022
eae6501
[PT] add chapter 6.2 and 6.3 (#279)
mdrs-thiago Jul 25, 2022
1537727
Fix formatting
lewtun Jul 25, 2022
6fed4f7
Merge branch 'main' into 1375626371/main
lewtun Jul 25, 2022
bb26db5
Debug formatting
lewtun Jul 25, 2022
69187a3
Debug FR formatting
lewtun Jul 25, 2022
69accea
zh-CN - Chapter 4,5finished (#281)
yaoqih Jul 25, 2022
be15274
Chapter 01 - Done [PT] #51 (#280)
victorescosta Jul 25, 2022
4656735
tf_default_data_collator seems to have moved
ehrencrona Jul 31, 2022
aebb46e
Merge branch 'huggingface:main' into main
yaoqih Aug 1, 2022
e69fce2
zh-CN - Chapter 6finished
yaoqih Aug 1, 2022
6403eaa
Revert "Merge branch 'huggingface:main' into main"
yaoqih Aug 1, 2022
43fc1f7
Revert "zh-CN - Chapter 6finished"
yaoqih Aug 1, 2022
2bf870d
zh-CN - Chapter 6finished
yaoqih Aug 1, 2022
ef3b87b
fix style
Aug 4, 2022
85f75d7
undo bad commit
Aug 4, 2022
a9b6d48
Merge pull request #289 from ehrencrona/tf_default_data_collator-moved
Rocketknight1 Aug 4, 2022
b4b2316
Merge pull request #290 from 1375626371/main
lvwerra Aug 4, 2022
0ef247f
Chapter5it (#278)
Nolanogenn Aug 15, 2022
8330d44
Vietnamese translation (#293)
honghanhh Aug 22, 2022
9828fd8
Translate JP chapter 8 (#249)
younesbelkada Aug 22, 2022
3d4e591
Italian translation - Chapter 8 (#272)
EdAbati Aug 22, 2022
57115d9
Translation to Vietnamese - chapter 5 (#297)
honghanhh Aug 23, 2022
7a7d48d
Add course contributors (#298)
lewtun Aug 23, 2022
3c6b8bb
Add CourseFloatingBanner component
mishig25 Aug 23, 2022
358f7cc
DocNotebookDropdown -> CourseFloatingBanner
mishig25 Aug 23, 2022
dbe0c28
Merge pull request #301 from huggingface/add_question_banner
mishig25 Aug 31, 2022
d0c1d6a
Italian translation Ch 2/1, 2/2 (#300)
gdacciaro Sep 2, 2022
e2f2597
Add contributors (#304)
lewtun Sep 2, 2022
0c00f58
Add forum button (#306)
lewtun Sep 2, 2022
ececc02
Translate into Vietnamese chap [6-9] - DONE (#303)
honghanhh Sep 2, 2022
8f1ba9a
Italian translation: Chapter 3 (#283)
sharkovsky Sep 2, 2022
2c0b3ba
Enable notebooks to be generated in any language (#311)
lewtun Sep 13, 2022
5536b4a
Generate notebooks for all languages (#313)
lewtun Sep 13, 2022
796f41d
Update notebook links (#312)
lewtun Sep 13, 2022
7a4a051
minor change to avoid confusion in ch2-5 (#310)
daspartho Sep 13, 2022
0b89f2d
Refactor tokenization of targets for transformers v4.22 (#316)
lewtun Sep 19, 2022
bb7fde4
typo fix (#319)
Aravindkumar-Rajendran Sep 23, 2022
611a24e
[FR] Many corrections (#318)
lbourdois Sep 23, 2022
e4a5c2d
Fix URL to the Pile (#324)
lewtun Oct 3, 2022
3b6e294
[RU] ch5 (#317)
pdumin Oct 3, 2022
d7cd693
fix: book url (#323)
buti1021 Oct 3, 2022
1b3e60a
zh-CN - Chapter 7,8,9finished (#315)
yaoqih Oct 4, 2022
2a61a64
Refactor events (#261)
lewtun Oct 4, 2022
4cd2c0e
Fix whole word masking labels (#326)
lewtun Oct 4, 2022
85019bc
Fix question answering indices (#327)
lewtun Oct 4, 2022
32b2bda
Add translation checker (#329)
lewtun Oct 5, 2022
c163e9c
[FR] Refactor events (#330)
lbourdois Oct 5, 2022
288108f
Translation Chapter 4 (#325)
fabridamicelli Oct 5, 2022
304a522
update author list (de) (#331)
fabridamicelli Oct 5, 2022
0ed1969
Fix Russian ToC (#332)
lewtun Oct 5, 2022
9f65007
Refactor dataset upload in Chapter 5 / section 5 (#334)
lewtun Oct 7, 2022
448547b
Fix id2label types (#337)
lewtun Oct 10, 2022
68ca3e8
Fix keywords in de quiz chapter 3 (#338)
JesperDramsch Oct 10, 2022
271ec19
Tweak course validator (#340)
lewtun Oct 12, 2022
b68c438
[Italian] Added Ch2/3 and Ch2/4 (#322)
gdacciaro Oct 12, 2022
6e652fe
Completes chapter 1 (#341)
CaterinaBi Oct 17, 2022
da4f696
Create 5.mdx and translate it into Japanese.
haruki-N Oct 18, 2022
97cd752
Create 6.mdx and translate it into Japanese.
haruki-N Oct 18, 2022
fabab7a
done chapter1.2,1.3
blackdoor571 Oct 21, 2022
2d45514
Create 4.mdx and translate it into Japanese.
haruki-N Oct 23, 2022
cd419a2
Slightly modified
haruki-N Oct 23, 2022
6fcb795
Slightly modified
haruki-N Oct 23, 2022
ca7dd53
Slightly modified
haruki-N Oct 23, 2022
c433132
TF generation fixes (#344)
Rocketknight1 Oct 28, 2022
16e0528
i18n: ES - translate file chapter2/6.mdx (#346)
hereje Oct 28, 2022
be7e245
Typo in russian translation (#349)
vood Oct 28, 2022
fd49e93
Remove translated string (#350)
vood Oct 28, 2022
f5d8039
[It] Ch2/5, Ch2/6, Ch2/7 (#353)
gdacciaro Oct 28, 2022
3d5c446
Add FAQ (#354)
lewtun Oct 28, 2022
d95d89f
i18n: ES - translate file chapter2/7.mdx (#347)
hereje Oct 28, 2022
ed04da0
[id] Add translation to Bahasa Indonesia for chapter0 & some of chapt…
gstdl Oct 28, 2022
fcef635
i18n: ES - chapter2/8.mdx (#352)
hereje Oct 28, 2022
e1c9aa3
Update 4.mdx based on the advice.
haruki-N Nov 1, 2022
e044813
[de] Translation Chapter 1 (#336)
MarcusFra Nov 1, 2022
1bab3b7
Update 1.mdx (#356)
cakiki Nov 2, 2022
d12ccdb
Update 1.mdx (#357)
cakiki Nov 2, 2022
97f072e
removed original english texts to open pull request
haruki-N Nov 3, 2022
fed8595
removed original english texts to open pull request
haruki-N Nov 3, 2022
7d07be8
removed original english texts to open pull request
haruki-N Nov 3, 2022
9b42858
add lines for chap1/4 to 6
haruki-N Nov 3, 2022
6a1edd9
Slightly modified
haruki-N Nov 3, 2022
3b6de2b
modify 2.mdx, 3.mdx
blackdoor571 Nov 4, 2022
5f2493a
modify _toctree.yml
blackdoor571 Nov 4, 2022
44f77be
Update pr docs actions (#369)
mishig25 Nov 8, 2022
db20ca5
Add Python syntax highlighting (#370)
davidgilbertson Nov 9, 2022
36b44d1
[FR] Add FAQ and more (#367)
lbourdois Nov 9, 2022
531e3f0
[RU] Chapter 6 (1/2) finished (#368)
pdumin Nov 9, 2022
fe38085
Spanish translation of Chapter 5 (#366)
camartinezbu Nov 9, 2022
972bcd2
Add Japanese trasnlation of chapter 1/ 7 to 10 (#359)
hiro819 Nov 10, 2022
a44a66a
Adding Portuguese Translation to Chapter3 (#361)
Cesar0106 Nov 10, 2022
f7fa7fa
Merge branch 'main' into main
younesbelkada Nov 10, 2022
d3ba0d8
Merge branch 'main' into main
younesbelkada Nov 10, 2022
7a365f3
make style
younesbelkada Nov 10, 2022
eeab1f0
Merge pull request #360 from haruki-N/main
younesbelkada Nov 10, 2022
e8fce4c
Merge branch 'main' into main
younesbelkada Nov 10, 2022
7081ab6
Merge pull request #363 from blackdoor571/main
younesbelkada Nov 10, 2022
bde9ef4
Typo in Chapter 2, Section 2 (#364)
filippo82 Nov 11, 2022
d54c30c
Revert "Update pr docs actions (#369)"
Nov 16, 2022
8c1bf18
Merge pull request #372 from huggingface/revert-369-update_doc_pr_act…
mishig25 Nov 16, 2022
e04fe8b
Typo (#374)
donglihe-hub Nov 18, 2022
d00c646
Chapter 9 - Italian (#373)
EdAbati Nov 18, 2022
2a6767d
Fix notebook link (#378)
lewtun Nov 22, 2022
31658da
docs: feat: chapter2-1 in Korean (#375)
wonhyeongseo Nov 22, 2022
e328700
Migrate Spaces URLs to new domain (#379)
lewtun Nov 22, 2022
92c615d
docs: feat: same links across languages (#380)
wonhyeongseo Nov 22, 2022
d75f6ca
Merge branch 'release' into bump_release
lewtun Nov 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
build:
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@use_hf_hub
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
with:
commit_sha: ${{ github.event.pull_request.head.sha }}
pr_number: ${{ github.event.number }}
Expand All @@ -18,6 +18,3 @@ jobs:
additional_args: --not_python_module
languages: ar bn de en es fa fr gj he hi id it ja ko pt ru th tr vi zh-CN zh-TW
hub_base_path: https://moon-ci-docs.huggingface.co
secrets:
token: ${{ secrets.HF_DOC_PUSH }}
comment_bot_token: ${{ secrets.HUGGINGFACE_PUSH }}
7 changes: 2 additions & 5 deletions .github/workflows/delete_doc_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ on:

jobs:
delete:
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@use_hf_hub
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
with:
pr_number: ${{ github.event.number }}
package: course
secrets:
token: ${{ secrets.HF_DOC_PUSH }}
comment_bot_token: ${{ secrets.HUGGINGFACE_PUSH }}
package: course
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This repo contains the content that's used to create the **[Hugging Face course]
| [Bahasa Indonesia](https://huggingface.co/course/id/chapter1/1) (WIP) | [`chapters/id`](https://github.com/huggingface/course/tree/main/chapters/id) | [@gstdl](https://github.com/gstdl) |
| [Italian](https://huggingface.co/course/it/chapter1/1) (WIP) | [`chapters/it`](https://github.com/huggingface/course/tree/main/chapters/it) | [@CaterinaBi](https://github.com/CaterinaBi), [@ClonedOne](https://github.com/ClonedOne), [@Nolanogenn](https://github.com/Nolanogenn), [@EdAbati](https://github.com/EdAbati), [@gdacciaro](https://github.com/gdacciaro) |
| [Japanese](https://huggingface.co/course/ja/chapter1/1) (WIP) | [`chapters/ja`](https://github.com/huggingface/course/tree/main/chapters/ja) | [@hiromu166](https://github.com/@hiromu166), [@younesbelkada](https://github.com/@younesbelkada), [@HiromuHota](https://github.com/@HiromuHota) |
| [Korean](https://huggingface.co/course/ko/chapter1/1) (WIP) | [`chapters/ko`](https://github.com/huggingface/course/tree/main/chapters/ko) | [@Doohae](https://github.com/Doohae) |
| [Korean](https://huggingface.co/course/ko/chapter1/1) (WIP) | [`chapters/ko`](https://github.com/huggingface/course/tree/main/chapters/ko) | [@Doohae](https://github.com/Doohae), [@wonhyeongseo](https://github.com/wonhyeongseo) |
| [Portuguese](https://huggingface.co/course/pt/chapter1/1) (WIP) | [`chapters/pt`](https://github.com/huggingface/course/tree/main/chapters/pt) | [@johnnv1](https://github.com/johnnv1), [@victorescosta](https://github.com/victorescosta), [@LincolnVS](https://github.com/LincolnVS) |
| [Russian](https://huggingface.co/course/ru/chapter1/1) (WIP) | [`chapters/ru`](https://github.com/huggingface/course/tree/main/chapters/ru) | [@pdumin](https://github.com/pdumin), [@svv73](https://github.com/svv73) |
| [Thai](https://huggingface.co/course/th/chapter1/1) (WIP) | [`chapters/th`](https://github.com/huggingface/course/tree/main/chapters/th) | [@peeraponw](https://github.com/peeraponw), [@a-krirk](https://github.com/a-krirk), [@jomariya23156](https://github.com/jomariya23156), [@ckingkan](https://github.com/ckingkan) |
Expand Down
8 changes: 4 additions & 4 deletions chapters/en/chapter0/1.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Introduction
# Introduction[[introduction]]

Welcome to the Hugging Face course! This introduction will guide you through setting up a working environment. If you're just starting the course, we recommend you first take a look at [Chapter 1](/course/chapter1), then come back and set up your environment so you can try the code yourself.

Expand All @@ -10,7 +10,7 @@ Note that we will not be covering the Windows system. If you're running on Windo

Most of the course relies on you having a Hugging Face account. We recommend creating one now: [create an account](https://huggingface.co/join).

## Using a Google Colab notebook
## Using a Google Colab notebook[[using-a-google-colab-notebook]]

Using a Colab notebook is the simplest possible setup; boot up a notebook in your browser and get straight to coding!

Expand Down Expand Up @@ -46,7 +46,7 @@ This installs a very light version of 🤗 Transformers. In particular, no speci

This will take a bit of time, but then you'll be ready to go for the rest of the course!

## Using a Python virtual environment
## Using a Python virtual environment[[using-a-python-virtual-environment]]

If you prefer to use a Python virtual environment, the first step is to install Python on your system. We recommend following [this guide](https://realpython.com/installing-python/) to get started.

Expand Down Expand Up @@ -99,7 +99,7 @@ which python
/home/<user>/transformers-course/.env/bin/python
```

### Installing dependencies
### Installing dependencies[[installing-dependencies]]

As in the previous section on using Google Colab instances, you'll now need to install the packages required to continue. Again, you can install the development version of 🤗 Transformers using the `pip` package manager:

Expand Down
10 changes: 5 additions & 5 deletions chapters/en/chapter1/1.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Introduction
# Introduction[[introduction]]

<CourseFloatingBanner
chapter={1}
classNames="absolute z-10 right-0 top-0"
/>

## Welcome to the 🤗 Course!
## Welcome to the 🤗 Course![[welcome-to-the-course]]

<Youtube id="00GKzGyWFEs" />

This course will teach you about natural language processing (NLP) using libraries from the [Hugging Face](https://huggingface.co/) ecosystem — [🤗 Transformers](https://github.com/huggingface/transformers), [🤗 Datasets](https://github.com/huggingface/datasets), [🤗 Tokenizers](https://github.com/huggingface/tokenizers), and [🤗 Accelerate](https://github.com/huggingface/accelerate) — as well as the [Hugging Face Hub](https://huggingface.co/models). It's completely free and without ads.


## What to expect?
## What to expect?[[what-to-expect]]

Here is a brief overview of the course:

Expand All @@ -33,7 +33,7 @@ This course:

After you've completed this course, we recommend checking out DeepLearning.AI's [Natural Language Processing Specialization](https://www.coursera.org/specializations/natural-language-processing?utm_source=deeplearning-ai&utm_medium=institutions&utm_campaign=20211011-nlp-2-hugging_face-page-nlp-refresh), which covers a wide range of traditional NLP models like naive Bayes and LSTMs that are well worth knowing about!

## Who are we?
## Who are we?[[who-are-we]]

About the authors:

Expand All @@ -55,7 +55,7 @@ About the authors:

**Leandro von Werra** is a machine learning engineer in the open-source team at Hugging Face and also a co-author of the O’Reilly book [Natural Language Processing with Transformers](https://www.oreilly.com/library/view/natural-language-processing/9781098136789/). He has several years of industry experience bringing NLP projects to production by working across the whole machine learning stack..

## FAQ
## FAQ[[faq]]

Here are some answers to frequently asked questions:

Expand Down
5 changes: 2 additions & 3 deletions chapters/en/chapter1/10.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- DISABLE-FRONTMATTER-SECTIONS -->

# End-of-chapter quiz
# End-of-chapter quiz[[end-of-chapter-quiz]]

<CourseFloatingBanner
chapter={1}
Expand Down Expand Up @@ -140,7 +140,6 @@ result = classifier("This is a course about the Transformers library")

### 6. True or false? A language model usually does not need labels for its pretraining.


<Question
choices={[
{
Expand All @@ -155,7 +154,7 @@ result = classifier("This is a course about the Transformers library")
]}
/>

### 7. Select the sentence that best describes the terms "model," "architecture," and "weights."
### 7. Select the sentence that best describes the terms "model", "architecture", and "weights".

<Question
choices={[
Expand Down
6 changes: 3 additions & 3 deletions chapters/en/chapter1/2.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Natural Language Processing
# Natural Language Processing[[natural-language-processing]]

<CourseFloatingBanner
chapter={1}
Expand All @@ -7,7 +7,7 @@

Before jumping into Transformer models, let's do a quick overview of what natural language processing is and why we care about it.

## What is NLP?
## What is NLP?[[what-is-nlp]]

NLP is a field of linguistics and machine learning focused on understanding everything related to human language. The aim of NLP tasks is not only to understand single words individually, but to be able to understand the context of those words.

Expand All @@ -21,6 +21,6 @@ The following is a list of common NLP tasks, with some examples of each:

NLP isn't limited to written text though. It also tackles complex challenges in speech recognition and computer vision, such as generating a transcript of an audio sample or a description of an image.

## Why is it challenging?
## Why is it challenging?[[why-is-it-challenging]]

Computers don't process information in the same way as humans. For example, when we read the sentence "I am hungry," we can easily understand its meaning. Similarly, given two sentences such as "I am hungry" and "I am sad," we're able to easily determine how similar they are. For machine learning (ML) models, such tasks are more difficult. The text needs to be processed in a way that enables the model to learn from it. And because language is complex, we need to think carefully about how this processing must be done. There has been a lot of research done on how to represent text, and we will look at some methods in the next chapter.
24 changes: 12 additions & 12 deletions chapters/en/chapter1/3.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Transformers, what can they do?
# Transformers, what can they do?[[transformers-what-can-they-do]]

<CourseFloatingBanner chapter={1}
classNames="absolute z-10 right-0 top-0"
Expand All @@ -15,7 +15,7 @@ In this section, we will look at what Transformer models can do and use our firs
If you want to run the examples locally, we recommend taking a look at the <a href="/course/chapter0">setup</a>.
</Tip>

## Transformers are everywhere!
## Transformers are everywhere![[transformers-are-everywhere]]

Transformer models are used to solve all kinds of NLP tasks, like the ones mentioned in the previous section. Here are some of the companies and organizations using Hugging Face and Transformer models, who also contribute back to the community by sharing their models:

Expand All @@ -29,7 +29,7 @@ The [🤗 Transformers library](https://github.com/huggingface/transformers) pro

Before diving into how Transformer models work under the hood, let's look at a few examples of how they can be used to solve some interesting NLP problems.

## Working with pipelines
## Working with pipelines[[working-with-pipelines]]

<Youtube id="tiZFewofSLM" />

Expand Down Expand Up @@ -82,7 +82,7 @@ Some of the currently [available pipelines](https://huggingface.co/transformers/

Let's have a look at a few of these!

## Zero-shot classification
## Zero-shot classification[[zero-shot-classification]]

We'll start by tackling a more challenging task where we need to classify texts that haven't been labelled. This is a common scenario in real-world projects because annotating text is usually time-consuming and requires domain expertise. For this use case, the `zero-shot-classification` pipeline is very powerful: it allows you to specify which labels to use for the classification, so you don't have to rely on the labels of the pretrained model. You've already seen how the model can classify a sentence as positive or negative using those two labels — but it can also classify the text using any other set of labels you like.

Expand Down Expand Up @@ -111,7 +111,7 @@ This pipeline is called _zero-shot_ because you don't need to fine-tune the mode
</Tip>


## Text generation
## Text generation[[text-generation]]

Now let's see how to use a pipeline to generate some text. The main idea here is that you provide a prompt and the model will auto-complete it by generating the remaining text. This is similar to the predictive text feature that is found on many phones. Text generation involves randomness, so it's normal if you don't get the same results as shown below.

Expand Down Expand Up @@ -139,7 +139,7 @@ You can control how many different sequences are generated with the argument `nu
</Tip>


## Using any model from the Hub in a pipeline
## Using any model from the Hub in a pipeline[[using-any-model-from-the-hub-in-a-pipeline]]

The previous examples used the default model for the task at hand, but you can also choose a particular model from the Hub to use in a pipeline for a specific task — say, text generation. Go to the [Model Hub](https://huggingface.co/models) and click on the corresponding tag on the left to display only the supported models for that task. You should get to a page like [this one](https://huggingface.co/models?pipeline_tag=text-generation).

Expand Down Expand Up @@ -174,13 +174,13 @@ Once you select a model by clicking on it, you'll see that there is a widget ena

</Tip>

### The Inference API
### The Inference API[[the-inference-api]]

All the models can be tested directly through your browser using the Inference API, which is available on the Hugging Face [website](https://huggingface.co/). You can play with the model directly on this page by inputting custom text and watching the model process the input data.

The Inference API that powers the widget is also available as a paid product, which comes in handy if you need it for your workflows. See the [pricing page](https://huggingface.co/pricing) for more details.

## Mask filling
## Mask filling[[mask-filling]]

The next pipeline you'll try is `fill-mask`. The idea of this task is to fill in the blanks in a given text:

Expand Down Expand Up @@ -210,7 +210,7 @@ The `top_k` argument controls how many possibilities you want to be displayed. N

</Tip>

## Named entity recognition
## Named entity recognition[[named-entity-recognition]]

Named entity recognition (NER) is a task where the model has to find which parts of the input text correspond to entities such as persons, locations, or organizations. Let's look at an example:

Expand Down Expand Up @@ -238,7 +238,7 @@ We pass the option `grouped_entities=True` in the pipeline creation function to

</Tip>

## Question answering
## Question answering[[question-answering]]

The `question-answering` pipeline answers questions using information from a given context:

Expand All @@ -258,7 +258,7 @@ question_answerer(

Note that this pipeline works by extracting information from the provided context; it does not generate the answer.

## Summarization
## Summarization[[summarization]]

Summarization is the task of reducing a text into a shorter text while keeping all (or most) of the important aspects referenced in the text. Here's an example:

Expand Down Expand Up @@ -303,7 +303,7 @@ summarizer(
Like with text generation, you can specify a `max_length` or a `min_length` for the result.


## Translation
## Translation[[translation]]

For translation, you can use a default model if you provide a language pair in the task name (such as `"translation_en_to_fr"`), but the easiest way is to pick the model you want to use on the [Model Hub](https://huggingface.co/models). Here we'll try translating from French to English:

Expand Down
Loading