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,
How can I run the Summarizer model to predict an array of Strings. Predicting 1 string at a time using a for loop is very slow and not scalable for data with millions of rows. I get the following error when I pass an array:
model(df['text'].values[:1000], ratio=0.50)
ValueError: [E1041] Expected a string, Doc, or bytes as input, but got: <class 'numpy.ndarray'>.
Thanks.
The text was updated successfully, but these errors were encountered:
I have a similar question. It would be ideal to have this summariser optimised for handling many instances at once or in parallel. As a likely common use case is to summarise many documents at once.
Hi,
How can I run the Summarizer model to predict an array of Strings. Predicting 1 string at a time using a for loop is very slow and not scalable for data with millions of rows. I get the following error when I pass an array:
model(df['text'].values[:1000], ratio=0.50)
ValueError: [E1041] Expected a string, Doc, or bytes as input, but got: <class 'numpy.ndarray'>.
Thanks.
The text was updated successfully, but these errors were encountered: