优化科室的匹配

This commit is contained in:
2024-08-21 10:21:23 +08:00
parent 2f3b7e7dc0
commit 7fbcf7d268
3 changed files with 23 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ HOSPITAL_ALIAS = {
"漂水": ["溧水"],
}
DEPARTMENT_ALIAS = {
"耳鼻喉": ["耳鼻咽喉"]
"耳鼻喉": ["耳鼻咽喉"],
}
"""
@@ -84,10 +84,16 @@ DEPARTMENT_ALIAS = {
# 默认会过滤单字
HOSPITAL_FILTER = ["医院", "人民", "第一", "第二", "第三", "大学", "附属"]
DEPARTMENT_FILTER = ["", "", "病区", ""]
"""
分词配置
"""
jieba.suggest_freq(('肿瘤', '医院'), True)
jieba.suggest_freq(('心血管', ''), True)
jieba.suggest_freq(('', ''), True)
jieba.suggest_freq(('感染', ''), True)
jieba.suggest_freq(('', ''), True)
"""
模型配置