Skip to content

FileNotFoundError: Couldn't find a module script at /mnt/data/dingtian/exact_match/exact_match.py. Module 'exact_match' doesn't exist on the Hugging Face Hub either. #645

Open
@Tiannn0703

Description

@Tiannn0703

I have installed evaluate manually using

git clone https://github.com/huggingface/evaluate.git
cd evaluate
pip install -e .

and my evaluate is under /mnt/data/dingtian/evaluate, I don't understand why it keeps looking for files in /mnt/data/dingtian/exact_match/exact_match.py, and if I change the dir in the load func, it can work:

# FileNotFoundError
python -c "import evaluate; print(evaluate.load('exact_match').compute(references=['hello'], predictions=['hello']))"
# work
python -c "import evaluate; print(evaluate.load('/mnt/data/dingtian/evaluate/metrics/exact_match/exact_match.py').compute(references=['hello'], predictions=['hello']))"

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