with open(patch, 'r', encoding='utf-8') as file:
data = json.load(file)['attrs']
for i in data['group']:
if x := re.search(fr'\b{i}\b', source_text):
cb_kwargs['strength'] = x[0]
break
for i in data['surface']:
if x := re.search(fr'\b{i}\b', source_text):
cb_kwargs['surface_quality'] = x[0]
break
for i in data['drawing]:
if x := re.search(fr'\b{i}\b', source_text):
cb_kwargs['drawing_ability'] = x[0]
break
for i in data['_class']:
if x := re.search(fr'\b{i}\b', source_text):
cb_kwargs['accuracy_class'] = x[0]
break
for i in data['flatness']:
if x := re.search(fr'\b{i}\b', source_text):
cb_kwargs['flatness'] = x[0]
break
for doc in article['key_1']