prakashpandey9 / IsolatedSpeechRecognition

A python implementation of isolated word recognition using Hidden Markov Model
41 stars 21 forks source link

Getting error in executing the Isolated_Speech_Recognition.py #4

Open hkroclee opened 5 years ago

hkroclee commented 5 years ago

in Isolated_Speech_Recognition.py, StratifiedShuffleSplit was imported from sklearn.cross_validation, I just make changes and import StratifiedShuffleSplit from sklearn.model_selection, to remove DeprecationWarning,

now I got the error: Traceback (most recent call last): File "Isolated_SpeechRecognition.py", line 269, in = [model.train(X_train[y_train == y, :, :]) for m, y in zip(ms, ys)] File "Isolated_SpeechRecognition.py", line 269, in = [model.train(X_train[y_train == y, :, :]) for m, y in zip(ms, ys)] NameError: name 'model' is not defined

bhaskarkvvsr commented 4 years ago

you need to use the variable m instead of the model there