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

How to easily use this model for inference #51

Open
xegulon opened this issue Jun 10, 2021 · 3 comments
Open

How to easily use this model for inference #51

xegulon opened this issue Jun 10, 2021 · 3 comments

Comments

@xegulon
Copy link

xegulon commented Jun 10, 2021

Hi, thanks for the amazing work

Is there a snippet somewhere explaining how to efficiently use the model for inference?

Like this:

s = "The sequence I wanna extract the relations from"
nlp(s)
>>> dict_of_relations(...)

Thanks a lot!

@markus-eberts
Copy link
Member

Unfortunately this is currently not supported. As a workaround, you could use the prediction mode, which saves the predictions to disk. Maybe I will add this someday, so the model can be directly used for inference in Python, but I cannot make any promises.

@ader456
Copy link

ader456 commented Oct 8, 2021

Can Spert run on CPU in ubuntu VIRTUAL machine

@markus-eberts
Copy link
Member

@ader456 Yes I think so.

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

3 participants