Pārlūkot izejas kodu

enable 3 char words to finegrind tokenize (#2210)

### What problem does this PR solve?


### Type of change


- [x] Performance Improvement
tags/v0.11.0
Kevin Hu pirms 1 gada
vecāks
revīzija
6d232f1bdb
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      rag/nlp/query.py

+ 1
- 1
rag/nlp/query.py Parādīt failu

@@ -83,7 +83,7 @@ class EsQueryer:
), tks

def need_fine_grained_tokenize(tk):
if len(tk) < 4:
if len(tk) < 3:
return False
if re.match(r"[0-9a-z\.\+#_\*-]+$", tk):
return False

Notiek ielāde…
Atcelt
Saglabāt