How to easily use this model for inference
xegulon opened this issue · 3 comments
xegulon commented
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 commented
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 commented
Can Spert run on CPU in ubuntu VIRTUAL machine
markus-eberts commented
@ader456 Yes I think so.