Update README.md
Browse files
README.md
CHANGED
@@ -8,6 +8,13 @@ language:
|
|
8 |
- en
|
9 |
tags:
|
10 |
- sports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
# SportsMetrics
|
@@ -19,24 +26,51 @@ Yebowen Hu, Kaiqiang Song, Sangwoo Cho, Xiaoyang Wang, Hassan Foroosh, Dong Yu,
|
|
19 |
[Arxiv Paper](https://arxiv.org/abs/2402.10979)
|
20 |
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
## Benchmark Tasks
|
23 |
|
24 |
The LLM is mandatorily required to generate responses in JSON format.
|
25 |
|
26 |
### Reasoning Task
|
27 |
-
- **reasoning-team_points_tracking**: Tracking team points in one match.
|
28 |
-
- **reasoning-key_stats_tracking**: Tracking the key statistics for sports analytics.
|
29 |
|
30 |
### Conflicts Task
|
31 |
-
- **conflict-one_point_rule**: All scoring actions in the competition are set to be worth only one point.
|
32 |
-
- **conflict-swap_{num}_players**: Swap {num} of spalyer between two teams.
|
33 |
|
34 |
### Robustness Task
|
35 |
-
- **robustness-duplicate_{prob}**: Replicate the non-scoring move with a probability of {prob}.
|
36 |
-
- **robustness-remove_{prob}**: Remove the non-scoring move with a probability of {prob}.
|
37 |
-
- **robustness-shuffled_pbp**: Shuffle the order of all moves in play-by-play descriptions while maintain the original order of timestamps.
|
38 |
-
- **robustness-{num}_fiction_names**: Randomly select {num} of players from both teams and replace them with names from fiction movies.
|
39 |
-
|
40 |
|
41 |
**Bibtex**
|
42 |
```
|
@@ -48,4 +82,4 @@ The LLM is mandatorily required to generate responses in JSON format.
|
|
48 |
archivePrefix={arXiv},
|
49 |
primaryClass={cs.CL},
|
50 |
url={https://arxiv.org/abs/2402.10979},
|
51 |
-
}
|
|
|
8 |
- en
|
9 |
tags:
|
10 |
- sports
|
11 |
+
- nba
|
12 |
+
- nfl
|
13 |
+
- reasoning
|
14 |
+
- long-context
|
15 |
+
pretty_name: SportsMetrics
|
16 |
+
size_categories:
|
17 |
+
- 1K<n<10K
|
18 |
---
|
19 |
|
20 |
# SportsMetrics
|
|
|
26 |
[Arxiv Paper](https://arxiv.org/abs/2402.10979)
|
27 |
|
28 |
|
29 |
+
## Usage
|
30 |
+
```python
|
31 |
+
from datasets import load_dataset
|
32 |
+
|
33 |
+
def get_task(domain, task):
|
34 |
+
bench_data = []
|
35 |
+
dataset = load_dataset("huuuyeah/SportsMetrics",split="test")
|
36 |
+
for instance in dataset:
|
37 |
+
if instance["domain"]==domain and instance["task"]==task:
|
38 |
+
bench_data.append(instance)
|
39 |
+
return bench_data
|
40 |
+
|
41 |
+
def message_iter(domain, task):
|
42 |
+
bench_data = get_task(domain, task)
|
43 |
+
if len(bench_data) == 0:
|
44 |
+
print("No data loaded.")
|
45 |
+
return
|
46 |
+
|
47 |
+
for instance in bench_data:
|
48 |
+
messages = [
|
49 |
+
{"role": "system", "content": instance["system"]},
|
50 |
+
{"role": "user", "content": instance["user"]}
|
51 |
+
]
|
52 |
+
yield messages
|
53 |
+
|
54 |
+
return
|
55 |
+
```
|
56 |
+
|
57 |
## Benchmark Tasks
|
58 |
|
59 |
The LLM is mandatorily required to generate responses in JSON format.
|
60 |
|
61 |
### Reasoning Task
|
62 |
+
- **reasoning-team_points_tracking**: (NBA) Tracking team points in one match.
|
63 |
+
- **reasoning-key_stats_tracking**: (NBA, NFL) Tracking the key statistics for sports analytics.
|
64 |
|
65 |
### Conflicts Task
|
66 |
+
- **conflict-one_point_rule**: (NBA) All scoring actions in the competition are set to be worth only one point.
|
67 |
+
- **conflict-swap_{num}_players**: (NBA) Swap {num} of spalyer between two teams.
|
68 |
|
69 |
### Robustness Task
|
70 |
+
- **robustness-duplicate_{prob}**: (NBA) Replicate the non-scoring move with a probability of {prob}.
|
71 |
+
- **robustness-remove_{prob}**: (NBA) Remove the non-scoring move with a probability of {prob}.
|
72 |
+
- **robustness-shuffled_pbp**: (NBA) Shuffle the order of all moves in play-by-play descriptions while maintain the original order of timestamps.
|
73 |
+
- **robustness-{num}_fiction_names**: (NFL) Randomly select {num} of players from both teams and replace them with names from fiction movies.
|
|
|
74 |
|
75 |
**Bibtex**
|
76 |
```
|
|
|
82 |
archivePrefix={arXiv},
|
83 |
primaryClass={cs.CL},
|
84 |
url={https://arxiv.org/abs/2402.10979},
|
85 |
+
}
|