Skip to content

Remove hardcoded /data/dw/ path in beaver_preprocess_v2.py #5

Description

@Samar-Khalid

Description

The beaver_preprocess_v2.py:24 has a hardcoded path /data/dw/:

BEAVER_DATA_PATH = os.path.join(os.path.dirname(__file__), '../../../../data/dw/')

This causes failures when processing datasets other than dw because the dataset name is hardcoded rather than derived from the input parameters.

Expected Behavior

The data path should use the dataset parameter passed to convert_beaver_questions_to_dinsql_format() to dynamically construct the correct path.

Affected File

eval/dinsql/preprocessed_data/beaver_preprocess_v2.py (line 24)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions