mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-11-30 03:07:59 +08:00
Update tutorial_6_datasetiter.rst
This commit is contained in:
parent
9bed203a35
commit
29b1454818
@ -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…
Reference in New Issue
Block a user