allenai / allennlp-hub

A collection of selected of models built with AllenNLP.
Apache License 2.0
25 stars 9 forks source link

Access denied for model https://s3-us-west-2.amazonaws.com/allennlp/models/bert-base-srl-2020.02.10.tar.gz #20

Open igormis opened 4 years ago

igormis commented 4 years ago

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)
ssdorsey commented 4 years ago

Same problem for me