-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
51 lines (40 loc) · 1.25 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from server import *
'''
Prompt Template
'''
template = ['t1','t2','t3','t4','t5']
'''
Question Version
'''
version = ['v1','v2','v3','v4','v5']
'''
Language:
En: English, Zh: Simplified Chinese, Ko: Korean, Es: Spanish, Fr: France,
De: Deutsch, It: Italian, Ar: Arabic, Ru: Russian, Ja: Japanese
'''
language = ['En', 'Zh', 'Ko', 'Es', 'Fr', 'De', 'It', 'Ar', 'Ru', 'Ja']
language = ['Zh']
'''
Label:
n: Arabic Numeral
al: Lowercase Latin, au: Uppercase Latin
rl: Lowercase Roman, ru: Uppercase Roman
'''
label = ['n', 'al', 'au', 'rl', 'ru']
'''
Order:
f: Ascending, r: Descending
'''
order = ['r', 'f']
'================================================================================================='
# rephrase('BFI', 'En')
'================================================================================================='
questionnaire_name = 'BFI'
name_exp = 'save_zh'
# Start a server and generate pre-testing cases
bfi_test = Server(questionnaire_name, template, version, language, label, order, name_exp=name_exp)
# Load and continue a test
# bfi_test = load('save/save_en.json', 'save_en1')
# Run the pre-testing cases
bfi_test.run()
'================================================================================================='