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
Hi, I just finished training the model by using the sample dataset, but when I tried to predict by using some a random text, it throws the following error:
# load the model after evaluation ended i added this print predicts
print (model.predict("Youth minister and Street General, Charles Ble Goude, who is under UN sanctions for acts of violence by street militias, including beatings, rapes and extrajudicial killings, vows to fight for Ivory Coast's sovereignty"))
line 161, in forward
seq_lens = list(masks.data.eq(constant.PAD_ID).long().sum(1).squeeze())
AttributeError: 'str' object has no attribute 'data'
How solve this issue?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Hi, I just finished training the model by using the sample dataset, but when I tried to predict by using some a random text, it throws the following error:
How solve this issue?
Thank you in advance.
The text was updated successfully, but these errors were encountered: