Update train.py
Browse files
train.py
CHANGED
|
@@ -8,10 +8,10 @@ from keras_self_attention import SeqSelfAttention, SeqWeightedAttention
|
|
| 8 |
from model_settings import *
|
| 9 |
|
| 10 |
|
| 11 |
-
with open(
|
| 12 |
dset = json.load(f)
|
| 13 |
|
| 14 |
-
with open(
|
| 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.
|