train from file for data_matching