소스 검색

Fix: no chunks parsed out for Law (#8842)

### What problem does this PR solve?

Fixes no chunks parsed out for Law. #5113 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.20.0
Yongteng Lei 3 달 전
부모
커밋
dbc2a8689a
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      rag/nlp/__init__.py

+ 1
- 0
rag/nlp/__init__.py 파일 보기

@@ -210,6 +210,7 @@ def bullets_category(sections):
hits = [0] * len(BULLET_PATTERN)
for i, pro in enumerate(BULLET_PATTERN):
for sec in sections:
sec = sec.strip()
for p in pro:
if re.match(p, sec) and not not_bullet(sec):
hits[i] += 1

Loading…
취소
저장