I am working on python script that splits text in different blocks based on keywords used in text.
Currently I split text into blocks with sth like this (for 1 block, others have pretty much the same strucure):
if (line.strip().lower().startswith('ключевыенавыки') or line.strip().lower().startswith('дополнительнаяинформация') or line.strip().lower().startswith('знания') or line.strip().lower().startswith('личныекачества') or line.strip().lower().startswith('профессиональныенавыки') or line.strip().lower().startswith('навыки')):
But, it is possible that list of keywords is going to expand. Is there a possibility to generate multiple or statements based on some array of possible keywords?