minko186 commited on
Commit
938e36d
·
verified ·
1 Parent(s): 50a470e

Update predictors.py

Browse files
Files changed (1) hide show
  1. predictors.py +7 -6
predictors.py CHANGED
@@ -97,12 +97,13 @@ def correct_text(text: str, bias_checker, bias_corrector, separator: str = " ")
97
  return corrected_text, corrections
98
 
99
  def update(text: str):
100
- text = clean(text, lower=False)
101
- corrected_text, corrections = correct_text(text, bias_checker, bias_corrector)
102
- corrections_display = "".join([f"{corr}" for orig, corr in corrections])
103
- if corrections_display == "":
104
- corrections_display = text
105
- return corrections_display
 
106
 
107
  def update_main(text: str):
108
  # text = clean(text, lower=False)
 
97
  return corrected_text, corrections
98
 
99
  def update(text: str):
100
+ # text = clean(text, lower=False)
101
+ # corrected_text, corrections = correct_text(text, bias_checker, bias_corrector)
102
+ # corrections_display = "".join([f"{corr}" for orig, corr in corrections])
103
+ # if corrections_display == "":
104
+ # corrections_display = text
105
+ # return corrections_display
106
+ return "Unavailable"
107
 
108
  def update_main(text: str):
109
  # text = clean(text, lower=False)