41 lines
538 B
Markdown
41 lines
538 B
Markdown
![]() |
---
|
||
|
id: 5e8f2f13c4cdbe86b5c72da0
|
||
|
title: 'Natural Language Processing With RNNs: Create a Play Generator'
|
||
|
challengeType: 11
|
||
|
videoId: j5xsxjq_Xk8
|
||
|
dashedName: natural-language-processing-with-rnns-create-a-play-generator
|
||
|
---
|
||
|
|
||
|
# --question--
|
||
|
|
||
|
## --text--
|
||
|
|
||
|
Fill in the blanks below to create the training examples for the RNN:
|
||
|
|
||
|
```py
|
||
|
char_dataset = tf.data.__A__.__B__(text_as_int)
|
||
|
```
|
||
|
|
||
|
## --answers--
|
||
|
|
||
|
A: `DataSet`
|
||
|
|
||
|
B: `from_tensor_slices`
|
||
|
|
||
|
---
|
||
|
|
||
|
A: `data`
|
||
|
|
||
|
B: `from_tensors`
|
||
|
|
||
|
---
|
||
|
|
||
|
A: `DataSet`
|
||
|
|
||
|
B: `from_generator`
|
||
|
|
||
|
## --video-solution--
|
||
|
|
||
|
1
|
||
|
|