----

basically, spm.SentencePieceTrainer.train (which can be called statically) can take a sentence_iterator to iterate over example sentences.