Tymec commited on
Commit
9a96b6b
1 Parent(s): 8450b4f

Remove unused constanst

Browse files
Files changed (1) hide show
  1. app/constants.py +0 -11
app/constants.py CHANGED
@@ -16,17 +16,6 @@ AMAZONREVIEWS_URL = "https://www.kaggle.com/datasets/bittlingmayer/amazonreviews
16
  IMDB50K_PATH = DATA_DIR / "imdb50k.csv"
17
  IMDB50K_URL = "https://www.kaggle.com/datasets/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews"
18
 
19
- URL_REGEX = r"(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?\/[a-zA-Z0-9]{2,}|((https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?)|(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}(\.[a-zA-Z0-9]{2,})?" # https://www.freecodecamp.org/news/how-to-write-a-regular-expression-for-a-url/
20
- EMOTICON_MAP = {
21
- "SMILE": [":)", ":-)", ": )", ":D", ":-D", ": D", ";)", ";-)", "; )", ":>", ":->", ": >", ":]", ":-]", ": ]"],
22
- "LOVE": ["<3", ":*", ":-*", ": *"],
23
- "WINK": [";)", ";-)", "; )", ";>", ";->", "; >"],
24
- "FROWN": [":(", ":-(", ": (", ":[", ":-[", ": ["],
25
- "CRY": [":'(", ": (", ":' (", ":'[", ":' ["],
26
- "SURPRISE": [":O", ":-O", ": O", ":0", ":-0", ": 0", ":o", ":-o", ": o"],
27
- "ANGRY": [">:(", ">:-(", "> :(", ">:["],
28
- }
29
-
30
  CACHE_DIR.mkdir(exist_ok=True, parents=True)
31
  DATA_DIR.mkdir(exist_ok=True, parents=True)
32
  MODELS_DIR.mkdir(exist_ok=True, parents=True)
 
16
  IMDB50K_PATH = DATA_DIR / "imdb50k.csv"
17
  IMDB50K_URL = "https://www.kaggle.com/datasets/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews"
18
 
 
 
 
 
 
 
 
 
 
 
 
19
  CACHE_DIR.mkdir(exist_ok=True, parents=True)
20
  DATA_DIR.mkdir(exist_ok=True, parents=True)
21
  MODELS_DIR.mkdir(exist_ok=True, parents=True)