add learn_dictionary.py