-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
51 lines (36 loc) · 1.05 KB
/
config.py
File metadata and controls
51 lines (36 loc) · 1.05 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
DATA = os.path.join(basedir,'resources','Data_05_16_2016.csv')
OUT_DIRECTORY=os.path.join(basedir,'output','analysis')
CELERY_BROKER_URL = "amqp://guest:guest@localhost:5672//"
CELERY_BACKEND_URL = "amqp://guest:guest@localhost:5672//"
CHART_DIR=os.path.join(basedir,'charts')
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
FEATURES = [
'unigram',
# 'bigram',
# 'trigram',
# 'binary_unigram',
# 'binary_bigram',
# 'binary_trigram',
# 'char_3',
# 'char_4',
# 'char_5',
# 'google_word_emb',
# 'embedding',
# 'wrd'
]
VECTORS='.'
class TestingConfig(Config):
TESTING = True
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'default': DevelopmentConfig
}