Closed twuebi closed 5 years ago
This PR introduces a trait SentenceIter that provides adapters for conllx::io::Sentences.
SentenceIter
conllx::io::Sentences
This trait makes it easier to introduce other operations such as shuffling via a buffer or local sorting.
In initial experiments buffered shuffling gave better results while converging faster than linear sampling.
The design is modelled after https://github.com/finalfusion/finalfrontier/blob/master/src/deps.rs
This PR introduces a trait
SentenceIter
that provides adapters forconllx::io::Sentences
.This trait makes it easier to introduce other operations such as shuffling via a buffer or local sorting.
In initial experiments buffered shuffling gave better results while converging faster than linear sampling.
The design is modelled after https://github.com/finalfusion/finalfrontier/blob/master/src/deps.rs