PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
12.18k stars 2.95k forks source link

[Question]:rat-sql 按照步骤进行评估,会出现float division bu zero #4442

Closed 694344851 closed 1 year ago

694344851 commented 1 year ago

请提出你的问题

!cd t2s && python ./evaluation/text2sql_evaluation.py -g data/DuSQL/gold_dev.sql -t data/DuSQL/db_schema.json -d DuSQL -p output/dusql_dev_infer_result.sql Traceback (most recent call last): File "./evaluation/text2sql_evaluation.py", line 1921, in dataset=args.dataset) File "./evaluation/text2sql_evaluation.py", line 1886, in evaluate single_equal=True) File "./evaluation/text2sql_evaluation.py", line 1853, in evaluate_complex scores[k]['acc'] + scores[k]['rec']) ZeroDivisionError: float division by zero

sijunhe commented 1 year ago

closing as duplicate of #4443