This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
How to use allennlp predict command in subprocess #5730
Answered
by
martina-dev-11
martina-dev-11
asked this question in
Q&A
-
Hi everyone! I am trying to use an allennlp model to make predictions from within a python function, and thus am attempting to use How does with work please? The
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
martina-dev-11
Nov 3, 2022
Replies: 1 comment
-
Managed using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
martina-dev-11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Managed using
subprocess.run(command.split(), capture_output=True, text=True)
, with the allennlp command being stored as a string and referred to in this line of code.