Spaces:
Running on Zero
Running on Zero
Download src/config.py from Evasim/Simple-Text-Classifier: direct link, hf CLI and curl.
- Browser
- Download file 2.48 kB
-
https://huggingface.co/spaces/Evasim/Simple-Text-Classifier/resolve/main/src/config.py
- Command line
-
hf download hf://spaces/Evasim/Simple-Text-Classifier/src/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Evasim/Simple-Text-Classifier/resolve/main/src/config.py
2.48 kB
| import os | |
| from pathlib import Path | |
| SRC_DIR = Path(__file__).parent.absolute() | |
| BASE_DIR = SRC_DIR.parent | |
| DATA_DIR = BASE_DIR / "data" | |
| EFS_DIR = Path(os.getenv("EFS_DIR", BASE_DIR / "efs")) | |
| ARTIFACTS_DIR = EFS_DIR / "artifacts" | |
| ARTIFACTS_DIR.mkdir(parents=True, exist_ok=True) | |
| STOPWORDS = [ | |
| "i", | |
| "me", | |
| "my", | |
| "myself", | |
| "we", | |
| "our", | |
| "ours", | |
| "ourselves", | |
| "you", | |
| "you're", | |
| "you've", | |
| "you'll", | |
| "you'd", | |
| "your", | |
| "yours", | |
| "yourself", | |
| "yourselves", | |
| "he", | |
| "him", | |
| "his", | |
| "himself", | |
| "she", | |
| "she's", | |
| "her", | |
| "hers", | |
| "herself", | |
| "it", | |
| "it's", | |
| "its", | |
| "itself", | |
| "they", | |
| "them", | |
| "their", | |
| "theirs", | |
| "themselves", | |
| "what", | |
| "which", | |
| "who", | |
| "whom", | |
| "this", | |
| "that", | |
| "that'll", | |
| "these", | |
| "those", | |
| "am", | |
| "is", | |
| "are", | |
| "was", | |
| "were", | |
| "be", | |
| "been", | |
| "being", | |
| "have", | |
| "has", | |
| "had", | |
| "having", | |
| "do", | |
| "does", | |
| "did", | |
| "doing", | |
| "a", | |
| "an", | |
| "the", | |
| "and", | |
| "but", | |
| "if", | |
| "or", | |
| "because", | |
| "as", | |
| "until", | |
| "while", | |
| "of", | |
| "at", | |
| "by", | |
| "for", | |
| "with", | |
| "about", | |
| "against", | |
| "between", | |
| "into", | |
| "through", | |
| "during", | |
| "before", | |
| "after", | |
| "above", | |
| "below", | |
| "to", | |
| "from", | |
| "up", | |
| "down", | |
| "in", | |
| "out", | |
| "on", | |
| "off", | |
| "over", | |
| "under", | |
| "again", | |
| "further", | |
| "then", | |
| "once", | |
| "here", | |
| "there", | |
| "when", | |
| "where", | |
| "why", | |
| "how", | |
| "all", | |
| "any", | |
| "both", | |
| "each", | |
| "few", | |
| "more", | |
| "most", | |
| "other", | |
| "some", | |
| "such", | |
| "no", | |
| "nor", | |
| "not", | |
| "only", | |
| "own", | |
| "same", | |
| "so", | |
| "than", | |
| "too", | |
| "very", | |
| "s", | |
| "t", | |
| "can", | |
| "will", | |
| "just", | |
| "don", | |
| "don't", | |
| "should", | |
| "should've", | |
| "now", | |
| "d", | |
| "ll", | |
| "m", | |
| "o", | |
| "re", | |
| "ve", | |
| "y", | |
| "ain", | |
| "aren", | |
| "aren't", | |
| "couldn", | |
| "couldn't", | |
| "didn", | |
| "didn't", | |
| "doesn", | |
| "doesn't", | |
| "hadn", | |
| "hadn't", | |
| "hasn", | |
| "hasn't", | |
| "haven", | |
| "haven't", | |
| "isn", | |
| "isn't", | |
| "ma", | |
| "mightn", | |
| "mightn't", | |
| "mustn", | |
| "mustn't", | |
| "needn", | |
| "needn't", | |
| "shan", | |
| "shan't", | |
| "shouldn", | |
| "shouldn't", | |
| "wasn", | |
| "wasn't", | |
| "weren", | |
| "weren't", | |
| "won", | |
| "won't", | |
| "wouldn", | |
| "wouldn't", | |
| ] |