Skip to content

Commit

Permalink
public srl model
Browse files Browse the repository at this point in the history
  • Loading branch information
ksatvat committed Feb 25, 2021
1 parent b4bc23a commit 03dcd18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions role_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def roles(sentences):
my_svo_triplet = []
all_nodes = []
for i in range(len(sentences)):
# public SRL model https://s3-us-west-2.amazonaws.com/allennlp/models/srl-model-2018.05.25.tar.gz
predictor = Predictor.from_path("srl-model.tar.gz")
predictions = predictor.predict(sentences[i])
lst = []
Expand Down

0 comments on commit 03dcd18

Please sign in to comment.