From aedc23e98cfc9d0aa43eb133157d51741cdeaecb Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Mon, 17 Nov 2025 13:59:02 +0800 Subject: [PATCH] Fix typos Signed-off-by: Jin Hai --- rag/nlp/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rag/nlp/__init__.py b/rag/nlp/__init__.py index 80acf1d8f..de7c2ce60 100644 --- a/rag/nlp/__init__.py +++ b/rag/nlp/__init__.py @@ -155,13 +155,13 @@ def qbullets_category(sections): if re.match(pro, sec) and not not_bullet(sec): hits[i] += 1 break - maxium = 0 + maximum = 0 res = -1 for i, h in enumerate(hits): - if h <= maxium: + if h <= maximum: continue res = i - maxium = h + maximum = h return res, QUESTION_PATTERN[res] @@ -222,13 +222,13 @@ def bullets_category(sections): if re.match(p, sec) and not not_bullet(sec): hits[i] += 1 break - maxium = 0 + maximum = 0 res = -1 for i, h in enumerate(hits): - if h <= maxium: + if h <= maximum: continue res = i - maxium = h + maximum = h return res