-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtest-task.py
More file actions
32 lines (21 loc) · 941 Bytes
/
test-task.py
File metadata and controls
32 lines (21 loc) · 941 Bytes
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
import sys
import subprocess
task = sys.argv[1]
if task == "ClosedDomainQA":
process = subprocess.Popen(["python", "./test-task-code/test-ClosedDomainQA.py"])
if task == "dialogue":
process = subprocess.Popen(["python", "./test-task-code/test-dialogue.py"])
if task == "NER":
process = subprocess.Popen(["python", "./test-task-code/test-NER.py"])
if task == "NLI":
process = subprocess.Popen(["python", "./test-task-code/test-NLI.py"])
if task == "OpenDomainQA":
process = subprocess.Popen(["python", "./test-task-code/test-OpenDomainQA.py"])
if task == "reasoning":
process = subprocess.Popen(["python", "./test-task-code/test-reasoning.py"])
if task == "SentimentAnalysis":
process = subprocess.Popen(["python", "./test-task-code/test-SentimentAnalysis.py"])
if task == "summarization":
process = subprocess.Popen(["python", "./test-task-code/test-summarization.py"])
process.wait()
print("Done")