<reponame>SunbirdAI/social-media-data-dashboard<filename>constants.py<gh_stars>1-10
from pathlib import Path
from string import punctuation
from nltk.corpus import stopwords

ROOT = Path(__file__).resolve().parent
DATA_FOLDER = ROOT.joinpath("data")
STOP_WORDS = set(
    stopwords.words('english') + list(punctuation) + ['AT_USER', 'URL']
)
MODES = ['Ministry of Health', 'KCCA', 'Influencers', 'Engagers']
TITLE_TO_MODE = {
    'Ministry of Health': 'moh',
    'KCCA': 'kcca',
    'Influencers': 'influencers',
    'Engagers': 'engagers'
}
FB_TITLE_TO_MODE = {
    'Ministry of Health': 'MOH',
    'KCCA': 'KCCA'
}

from pathlib import Path
from string import punctuation
from nltk.corpus import stopwords

ROOT = Path(__file__).resolve().parent
DATA_FOLDER = ROOT.joinpath("data")
STOP_WORDS = set(
    stopwords.words('english') + list(punctuation) + ['AT_USER', 'URL']
)
MODES = ['Ministry of Health', 'KCCA', 'Influencers', 'Engagers']
TITLE_TO_MODE = {
    'Ministry of Health': 'moh',
    'KCCA': 'kcca',
    'Influencers': 'influencers',
    'Engagers': 'engagers'
}
FB_TITLE_TO_MODE = {
    'Ministry of Health': 'MOH',
    'KCCA': 'KCCA'
}