-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69594d0
commit 4bb8efd
Showing
6 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,7 @@ spaCy | |
POS | ||
lxml | ||
headers | ||
Notebook | ||
Treebank | ||
Binder | ||
notebooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
EN_MEMOIRE_DE | ||
EN_MEMOIRE_DE | ||
FR_SIMPLE_REPLACE_ANGLICISM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ layout: default | |
[Calendly](https://calendly.com/lgrobol/remote-office-hour) | ||
- Lien Binder de secours : | ||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/LoicGrobol/web-interfaces/main) | ||
|
||
## Séances | ||
|
||
Tous les supports sont sur [github](https://github.com/loicgrobol/web-interfaces), voir | ||
|
@@ -53,6 +54,9 @@ est indisponible. | |
- {% notebook_badges slides/03-OOP/oop.py.md %} [Notebook | ||
OOP]({{site.url}}{{site.baseurl}}/slides/03-OOP/oop.py.ipynb) | ||
- [Treebank GSD-fr train]({{site.url}}{{site.baseurl}}/slides/03-OOP/data/fr_gsd-ud-train.conllu) | ||
- Solutions : | ||
- [Script v1]({{site.url}}{{site.baseurl}}/slides/03-OOP/correction_conllu_v1.py) | ||
- [Script v2]({{site.url}}{{site.baseurl}}/slides/03-OOP/correction_conllu_v2.py) | ||
|
||
### 2023-12-19 — `requests` et APIs REST | ||
|
||
|
@@ -63,10 +67,10 @@ est indisponible. | |
|
||
Vos solutions pour les exercices du notebook REST sont à envoyer dans un zip à | ||
<[email protected]> avant le ???. L'objet du message devra être `[Web 2024] TP Prénom Nom` et | ||
les nom de fichier devra être de la forme `prénom_nom-établissment.zip`, `établissement` étant | ||
le nom de fichier devra être de la forme `prénom_nom-établissment.zip`, `établissement` étant | ||
`Nanterre`, `P3` ou `Inalco`. | ||
|
||
## Lire les slides en local | ||
## Utilisation en local | ||
|
||
Les supports de ce cours sont écrits en Markdown, convertis en notebooks avec | ||
[Jupytext](https://github.com/mwouts/jupytext). C'est entre autres une façon d'avoir un historique | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import argparse | ||
|
||
import click | ||
import requests | ||
|
||
|
||
@click.command("Download a text resource and print it") | ||
@click.argument("url") | ||
def main(url): | ||
response = requests.get(url) | ||
if response: | ||
print(response.text) | ||
else: | ||
print(f"Error (status code {response.status_code})") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters