@@ -31,24 +31,60 @@ def parliament_corpora_settings(settings):
3131 'parliament-europe' : 'corpora.parliament.euparl.ParliamentEurope' ,
3232 }
3333
34- settings .PP_CANADA_DATA = os .path .join (here , 'tests' , 'data' , 'canada' )
35- settings .PP_DENMARK_DATA = os .path .join (here , 'tests' , 'data' , 'denmark' )
36- settings .PP_DENMARK_NEW_DATA = os .path .join (here , 'tests' , 'data' , 'denmark-new' )
37- settings .PP_EUPARL_DATA = os .path .join (here , 'tests' , 'data' , 'euparl' , 'rds' )
38- settings .PP_FINLAND_DATA = os .path .join (here , 'tests' , 'data' , 'finland' )
39- settings .PP_FINLAND_OLD_DATA = os .path .join (here , 'tests' , 'data' , 'finland-old' )
40- settings .PP_FR_DATA = os .path .join (here , 'tests' , 'data' , 'france' )
41- settings .PP_GERMANY_NEW_DATA = os .path .join (here , 'tests' , 'data' , 'germany-new' )
42- settings .PP_GERMANY_OLD_DATA = os .path .join (here , 'tests' , 'data' , 'germany-old' )
43- settings .PP_IRELAND_DATA = os .path .join (here , 'tests' , 'data' , 'ireland' )
44- settings .PP_NL_DATA = os .path .join (here , 'tests' , 'data' , 'netherlands' )
45- settings .PP_NL_RECENT_DATA = os .path .join (here , 'tests' , 'data' , 'netherlands-recent' )
46- settings .PP_NORWAY_DATA = os .path .join (here , 'tests' , 'data' , 'norway' )
47- settings .PP_NORWAY_NEW_DATA = os .path .join (here , 'tests' , 'data' , 'norway-new' )
48- settings .PP_SWEDEN_DATA = os .path .join (here , 'tests' , 'data' , 'sweden' )
49- settings .PP_SWEDEN_OLD_DATA = os .path .join (here , 'tests' , 'data' , 'sweden-old' )
50- settings .PP_SWEDEN_SWERIK_DATA = os .path .join (here , 'tests' , 'data' , 'sweden-swerik' )
51- settings .PP_UK_DATA = os .path .join (here , 'tests' , 'data' , 'uk' )
34+ settings .CORPUS_SETTINGS = {
35+ 'parliament-canada' : {
36+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'canada' ),
37+ },
38+ 'parliament-denmark' : {
39+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'denmark' ),
40+ },
41+ 'parliament-denmark-new' : {
42+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'denmark-new' ),
43+ },
44+ 'parliament-europe' : {
45+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'euparl' , 'rds' ),
46+ },
47+ 'parliament-finland' : {
48+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'finland' ),
49+ },
50+ 'parliament-finland-old' : {
51+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'finland-old' ),
52+ },
53+ 'parliament-france' : {
54+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'france' ),
55+ },
56+ 'parliament-germany-new' : {
57+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'germany-new' ),
58+ },
59+ 'parliament-germany-old' : {
60+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'germany-old' ),
61+ },
62+ 'parliament-ireland' : {
63+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'ireland' ),
64+ },
65+ 'parliament-netherlands' : {
66+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'netherlands-recent' ),
67+ 'data_directory_old' : os .path .join (here , 'tests' , 'data' , 'netherlands' ),
68+ },
69+ 'parliament-norway' : {
70+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'norway' ),
71+ },
72+ 'parliament-norway-new' : {
73+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'norway-new' ),
74+ },
75+ 'parliament-sweden' : {
76+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'sweden' ),
77+ },
78+ 'parliament-sweden-old' : {
79+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'sweden-old' ),
80+ },
81+ 'parliament-sweden-swerik' : {
82+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'sweden-swerik' ),
83+ },
84+ 'parliament-uk' : {
85+ 'data_directory' : os .path .join (here , 'tests' , 'data' , 'uk' )
86+ }
87+ }
5288
5389
5490CORPUS_TEST_DATA = [
0 commit comments