Giter VIP home page Giter VIP logo

Comments (3)

Param-Raval avatar Param-Raval commented on September 27, 2024 1

Hello, thank you for reaching out!

Did you try resolving the ModuleNotFoundError? That seems to be the problem since the next FileNotFoundError would be resolved if the previous step runs successfully.

python3 -m pip install pymysql or !pip install pymysql should help.

from editsql-cust.

siddharthrawal121 avatar siddharthrawal121 commented on September 27, 2024

Thanks @Param-Raval. That solved the issue but I am getting the error regarding the glove issue. I am sure that I have to download the glove.840B.300d.zip folder but I am unsure which directory it should go in. I would really appreciate if you can have a look in it. Thanks in advance :))

Loading Glove Embedding from /home/lily/rz268/dialog2sql/word_emb/glove.840B.300d.txt
Traceback (most recent call last):
  File "run.py", line 338, in <module>
    main()
  File "run.py", line 301, in main
    data.anonymizer if params.anonymize and params.anonymization_scoring else None)
  File "/content/drive/My Drive/editsql/model/schema_interaction_model.py", line 49, in __init__
    anonymizer)
  File "/content/drive/My Drive/editsql/model/model.py", line 149, in __init__
    input_vocabulary_embeddings, output_vocabulary_embeddings, output_vocabulary_schema_embeddings, input_embedding_size = load_word_embeddings(input_vocabulary, output_vocabulary, output_vocabulary_schema, params)
  File "/content/drive/My Drive/editsql/model/model.py", line 98, in load_word_embeddings
    glove_embeddings = read_glove_embedding(params.embedding_filename, glove_embedding_size)
  File "/content/drive/My Drive/editsql/model/model.py", line 81, in read_glove_embedding
    with open(embedding_filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/lily/rz268/dialog2sql/word_emb/glove.840B.300d.txt'
Read prediction from logs_sparc_editsql/valid_use_predicted_queries_predictions.json
Traceback (most recent call last):
  File "postprocess_eval.py", line 466, in <module>
    predictions = read_prediction(pred_file)
  File "postprocess_eval.py", line 384, in read_prediction
    with open(pred_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'logs_sparc_editsql/valid_use_predicted_queries_predictions.json'

from editsql-cust.

siddharthrawal121 avatar siddharthrawal121 commented on September 27, 2024

Hi, regarding the last issue. I fixed it by changing the path in run_sparc_editsql of GLOVE_PATH.

from editsql-cust.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.