File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ def __init__(self):
66
66
self .sess = None
67
67
68
68
# Filename and directories constants
69
- self .MODEL_DIR_BASE = 'save/ model'
69
+ self .MODEL_DIR_BASE = 'save' + os . sep + ' model'
70
70
self .MODEL_NAME_BASE = 'model'
71
71
self .MODEL_EXT = '.ckpt'
72
72
self .CONFIG_FILENAME = 'params.ini'
73
73
self .CONFIG_VERSION = '0.5'
74
- self .TEST_IN_NAME = 'data/ test/ samples.txt'
74
+ self .TEST_IN_NAME = 'data' + os . sep + ' test' + os . sep + ' samples.txt'
75
75
self .TEST_OUT_SUFFIX = '_predictions.txt'
76
76
self .SENTENCES_PREFIX = ['Q: ' , 'A: ' ]
77
77
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ def _printStats(self):
108
108
def _constructBasePath (self ):
109
109
"""Return the name of the base prefix of the current dataset
110
110
"""
111
- path = os .path .join (self .args .rootDir , 'data/ samples/' )
111
+ path = os .path .join (self .args .rootDir , 'data' + os . sep + ' samples' + os . sep )
112
112
path += 'dataset-{}' .format (self .args .corpus )
113
113
if self .args .datasetTag :
114
114
path += '-' + self .args .datasetTag
@@ -254,7 +254,7 @@ def loadCorpus(self):
254
254
if self .args .corpus == 'lightweight' :
255
255
if not self .args .datasetTag :
256
256
raise ValueError ('Use the --datasetTag to define the lightweight file to use.' )
257
- optional = '/' + self .args .datasetTag # HACK: Forward the filename
257
+ optional = os . sep + self .args .datasetTag # HACK: Forward the filename
258
258
259
259
# Corpus creation
260
260
corpusData = TextData .availableCorpus [self .args .corpus ](self .corpusDir + optional )
You can’t perform that action at this time.
0 commit comments