-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
28 lines (21 loc) · 886 Bytes
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Project-wide settings file.
# Has stuff like constants, file paths, etc.
import os
# Debug flag. If set, more verbose output is given.
DEBUG = False
# Various file paths and directories.
PROJECT_DIR = os.path.abspath(os.getcwd())
NEWSGROUP_DIR = os.path.join(PROJECT_DIR, 'news-data')
TWITTER_DIR = '../TwitterDataset/data/Jan27-Feb02/'
STOP_LIST = 'stop_list.txt'
# File names we will use for the tsv files.
NEWSGROUP_TRAIN = os.path.join(NEWSGROUP_DIR, 'newsgroup_train.tsv')
NEWSGROUP_TEST = os.path.join(NEWSGROUP_DIR, 'newsgroup_test.tsv')
NEWSGROUP_CLASSES = os.path.join(NEWSGROUP_DIR, 'newsgroup_classes.tsv')
TWITTER_TRAIN = os.path.join(TWITTER_DIR, 'twitter_train.tsv')
TWITTER_TEST = os.path.join(TWITTER_DIR, 'twitter_test.tsv')
TWITTER_CLASSES = os.path.join(TWITTER_DIR, 'twitter_classes.tsv')
# Modes for fold creation
ROUND_ROBIN = 0
RANDOM = 1
EVEN_SPLIT = 2