@@ -96,7 +96,7 @@ dataset in memory.
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from nlp import load_dataset
|
from datasets import load_dataset
|
||||||
test = load_dataset('wikitext', 'wikitext-2-raw-v1', split='test')
|
test = load_dataset('wikitext', 'wikitext-2-raw-v1', split='test')
|
||||||
encodings = tokenizer('\n\n'.join(test['text']), return_tensors='pt')
|
encodings = tokenizer('\n\n'.join(test['text']), return_tensors='pt')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user