https://github.com/deeppavlov/qa_metrics
https://github.com/deeppavlov/qa_metrics
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/deeppavlov/qa_metrics
- Owner: deeppavlov
- License: apache-2.0
- Created: 2019-05-20T14:51:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-24T21:55:06.000Z (over 3 years ago)
- Last Synced: 2025-11-17T07:27:46.157Z (9 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Count ODQA metrics
# Available metrics
* ranker em recall
* squad f1 v1
* squad em v1
# Usage
```bash
pip install -r requirements.txt
python count_metrics.py -n -ak
```
# Available datasets
* sddata_pull
* ru_squad
# Example
```bash
python count_metrics.py dataset.csv sddata_pull -n 1 5 -ak 'Answer Toloker 1'
```
The evaluation result is written to `metrics.log`
The model answers are written into `answer_top_n.csv` files, where `n` is the number of documents retrieved.