Francesco
commited on
Commit
·
5d13bbd
1
Parent(s):
bd52cd0
typo in the documentation
Browse filesBoth README.rst and usage.rst files used LingueeTranslator instead of PonsTranslator to show how to translate a batch of words
- docs/README.rst +1 -1
- docs/usage.rst +1 -1
docs/README.rst
CHANGED
@@ -484,7 +484,7 @@ PONS Translator
|
|
484 |
|
485 |
.. code-block:: python
|
486 |
|
487 |
-
translated_words =
|
488 |
|
489 |
Yandex Translator
|
490 |
------------------
|
|
|
484 |
|
485 |
.. code-block:: python
|
486 |
|
487 |
+
translated_words = PonsTranslator(source='english', target='french').translate_words(["good", "awesome"])
|
488 |
|
489 |
Yandex Translator
|
490 |
------------------
|
docs/usage.rst
CHANGED
@@ -259,7 +259,7 @@ PONS Translator
|
|
259 |
|
260 |
.. code-block:: python
|
261 |
|
262 |
-
translated_words =
|
263 |
|
264 |
Yandex Translator
|
265 |
------------------
|
|
|
259 |
|
260 |
.. code-block:: python
|
261 |
|
262 |
+
translated_words = PonsTranslator(source='english', target='french').translate_words(["good", "awesome"])
|
263 |
|
264 |
Yandex Translator
|
265 |
------------------
|