Spaces:
Runtime error
Runtime error
no mask
Browse files- analyze.py +5 -4
analyze.py
CHANGED
|
@@ -44,10 +44,11 @@ def batched(
|
|
| 44 |
|
| 45 |
|
| 46 |
def mask(text: str) -> str:
|
| 47 |
-
return
|
| 48 |
-
|
| 49 |
-
|
| 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:
|