updated summary SQL to subtract the contradiction votes
Browse files
README.md
CHANGED
|
@@ -38,22 +38,42 @@ LIMIT 0, 49999;
|
|
| 38 |
```
|
| 39 |
|
| 40 |
### All rejections of a TTS model against another:
|
| 41 |
-
The one used in dataset viewer.
|
| 42 |
```sql
|
| 43 |
-
SELECT
|
| 44 |
-
spokentext,
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
FROM
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
```
|
| 58 |
|
| 59 |
If you use this data in your publication, please cite us!
|
|
|
|
| 38 |
```
|
| 39 |
|
| 40 |
### All rejections of a TTS model against another:
|
| 41 |
+
**The one used in dataset viewer.** Note that the `chosen` column may include models that the `rejected` model beat more times. That is also why `times_chosen` may be more than the amount of distinct chosen models.
|
| 42 |
```sql
|
| 43 |
+
SELECT
|
| 44 |
+
st.spokentext,
|
| 45 |
+
(COUNT(DISTINCT vl.chosen) || ' ' || GROUP_CONCAT(DISTINCT vl.chosen)) AS chosen,
|
| 46 |
+
vl.rejected,
|
| 47 |
+
COUNT(vl.rejected) - COALESCE(chosen_counts.chosen_count, 0) AS times_chosen,
|
| 48 |
+
MAX(vl.timestamp) AS lastvote
|
| 49 |
+
FROM
|
| 50 |
+
votelog vl
|
| 51 |
+
JOIN
|
| 52 |
+
spokentext st ON vl.id = st.votelog_id
|
| 53 |
+
LEFT JOIN (
|
| 54 |
+
SELECT
|
| 55 |
+
st_inner.spokentext,
|
| 56 |
+
vl_inner.chosen,
|
| 57 |
+
COUNT(vl_inner.chosen) AS chosen_count
|
| 58 |
+
FROM
|
| 59 |
+
votelog vl_inner
|
| 60 |
+
JOIN
|
| 61 |
+
spokentext st_inner ON vl_inner.id = st_inner.votelog_id
|
| 62 |
+
GROUP BY
|
| 63 |
+
st_inner.spokentext,
|
| 64 |
+
vl_inner.chosen
|
| 65 |
+
ORDER BY
|
| 66 |
+
chosen_count DESC
|
| 67 |
+
) AS chosen_counts ON st.spokentext = chosen_counts.spokentext AND vl.rejected = chosen_counts.chosen
|
| 68 |
+
GROUP BY
|
| 69 |
+
st.spokentext,
|
| 70 |
+
vl.rejected
|
| 71 |
+
HAVING times_chosen > 0
|
| 72 |
+
ORDER BY
|
| 73 |
+
((times_chosen * COUNT(DISTINCT vl.chosen)) / 2) DESC,
|
| 74 |
+
COUNT(DISTINCT vl.chosen) DESC,
|
| 75 |
+
st.spokentext ASC;
|
| 76 |
+
|
| 77 |
```
|
| 78 |
|
| 79 |
If you use this data in your publication, please cite us!
|