Upload /sim_case_sug_demo/g_h.py with huggingface_hub
Browse files- sim_case_sug_demo/g_h.py +1 -1
sim_case_sug_demo/g_h.py
CHANGED
|
@@ -865,7 +865,7 @@ def case_sug(file_name,plaintiff,p_point):
|
|
| 865 |
global sug_th
|
| 866 |
|
| 867 |
p_point=p_point.split("。") if type(p_point)==type("111") else p_point
|
| 868 |
-
p_point=replace_all(p_point,["。","\n"],"@").split("@") if type(p_point)==type("111") else p_point
|
| 869 |
_pool=[i for i in corpus_dict]
|
| 870 |
_case_dict={"plaintiff":plaintiff,"p_point":p_point}
|
| 871 |
#print(_case_dict,[type(_case_dict[_e]) for _e in _case_dict])
|
|
|
|
| 865 |
global sug_th
|
| 866 |
|
| 867 |
p_point=p_point.split("。") if type(p_point)==type("111") else p_point
|
| 868 |
+
#p_point=replace_all(p_point,["。","\n"],"@").split("@") if type(p_point)==type("111") else p_point
|
| 869 |
_pool=[i for i in corpus_dict]
|
| 870 |
_case_dict={"plaintiff":plaintiff,"p_point":p_point}
|
| 871 |
#print(_case_dict,[type(_case_dict[_e]) for _e in _case_dict])
|