Refactoring.
Sentence sampling with dist measures.