Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Summarizer model on array of strings #148

Open
ankur287 opened this issue Dec 17, 2022 · 2 comments
Open

Run Summarizer model on array of strings #148

ankur287 opened this issue Dec 17, 2022 · 2 comments

Comments

@ankur287
Copy link

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.

@NtaylorOX
Copy link

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.

@ankur287
Copy link
Author

ankur287 commented Jan 4, 2023

I am still stuck. Any help on this issue please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants