Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def detect_ng_word(input_text):
|
|
53 |
|
54 |
return response
|
55 |
|
56 |
-
def estimate_ng_probability(input_text,
|
57 |
response = []
|
58 |
rtn_s = search_ng_word(input_text, ng_wordlist_1_s, ng_wordlist_2_s)
|
59 |
rtn_o = search_ng_word(input_text, ng_wordlist_1_o, ng_wordlist_2_o)
|
|
|
53 |
|
54 |
return response
|
55 |
|
56 |
+
def estimate_ng_probability(input_text, threshold=0.3):
|
57 |
response = []
|
58 |
rtn_s = search_ng_word(input_text, ng_wordlist_1_s, ng_wordlist_2_s)
|
59 |
rtn_o = search_ng_word(input_text, ng_wordlist_1_o, ng_wordlist_2_o)
|