I am trying to use the bert-base model for SRL, but I get access denied, i.e.:
OSError: HEAD request failed for url https://s3-us-west-2.amazonaws.com/allennlp/models/bert-base-srl-2020.02.10.tar.gz with status code 403
Using this code:
from allennlp import predictors
from allennlp_hub.pretrained.helpers import _load_predictor
import allennlp.models
def bert_srl_shi_2019() -> predictors.SemanticRoleLabelerPredictor:
predictor = _load_predictor(
"https://s3-us-west-2.amazonaws.com/allennlp/models/bert-base-srl-2020.02.10.tar.gz",
"semantic-role-labeling",
)
return predictor
predictor = bert_srl_shi_2019()
output = predictor.predict(
sentence="Did Uriah honestly think he could beat the game in under three hours?"
)
print(output)
I am trying to use the bert-base model for SRL, but I get access denied, i.e.:
OSError: HEAD request failed for url https://s3-us-west-2.amazonaws.com/allennlp/models/bert-base-srl-2020.02.10.tar.gz with status code 403
Using this code: