fn write_learning(
path: &Path,
ids: &[usize],
text: &dyn Fn(usize) -> String,
messages: &[Message],
seed: u64,
) -> Result<LearnFile, LearnError>Expand description
Writes the learning file of some messages, one line each, shuffled (the same seed, the same order).