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

REST APIs Support Loading Models on Disk #194

Open
etgld opened this issue Oct 17, 2023 · 1 comment
Open

REST APIs Support Loading Models on Disk #194

etgld opened this issue Oct 17, 2023 · 1 comment

Comments

@etgld
Copy link
Contributor

etgld commented Oct 17, 2023

Might be collapsible into #158 but the use case I'm thinking of involves making PBJ annotators via REST classes for Jiarui's DTR and TLINK models. The issue is that for the DTR and temporal REST classes there isn't currently a direct way to initialize them from a cnlpt model on disk. temporal_rest.py comes the closest with trying to get the model name from the OS environment but:

  1. It's the only REST interface that currently does that at the moment.
  2. I'm not sure how the environment variable approach would gel with the Dockerized ctakes PBJ-based approach we have to use
@etgld
Copy link
Contributor Author

etgld commented Nov 1, 2023

Turns out for our use case we have models with both cnlp and Hf style configs. If I can get that working can fold the functionality that loads them both into this.

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

1 participant