Assign answer_per_Q
(in main.py)
56 word_num_per_choice = np.zeros(len(chunks))
...
71 for result in response.results:
72 print('Choice {}, Transcript: {}, word number: {}'.format(i+1, result.alternatives[0].transcript, len(result.alternatives[0].transcript)))
73 word_num_per_choice[i] = len(result.alternatives[0].transcript)
74
75 print('word_num_per_choice: ', word_num_per_choice)
76 answer = np.argmin(word_num_per_choice)+1
77 if answer >= 1 and answer <= 4:
78 answer_per_Q[q] = answer