Added a parameter to allow use of only a random proportion of the training data
added the ability to specify a minimum domain count before we include a language
use islice in chunk