Skip to content

Commit d7987b4

Browse files
Merge branch 'master' of github.com:Conchylicultor/DeepQA
2 parents 9423c0e + fc79811 commit d7987b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chatbot/textdata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ def loadCorpus(self, dirName):
235235
if not datasetExist: # First time we load the database: creating all files
236236
print('Training samples not found. Creating dataset...')
237237

238-
optionnal = ''
238+
optional = ''
239239
if self.args.corpus == 'lightweight' and not self.args.datasetTag:
240240
raise ValueError('Use the --datasetTag to define the lightweight file to use.')
241241
else:
242-
optionnal = '/' + self.args.datasetTag # HACK: Forward the filename
242+
optional = '/' + self.args.datasetTag # HACK: Forward the filename
243243

244244
# Corpus creation
245-
corpusData = TextData.availableCorpus[self.args.corpus](self.corpusDir + optionnal)
245+
corpusData = TextData.availableCorpus[self.args.corpus](self.corpusDir + optional)
246246
self.createCorpus(corpusData.getConversations())
247247

248248
# Saving

0 commit comments

Comments
 (0)