the prepare actions have completed, so comment relevant functions
1. rename directory n-gram to n_gram
2. generate dev-test.json which extracts the 200 dev questions and options
rename dev_test.json to dev_set.json
1. add compute_data_sparseness
2. change log mode from w to a
fix some bugs in compute_data_sparseness
first some functions to compute conditional probability