update get category file.
add a training script.