From ee1bff06f883bb2f993959885c8ded00b5479cea Mon Sep 17 00:00:00 2001 From: Harry Wang Date: Wed, 2 Sep 2020 06:45:19 -0400 Subject: [PATCH] minor docs grammar fixes (#6889) --- docs/source/glossary.rst | 2 +- docs/source/quicktour.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/glossary.rst b/docs/source/glossary.rst index 43355778b7..f2f15755a5 100644 --- a/docs/source/glossary.rst +++ b/docs/source/glossary.rst @@ -128,7 +128,7 @@ The encoded versions have different lengths: >>> len(encoded_sequence_a), len(encoded_sequence_b) (8, 19) -Therefore, we can't be put then together in a same tensor as-is. The first sequence needs to be padded up to the length +Therefore, we can't put them together in the same tensor as-is. The first sequence needs to be padded up to the length of the second one, or the second one needs to be truncated down to the length of the first one. In the first case, the list of IDs will be extended by the padding indices. We can pass a list to the tokenizer and ask diff --git a/docs/source/quicktour.rst b/docs/source/quicktour.rst index 13b34362c5..37a9060187 100644 --- a/docs/source/quicktour.rst +++ b/docs/source/quicktour.rst @@ -214,7 +214,7 @@ Using the model Once your input has been preprocessed by the tokenizer, you can send it directly to the model. As we mentioned, it will contain all the relevant information the model needs. If you're using a TensorFlow model, you can pass the -dictionary keys directly to tensor, for a PyTorch model, you need to unpack the dictionary by adding :obj:`**`. +dictionary keys directly to tensors, for a PyTorch model, you need to unpack the dictionary by adding :obj:`**`. .. code-block::