You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chatbot/chatbot.py
+15-9Lines changed: 15 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ def __init__(self):
70
70
self.MODEL_NAME_BASE='model'
71
71
self.MODEL_EXT='.ckpt'
72
72
self.CONFIG_FILENAME='params.ini'
73
-
self.CONFIG_VERSION='0.4'
73
+
self.CONFIG_VERSION='0.5'
74
74
self.TEST_IN_NAME='data/test/samples.txt'
75
75
self.TEST_OUT_SUFFIX='_predictions.txt'
76
76
self.SENTENCES_PREFIX= ['Q: ', 'A: ']
@@ -113,7 +113,7 @@ def parseArgs(args):
113
113
datasetArgs.add_argument('--datasetTag', type=str, default='', help='add a tag to the dataset (file where to load the vocabulary and the precomputed samples, not the original corpus). Useful to manage multiple versions. Also used to define the file used for the lightweight format.') # The samples are computed from the corpus if it does not exist already. There are saved in \'data/samples/\'
114
114
datasetArgs.add_argument('--ratioDataset', type=float, default=1.0, help='ratio of dataset used to avoid using the whole dataset') # Not implemented, useless ?
115
115
datasetArgs.add_argument('--maxLength', type=int, default=10, help='maximum length of the sentence (for input and output), define number of maximum step of the RNN')
datasetArgs.add_argument('--filterVocab', type=int, default=1, help='remove rarelly used words (by default words used only once). 0 to keep all words.')
117
117
118
118
# Network options (Warning: if modifying something here, also make the change on save/loadParams() )
119
119
nnArgs=parser.add_argument_group('Network options', 'architecture related option')
self.args.maxLength=config['General'].getint('maxLength') # We need to restore the model length because of the textData associated and the vocabulary size (TODO: Compatibility mode between different maxLength)
self.args.maxLength=config['Dataset'].getint('maxLength') # We need to restore the model length because of the textData associated and the vocabulary size (TODO: Compatibility mode between different maxLength)
0 commit comments