Browse Source

Update tutorial_6_datasetiter.rst

tags/v0.5.5
Yige Xu 4 years ago
parent
commit
29b1454818
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      docs/source/tutorials/tutorial_6_datasetiter.rst

+ 3
- 3
docs/source/tutorials/tutorial_6_datasetiter.rst 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'))


输出数据如下::


Loading…
Cancel
Save