dygiepp
dygiepp copied to clipboard
FileNotFoundError: file /var/folders/15/gkjwslh904x25gqrgyy07ndw0000gn/T/tmp85q5ara4/vocabulary not found
Hi, sorry if this has already been addressed elsewhere, but I didn't see anything related.
I am trying to use the joint entity and relation extraction DYGIE++ model released by the following paper: https://physionet.org/content/radgraph/1.0.0/ Their model.tar.gz file and folder of schema vocabulary (in the form of short text files with one entity/relation class in each line) is available for download.
My goal is to use the model to predict entities and relations on new data. I ran the following command after following the steps outlined in the dependencies section:
allennlp predict some_path/model.tar.gz \
some_path/input_data \
--predictor dygie \
--include-package dygie \
--use-dataset-reader \
--output-file some_path/output.json
Here input_data is a folder containing a bunch of text files. Output.json is an empty json file. When i execute the command, i get the following output:
INFO - allennlp.common.plugins - Plugin allennlp_models available
INFO - allennlp.models.archival - loading archive file model_checkpoint/model.tar.gz
INFO - allennlp.models.archival - extracting archive file model_checkpoint/model.tar.gz to temp dir /var/folders/15/gkjwslh904x25gqrgyy07ndw0000gn/T/tmp85q5ara4
INFO - allennlp.common.params - type = from_instances
INFO - allennlp.data.vocabulary - Loading token dictionary from /var/folders/15/gkjwslh904x25gqrgyy07ndw0000gn/T/tmp85q5ara4/vocabulary.
Traceback (most recent call last):
File "/Users/ax/opt/anaconda3/envs/new_env/bin/allennlp", line 8, in
Could someone please explain this error? Thank you so much!
Hmm, I haven't seen this before. Can you check whether running one of the models in this repo (as opposed to a model associated with a different publication) causes a similar error? If you only get the error when running the radgraph model, I think the next thing to do is check in with the authors of that paper.