Skip to content

Commit e04608c

Browse files
authored
Merge pull request #75 from myhloli/dev
feat: normalize class name in image analysis postprocess
2 parents 2ffbb54 + 2957460 commit e04608c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mineru_vl_utils/post_process/image_analysis_postprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ def process_image_or_chart(content: str) -> dict[str, str]:
277277
}
278278

279279
class_name = values["class"].strip().lower()
280+
values["class"] = class_name
280281
normalized_content = values["content"]
281282

282283
# 1) chemical 类别:content 置空

0 commit comments

Comments
 (0)