code for pre-processing is a faunction named parse_observations in code/HMM_helper.py
code for getting syllable dictionary based on Syllable_dictionary.txt is in syllabel_dic.py
code for generation with HMM model is in code/HMM.py (function: generate_emission, recur, dfs)
code for stressing modification (an additional goal) with HMM model is in code/HMM.py (function: generate_emission, recur, dfs)
code for train lstm is in code/p3_lstm.py
code for generate poem with lstm model is in code/p3_generate.py
code for visualization is in code/Visualization.py