remote jieba

This commit is contained in:
赵敬皓 2023-08-23 16:04:07 +08:00
parent 537540ccae
commit 3fa11142c4
1 changed files with 0 additions and 2 deletions

View File

@ -1,6 +1,5 @@
# -*-utf8-*-
import numpy as np
import jieba
import json
import math
@ -23,7 +22,6 @@ def cal_angle(prov:str, city:str, angle_config:dict):
prov_values = angle_config.get(prov)
if not prov_values:
return False
city = [x for x in jieba.lcut(city, cut_all=True)]
city_values = prov_values.get(city)
if not prov_values:
values = np.mean(list(prov_values.values), axis=0)