fix term weight issue (#3306)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-11-08 18:25:23 +08:00
committed by GitHub
parent 74d1eeb4d3
commit 004487cca0
2 changed files with 20 additions and 12 deletions

View File

@ -211,8 +211,8 @@ class Dealer:
continue
if not isinstance(v, type("")):
m[n] = str(m[n])
if n.find("tks") > 0:
m[n] = rmSpace(m[n])
#if n.find("tks") > 0:
# m[n] = rmSpace(m[n])
if m:
res[d["id"]] = m