SentEncoding
SentEncoding copied to clipboard
'float' object cannot be interpreted as an integer
When execute the encode function, the following error occurs:
TypeError Traceback (most recent call last)
/apps/dataiku-data/jupyter-run/dku-workdirs/MARRIOTT/SentEncoding/master.py in encode(self, task_data, tokenize, use_norm) 261 for l in ds.keys(): 262 numbatches = len(ds[l]) / self.conf['option']['encode_bs'] + 1 --> 263 for minibatch in range(numbatches): 264 caps = ds[l][minibatch::numbatches] 265
TypeError: 'float' object cannot be interpreted as an integer
Solved: Cannot encode words outside dictionary.