Pendrokar commited on
Commit
195d595
1 Parent(s): ffd15ed

updated summary SQL to subtract the contradiction votes

Browse files
Files changed (1) hide show
  1. README.md +35 -15
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
- (COUNT(DISTINCT chosen) || ' ' || GROUP_CONCAT(DISTINCT chosen)) AS chosen,
46
- rejected,
47
- count(spokentext) AS times,
48
- MAX(vl.timestamp) AS lastvote
49
- FROM "main"."spokentext"
50
- INNER JOIN votelog vl ON votelog_id = vl.id
51
- GROUP BY spokentext, rejected
52
- ORDER BY
53
- (COUNT(DISTINCT chosen) * times) DESC,
54
- COUNT(DISTINCT chosen) DESC,
55
- spokentext ASC
56
- LIMIT 0, 49999;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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!