liyucheng commited on
Commit
41b0e01
1 Parent(s): aaf086e
Files changed (2) hide show
  1. bbc_alltime.py +1 -1
  2. get_configs.py +2 -2
bbc_alltime.py CHANGED
@@ -22,7 +22,7 @@ _HOMEPAGE = "https://github.com/liyucheng09/Contamination_Detector"
22
 
23
  all_articles = glob.glob('articles/*.json')
24
  file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
25
- _TIMES = file_names.sort() + ['all']
26
 
27
  class Bbc_alltimes(datasets.GeneratorBasedBuilder):
28
 
 
22
 
23
  all_articles = glob.glob('articles/*.json')
24
  file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
25
+ _TIMES = sorted(file_names) + ['all']
26
 
27
  class Bbc_alltimes(datasets.GeneratorBasedBuilder):
28
 
get_configs.py CHANGED
@@ -1,9 +1,9 @@
1
  import glob
2
  import os
3
 
4
- all_articles = glob.glob('articles/*.json')
5
  file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
6
- _TIMES = file_names.sort() + ['all']
7
 
8
  times_string = "_TIMES = " + repr(_TIMES)
9
 
 
1
  import glob
2
  import os
3
 
4
+ all_articles = glob.glob('./articles/*.json')
5
  file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
6
+ _TIMES = sorted(file_names) + ['all']
7
 
8
  times_string = "_TIMES = " + repr(_TIMES)
9