Changed vocabulary save function. Variable name was inconsistent
Caused an error to be thrown when passing a file name instead of a directory. 

UnboundLocalError: local variable 'vocab_file' referenced before assignment

Associated with issue #2753 


Great, thank you for taking the time to fix it!