Closed serenalotreck closed 2 years ago
Hi Serena,
Unfortunately, i don't know how to do this. If you're willing to dig into the AllenNLP source code, maybe you can find out what's happening under the hood with the --include_package
command line flag, and replicate that behavior in your Python script? Sorry I can't help more.
Dave
No worries, just wanted to make sure there wasn't a quick answer I was missing!
I'll close for now and update when I figure out how to do it.
Thanks!
I'm interested in getting the vocabulary of the pre-trained models and manipulating it with allennlp. My plan was to use the
from_archive
method of theModel
class to read in the dygiepp models, and then getting the vocabulary via thevocab
attribute.However, when I try to load the model with
from_archive
, I get a configuration error related to dygie. The error message indicates how to fix this is using allennlp as a command line utility, but doesn't indicate how to fix it within the python interface.Wondering if there's a fix for this?
Thanks!
Here's the code and the error message:
conda list
output: