ierhon commited on
Commit
0b9936f
1 Parent(s): 0c7b422

Update train.py

Browse files
Files changed (1) hide show
  1. train.py +2 -2
train.py CHANGED
@@ -8,10 +8,10 @@ from keras_self_attention import SeqSelfAttention, SeqWeightedAttention
8
  from model_settings import *
9
 
10
 
11
- with open("dataset.json", "r") as f:
12
  dset = json.load(f)
13
 
14
- with open("responses.txt", "r") as f:
15
  dset_size = len(f.readlines())
16
 
17
  tokenizer = Tokenizer() # a tokenizer is a thing to split text into words, it might have some other stuff like making all the letters lowercase, etc.
 
8
  from model_settings import *
9
 
10
 
11
+ with open(dataset_file, "r") as f:
12
  dset = json.load(f)
13
 
14
+ with open(responses_file, "r") as f: # TODO: add support to a json-only dataset
15
  dset_size = len(f.readlines())
16
 
17
  tokenizer = Tokenizer() # a tokenizer is a thing to split text into words, it might have some other stuff like making all the letters lowercase, etc.