-
Notifications
You must be signed in to change notification settings - Fork 1
/
env.py
24 lines (18 loc) · 1.06 KB
/
env.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
from __future__ import print_function
from __future__ import division
import os
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
DATA_PATH = os.path.join(PROJECT_PATH, 'data')
DATASET_PATH = os.path.join(DATA_PATH, 'dataset')
TRAINSET_PATH = os.path.join(DATASET_PATH, 'ai_challenger_sentiment_analysis_trainingset_20180816')
VALSET_PATH = os.path.join(DATASET_PATH, 'ai_challenger_sentiment_analysis_validationset_20180816')
TESTSET_PATH = os.path.join(DATASET_PATH, 'ai_challenger_sentiment_analysis_testa_20180816')
TRAINSET_CSV = os.path.join(TRAINSET_PATH, 'sentiment_analysis_trainingset.csv')
VALSET_CSV = os.path.join(VALSET_PATH, 'sentiment_analysis_validationset.csv')
TESTSET_CSV = os.path.join(TESTSET_PATH, 'sentiment_analysis_testa.csv')
STOPWORDS_PATH = os.path.join(DATA_PATH, "stopwords")
HIT_TXT = os.path.join(STOPWORDS_PATH, "HIT.txt")
FEATURES_PATH = os.path.join(DATA_PATH, 'features')
CACHES_PATH = os.path.join(DATA_PATH, 'caches')
SAVED_MODELS_PATH = os.path.join(DATA_PATH, 'saved_models')
RESULTS_PATH = os.path.join(DATA_PATH, 'results')