From d5e3e6b3e3fef0f3094340729d470ba9f5b827fe Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Tue, 11 Feb 2020 19:03:34 +0100 Subject: [PATCH] fixed corresponding typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bab7d36c..71387c51 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Encoding(num_tokens=13, attributes=[ids, type_ids, tokens, offsets, attention_ma ['[CLS]', 'hello', ',', 'y', "'", 'all', '!', 'how', 'are', 'you', '[UNK]', '?', '[SEP]'] [(0, 0), (0, 5), (5, 6), (7, 8), (8, 9), (9, 12), (12, 13), (14, 17), (18, 21), (22, 25), (26, 27), (28, 29), (0, 0)] -# Here is an example using the offsets mapping to retrieve the string coresponding to the 10th token: +# Here is an example using the offsets mapping to retrieve the string corresponding to the 10th token: >>> output.original_str[output.offsets[10]] '😁' ```