Skip to content

Commit

Permalink
Update VerbAtlas version (1.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccorl committed Sep 24, 2020
1 parent 4891be3 commit e61bcb6
Show file tree
Hide file tree
Showing 5 changed files with 5,779 additions and 5,826 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="transformer_srl", # Replace with your own username
version="2.4rc2",
version="2.4rc3",
author="Riccardo Orlando",
author_email="orlandoricc@gmail.com",
description="SRL Transformer model",
Expand Down
2 changes: 1 addition & 1 deletion transformer_srl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def __init__(
self.frame_criterion = torch.nn.CrossEntropyLoss()
# add missing labels
frame_list = load_label_list(FRAME_LIST_PATH)
# self.vocab.add_tokens_to_namespace(frame_list, "frames_labels")
self.vocab.add_tokens_to_namespace(frame_list, "frames_labels")
self.num_classes = self.vocab.get_vocab_size("labels")
self.frame_num_classes = self.vocab.get_vocab_size("frames_labels")
if srl_eval_path is not None:
Expand Down
Loading

0 comments on commit e61bcb6

Please sign in to comment.