From cc4eff8087e9ddcf05826f2ed8c206328839a3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20REMY?= Date: Wed, 30 Sep 2020 13:44:40 +0200 Subject: [PATCH] Make transformers install check positive (#7473) When transformers is correctly installed, you should get a positive message ^_^ --- docs/source/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/installation.md b/docs/source/installation.md index 793d07a306..6c5b81ca64 100644 --- a/docs/source/installation.md +++ b/docs/source/installation.md @@ -37,13 +37,13 @@ pip install transformers[tf-cpu] To check 🤗 Transformers is properly installed, run the following command: ```bash -python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('I hate you'))" +python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))" ``` It should download a pretrained model then print something like ```bash -[{'label': 'NEGATIVE', 'score': 0.9991129040718079}] +[{'label': 'POSITIVE', 'score': 0.9998704791069031}] ``` (Note that TensorFlow will print additional stuff before that last statement.)