moved files around ; refactored some code in test_segmenter and dataset_builder