Example code on allennlp.org/tutorials no longer works with allennlp 1.0

The example / tutorial code shown on allennlp.org/tutorials no longer works with allennlp 1.0.

For AllenNLP >= 1.0, it appears that BucketIterator replaced with BucketBatchSampler in the allennlp.data.samplers module.

But the code shown on the site still uses BucketIterator

See here.