|
|
@ -12,16 +12,20 @@ class AnkimakerConfig(yaml.YAMLObject): |
|
|
|
question_column = None |
|
|
|
question_column = None |
|
|
|
answer_column = None |
|
|
|
answer_column = None |
|
|
|
separators = ',' |
|
|
|
separators = ',' |
|
|
|
|
|
|
|
input_language = None, |
|
|
|
|
|
|
|
output_language = None, |
|
|
|
filters: List[List[FilterConfig]] = list() |
|
|
|
filters: List[List[FilterConfig]] = list() |
|
|
|
|
|
|
|
|
|
|
|
def __init__( |
|
|
|
def __init__( |
|
|
|
self, separators=',', header=None, answer_column=None, question_column=None, |
|
|
|
self, separators=',', header=None, answer_column=None, question_column=None, |
|
|
|
filters=tuple(), *args, **karhs |
|
|
|
filters=tuple(), input_language=None, output_language=None, *args, **karhs |
|
|
|
): |
|
|
|
): |
|
|
|
self.answer_column = answer_column |
|
|
|
self.answer_column = answer_column |
|
|
|
self.question_column = question_column |
|
|
|
self.question_column = question_column |
|
|
|
self.header = header |
|
|
|
self.header = header |
|
|
|
self.separators = separators |
|
|
|
self.separators = separators |
|
|
|
|
|
|
|
self.input_language = input_language |
|
|
|
|
|
|
|
self.output_language = output_language |
|
|
|
self.filters = _conditionally_create_new_filters(filters) |
|
|
|
self.filters = _conditionally_create_new_filters(filters) |
|
|
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
@staticmethod |
|
|
@ -34,6 +38,8 @@ class AnkimakerConfig(yaml.YAMLObject): |
|
|
|
AnkimakerConfig.question_column = content.question_column |
|
|
|
AnkimakerConfig.question_column = content.question_column |
|
|
|
AnkimakerConfig.answer_column = content.answer_column |
|
|
|
AnkimakerConfig.answer_column = content.answer_column |
|
|
|
AnkimakerConfig.separators = content.separators |
|
|
|
AnkimakerConfig.separators = content.separators |
|
|
|
|
|
|
|
AnkimakerConfig.input_language = content.input_language |
|
|
|
|
|
|
|
AnkimakerConfig.output_language = content.output_language |
|
|
|
AnkimakerConfig.filters = _conditionally_create_new_filters(content.filters) |
|
|
|
AnkimakerConfig.filters = _conditionally_create_new_filters(content.filters) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|