RBERT icon indicating copy to clipboard operation
RBERT copied to clipboard

Share model List Between Functions

Open jonthegeek opened this issue 5 years ago • 2 comments

extract_features, download_BERT_checkpoint, and probably some other functions use the model parameter, with a hard-coded list of models. Investigate listing those models in one place and automatically updating the formals of those functions. Ideally it should still list them all in the documentation of that function (and in RStudio autocomplete), so it'll take at least a little bit of fanciness. I'm pretty certain it's possible, though.

jonthegeek avatar Dec 31 '19 21:12 jonthegeek

This could probably relate to #30.

jonthegeek avatar Jan 09 '20 15:01 jonthegeek

I think the best option here would be to make a function, something like known_models. It would have defaults and information about what models we know how to deal with.

That doesn't feel quite perfect yet, but along those lines.

jonthegeek avatar Nov 02 '20 13:11 jonthegeek