| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 87.5% |
| Changes | 0 | ||
| 1 | 1 | class DefaultConfig(): |
|
| 2 | """Define default configuration for cases when users do not provide a custom one""" |
||
| 3 | |||
| 4 | 1 | name = '' # collection name |
|
| 5 | 1 | inputColumns = [] # inputColumns to use |
|
| 6 | 1 | outputColumns = [] # outputColumns to use |
|
| 7 | 1 | customPlatformColumns = [] |
|
| 8 | 1 | open_ended_task = True |
|
| 9 | 1 | annotation_vector = [] |
|
| 10 | |||
| 11 | 1 | units = [] # units to use |
|
| 12 | 1 | workers = [] # workers to use |
|
| 13 | 1 | jobs = [] # jobs to use |
|
| 14 | |||
| 15 | 1 | csv_file_separator = ',' |
|
| 16 | 1 | annotation_separator = ',' |
|
| 17 | |||
| 18 | |||
| 19 | 1 | def processJudgments(self, judgments): |
|
| 20 | """ Custom configuration of the judgments """ |
||
| 21 | return judgments |
||
| 22 | |||
| 23 | 1 | def processResults(self, results, config=[]): |
|
| 24 | """ Processing of the reuslts using the provided configuration """ |
||
| 25 | return results |
||
| 26 |