Unverified Commit c385de24 authored by lishukan's avatar lishukan Committed by GitHub
Browse files

[TYPO] fix typo/format in quicktour.md (#25519)



* fix_all_language_quicktour

* give up ! before bash command

---------
Co-authored-by: default avatarlishukan <lishukan@dxy.cn>
parent eec5841e
...@@ -68,11 +68,13 @@ Installieren Sie die folgenden Abhängigkeiten, falls Sie dies nicht bereits get ...@@ -68,11 +68,13 @@ Installieren Sie die folgenden Abhängigkeiten, falls Sie dies nicht bereits get
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```bash ```bash
pip install torch pip install torch
``` ```
</pt> </pt>
<tf> <tf>
```bash ```bash
pip install tensorflow pip install tensorflow
``` ```
...@@ -226,6 +228,7 @@ Genau wie die [`pipeline`] akzeptiert der Tokenizer eine Liste von Eingaben. Dar ...@@ -226,6 +228,7 @@ Genau wie die [`pipeline`] akzeptiert der Tokenizer eine Liste von Eingaben. Dar
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> pt_batch = tokenizer( >>> pt_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -237,6 +240,7 @@ Genau wie die [`pipeline`] akzeptiert der Tokenizer eine Liste von Eingaben. Dar ...@@ -237,6 +240,7 @@ Genau wie die [`pipeline`] akzeptiert der Tokenizer eine Liste von Eingaben. Dar
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> tf_batch = tokenizer( >>> tf_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -375,6 +379,7 @@ Ein besonders cooles 🤗 Transformers-Feature ist die Möglichkeit, ein Modell ...@@ -375,6 +379,7 @@ Ein besonders cooles 🤗 Transformers-Feature ist die Möglichkeit, ein Modell
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -383,6 +388,7 @@ Ein besonders cooles 🤗 Transformers-Feature ist die Möglichkeit, ein Modell ...@@ -383,6 +388,7 @@ Ein besonders cooles 🤗 Transformers-Feature ist die Möglichkeit, ein Modell
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
...@@ -30,11 +30,13 @@ You'll also need to install your preferred machine learning framework: ...@@ -30,11 +30,13 @@ You'll also need to install your preferred machine learning framework:
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```bash ```bash
pip install torch pip install torch
``` ```
</pt> </pt>
<tf> <tf>
```bash ```bash
pip install tensorflow pip install tensorflow
``` ```
...@@ -208,6 +210,7 @@ A tokenizer can also accept a list of inputs, and pad and truncate the text to r ...@@ -208,6 +210,7 @@ A tokenizer can also accept a list of inputs, and pad and truncate the text to r
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> pt_batch = tokenizer( >>> pt_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -219,6 +222,7 @@ A tokenizer can also accept a list of inputs, and pad and truncate the text to r ...@@ -219,6 +222,7 @@ A tokenizer can also accept a list of inputs, and pad and truncate the text to r
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> tf_batch = tokenizer( >>> tf_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -352,6 +356,7 @@ One particularly cool 🤗 Transformers feature is the ability to save a model a ...@@ -352,6 +356,7 @@ One particularly cool 🤗 Transformers feature is the ability to save a model a
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -360,6 +365,7 @@ One particularly cool 🤗 Transformers feature is the ability to save a model a ...@@ -360,6 +365,7 @@ One particularly cool 🤗 Transformers feature is the ability to save a model a
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
...@@ -68,11 +68,13 @@ Instala las siguientes dependencias si aún no lo has hecho: ...@@ -68,11 +68,13 @@ Instala las siguientes dependencias si aún no lo has hecho:
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```bash ```bash
pip install torch pip install torch
``` ```
</pt> </pt>
<tf> <tf>
```bash ```bash
pip install tensorflow pip install tensorflow
``` ```
...@@ -224,6 +226,7 @@ Como con el [`pipeline`], el tokenizador aceptará una lista de inputs. Además, ...@@ -224,6 +226,7 @@ Como con el [`pipeline`], el tokenizador aceptará una lista de inputs. Además,
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> pt_batch = tokenizer( >>> pt_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -235,6 +238,7 @@ Como con el [`pipeline`], el tokenizador aceptará una lista de inputs. Además, ...@@ -235,6 +238,7 @@ Como con el [`pipeline`], el tokenizador aceptará una lista de inputs. Además,
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> tf_batch = tokenizer( >>> tf_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -377,6 +381,7 @@ Una característica particularmente interesante de 🤗 Transformers es la habil ...@@ -377,6 +381,7 @@ Una característica particularmente interesante de 🤗 Transformers es la habil
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -385,6 +390,7 @@ Una característica particularmente interesante de 🤗 Transformers es la habil ...@@ -385,6 +390,7 @@ Una característica particularmente interesante de 🤗 Transformers es la habil
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
...@@ -30,11 +30,13 @@ Vous aurez aussi besoin d'installer votre bibliothèque d'apprentissage profond ...@@ -30,11 +30,13 @@ Vous aurez aussi besoin d'installer votre bibliothèque d'apprentissage profond
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```bash ```bash
pip install torch pip install torch
``` ```
</pt> </pt>
<tf> <tf>
```bash ```bash
pip install tensorflow pip install tensorflow
``` ```
...@@ -203,6 +205,7 @@ Un tokenizer peut également accepter une liste de textes, et remplir et tronque ...@@ -203,6 +205,7 @@ Un tokenizer peut également accepter une liste de textes, et remplir et tronque
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> pt_batch = tokenizer( >>> pt_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -214,6 +217,7 @@ Un tokenizer peut également accepter une liste de textes, et remplir et tronque ...@@ -214,6 +217,7 @@ Un tokenizer peut également accepter une liste de textes, et remplir et tronque
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> tf_batch = tokenizer( >>> tf_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -346,6 +350,7 @@ Une fonctionnalité particulièrement cool 🤗 Transformers est la possibilité ...@@ -346,6 +350,7 @@ Une fonctionnalité particulièrement cool 🤗 Transformers est la possibilité
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -354,6 +359,7 @@ Une fonctionnalité particulièrement cool 🤗 Transformers est la possibilité ...@@ -354,6 +359,7 @@ Une fonctionnalité particulièrement cool 🤗 Transformers est la possibilité
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
...@@ -68,11 +68,13 @@ Installa le seguenti dipendenze se non lo hai già fatto: ...@@ -68,11 +68,13 @@ Installa le seguenti dipendenze se non lo hai già fatto:
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```bash ```bash
pip install torch pip install torch
``` ```
</pt> </pt>
<tf> <tf>
```bash ```bash
pip install tensorflow pip install tensorflow
``` ```
...@@ -379,6 +381,7 @@ Una caratteristica particolarmente interessante di 🤗 Transformers è la sua a ...@@ -379,6 +381,7 @@ Una caratteristica particolarmente interessante di 🤗 Transformers è la sua a
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -387,6 +390,7 @@ Una caratteristica particolarmente interessante di 🤗 Transformers è la sua a ...@@ -387,6 +390,7 @@ Una caratteristica particolarmente interessante di 🤗 Transformers è la sua a
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
...@@ -30,11 +30,13 @@ rendered properly in your Markdown viewer. ...@@ -30,11 +30,13 @@ rendered properly in your Markdown viewer.
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```bash ```bash
pip install torch pip install torch
``` ```
</pt> </pt>
<tf> <tf>
```bash ```bash
pip install tensorflow pip install tensorflow
``` ```
...@@ -210,6 +212,7 @@ label: NEGATIVE, with score: 0.5309 ...@@ -210,6 +212,7 @@ label: NEGATIVE, with score: 0.5309
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> pt_batch = tokenizer( >>> pt_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -221,6 +224,7 @@ label: NEGATIVE, with score: 0.5309 ...@@ -221,6 +224,7 @@ label: NEGATIVE, with score: 0.5309
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> tf_batch = tokenizer( >>> tf_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -353,6 +357,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725], ...@@ -353,6 +357,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725],
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -361,6 +366,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725], ...@@ -361,6 +366,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725],
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
...@@ -228,6 +228,7 @@ Assim como o [`pipeline`], o tokenizer aceitará uma lista de entradas. Além di ...@@ -228,6 +228,7 @@ Assim como o [`pipeline`], o tokenizer aceitará uma lista de entradas. Além di
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> pt_batch = tokenizer( >>> pt_batch = tokenizer(
... ["We are very happy to show you the 🤗 transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 transformers library.", "We hope you don't hate it."],
...@@ -239,6 +240,7 @@ Assim como o [`pipeline`], o tokenizer aceitará uma lista de entradas. Além di ...@@ -239,6 +240,7 @@ Assim como o [`pipeline`], o tokenizer aceitará uma lista de entradas. Além di
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> tf_batch = tokenizer( >>> tf_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -377,6 +379,7 @@ Um recurso particularmente interessante dos 🤗 Transformers é a capacidade de ...@@ -377,6 +379,7 @@ Um recurso particularmente interessante dos 🤗 Transformers é a capacidade de
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -385,6 +388,7 @@ Um recurso particularmente interessante dos 🤗 Transformers é a capacidade de ...@@ -385,6 +388,7 @@ Um recurso particularmente interessante dos 🤗 Transformers é a capacidade de
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
...@@ -30,11 +30,13 @@ rendered properly in your Markdown viewer. ...@@ -30,11 +30,13 @@ rendered properly in your Markdown viewer.
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```bash ```bash
pip install torch pip install torch
``` ```
</pt> </pt>
<tf> <tf>
```bash ```bash
pip install tensorflow pip install tensorflow
``` ```
...@@ -203,6 +205,7 @@ label: NEGATIVE, with score: 0.5309 ...@@ -203,6 +205,7 @@ label: NEGATIVE, with score: 0.5309
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> pt_batch = tokenizer( >>> pt_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -214,6 +217,7 @@ label: NEGATIVE, with score: 0.5309 ...@@ -214,6 +217,7 @@ label: NEGATIVE, with score: 0.5309
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> tf_batch = tokenizer( >>> tf_batch = tokenizer(
... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."], ... ["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
...@@ -347,6 +351,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725], ...@@ -347,6 +351,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725],
<frameworkcontent> <frameworkcontent>
<pt> <pt>
```py ```py
>>> from transformers import AutoModel >>> from transformers import AutoModel
...@@ -355,6 +360,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725], ...@@ -355,6 +360,7 @@ tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725],
``` ```
</pt> </pt>
<tf> <tf>
```py ```py
>>> from transformers import TFAutoModel >>> from transformers import TFAutoModel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment