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
/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.
The text was updated successfully, but these errors were encountered:
When execute the encode function, the following error occurs:
TypeError Traceback (most recent call last)
in
----> 1 m.encode(['123','456'], tokenize=True)
/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.
The text was updated successfully, but these errors were encountered: