remote jieba
This commit is contained in:
parent
537540ccae
commit
3fa11142c4
2
tools.py
2
tools.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue