Skip to content

Could not find %s Set GloVe Directory in Global.py  #27

@SAIVENKATARAJU

Description

@SAIVENKATARAJU

I am getting the following error while executing the following code.

from RMDL import RMDL_Text

text_classification=RMDL_Text.Text_Classification(Xtrain,Ytrain,Xtest,Ytest)
Could not find %s Set GloVe Directory in Global.py  <module 'RMDL.Download.Download_Glove' from 'C:\\Users\\Veni\\Anaconda3\\lib\\site-packages\\RMDL\\Download\\Download_Glove.py'>
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-22-a2b7412e3f8f> in <module>()
      1 from RMDL import RMDL_Text
      2 
----> 3 text_classification=RMDL_Text.Text_Classification(Xtrain,Ytrain,Xtest,Ytest)

~\Anaconda3\lib\site-packages\RMDL\RMDL_Text.py in Text_Classification(x_train, y_train, x_test, y_test, batch_size, EMBEDDING_DIM, MAX_SEQUENCE_LENGTH, MAX_NB_WORDS, GloVe_dir, GloVe_file, sparse_categorical, random_deep, epochs, plot, min_hidden_layer_dnn, max_hidden_layer_dnn, min_nodes_dnn, max_nodes_dnn, min_hidden_layer_rnn, max_hidden_layer_rnn, min_nodes_rnn, max_nodes_rnn, min_hidden_layer_cnn, max_hidden_layer_cnn, min_nodes_cnn, max_nodes_cnn, random_state, random_optimizor, dropout)
     56         if not os.path.isfile(GloVe_DIR):
     57             print("Could not find %s Set GloVe Directory in Global.py ", GloVe)
---> 58             exit()
     59 
     60     G.setup()

NameError: name 'exit' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions