Update tutorial_6_datasetiter.rst

This commit is contained in:
Yige Xu 2020-03-04 16:17:19 +08:00
parent 9bed203a35
commit 29b1454818

View File

@ -28,10 +28,10 @@ DataSetIter初探之前的内容与 :doc:`/tutorials/tutorial_5_loss_optimizer`
pipe = SST2Pipe()
databundle = pipe.process_from_file()
vocab = databundle.vocabs['words']
vocab = databundle.get_vocab('words')
print(databundle)
print(databundle.datasets['train'][0])
print(databundle.vocabs['words'])
print(databundle.get_dataset('train')[0])
print(databundle.get_vocab('words'))
输出数据如下::