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
File "/data/code/Linguini/linguini/preprocessing/encoders.py",
line 52, in transform
for text in sentences:
text = text[:max_len - 2]
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered:
Given this error:
File "/data/code/Linguini/linguini/preprocessing/encoders.py",
line 52, in transform
for text in sentences:
text = text[:max_len - 2]
TypeError: 'NoneType' object is not subscriptable
Here's the suspect file: ./Linguini/linguini/preprocessing/encoders.py
and the suspect function:
def transform(self, sentences):
"""
Transforms sentences by indexing them
File "/data/code/Linguini/linguini/preprocessing/encoders.py",
line 52, in transform
for text in sentences:
text = text[:max_len - 2]
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: