-
Notifications
You must be signed in to change notification settings - Fork 0
/
no_preference.py
42 lines (35 loc) · 1018 Bytes
/
no_preference.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
import no_preference.processing.ner_training.training_ui as training_ui
from no_preference.processing.analysis import analysis_ui
from no_preference.datasets import datasets_ui
from no_preference.lib.pyinquirer_menu import prompt
from no_preference.lib.util import create_data_dir
from no_preference.results_gui import gui
def init():
create_data_dir()
def run():
prompt({
'type': 'list',
'name': 'action',
'message': 'What do you want to do?',
'choices': [
{
'name': 'Get data for profiling',
'next': datasets_ui.run
},
{
'name': 'Train a model',
'next': training_ui.run
},
{
'name': 'Analyse data',
'next': analysis_ui.run
},
{
'name': 'Show profiling results',
'next': gui.run
}
]
})
if __name__ == '__main__':
init()
run()