lhoestq HF staff commited on
Commit
da99fed
·
1 Parent(s): 3e40719
Files changed (1) hide show
  1. analyze.py +5 -4
analyze.py CHANGED
@@ -44,10 +44,11 @@ def batched(
44
 
45
 
46
  def mask(text: str) -> str:
47
- return " ".join(
48
- word[: min(2, len(word) - 1)] + re.sub("[A-Za-z0-9]", "*", word[min(2, len(word) - 1) :])
49
- for word in text.split(" ")
50
- )
 
51
 
52
 
53
  def get_strings(row_content: Any) -> str:
 
44
 
45
 
46
  def mask(text: str) -> str:
47
+ return text # don't apply mask for demo
48
+ # return " ".join(
49
+ # word[: min(2, len(word) - 1)] + re.sub("[A-Za-z0-9]", "*", word[min(2, len(word) - 1) :])
50
+ # for word in text.split(" ")
51
+ # )
52
 
53
 
54
  def get_strings(row_content: Any) -> str: