Skip to content

Commit f77539c

Browse files
authored
Fix typo in code example in docs (#6307)
1 parent e74f802 commit f77539c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/stream.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Specify the column to remove with the `remove_columns` argument in [`IterableDat
286286
... return tokenizer(examples['text'], truncation=True, padding='max_length')
287287
>>> dataset = dataset.map(encode, batched=True, remove_columns=["text", "timestamp", "url"])
288288
>>> next(iter(dataset))
289-
{'input_ids': 101, 8466, 1018, 1010, 4029, 2475, 2062, 18558, 3100, 2061, ...,1106, 3739, 102],
289+
{'input_ids': [101, 8466, 1018, 1010, 4029, 2475, 2062, 18558, 3100, 2061, ...,1106, 3739, 102],
290290
'attention_mask': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ..., 1, 1]}
291291
```
292292

0 commit comments

Comments
 (0)