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

Serializing <text2text.text_generator.TextGenerator object at 0x00000165BFF72940> #12

Open
jaytimbadia opened this issue Jul 14, 2020 · 1 comment

Comments

@jaytimbadia
Copy link

Can anyone let me know how to serialize <text2text.text_generator.TextGenerator object at 0x00000165BFF72940>?

I am loading below when flask loads.

from text2text.text_generator import TextGenerator
qg = TextGenerator(output_type="question")

Now I need to pass qg object to another server, so need to serialize it.
Any relevant pointers would be highly appreciated.

@artitw
Copy link
Owner

artitw commented Aug 22, 2020

Sounds like you are trying to wrap a web service around this. In that case, why do you need to pass the entire object to another server?

In any case, one way you can consider is pickle.

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