Skip to content

Commit

Permalink
[#42] update stance labels in postprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
atenzer committed Feb 15, 2022
1 parent b330dc0 commit 9f8f730
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions demo_api/dual_bert/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
model.eval()

examples = [
[
"#4U9525: Robin names Andreas Lubitz as the copilot in the flight deck who crashed the aircraft.",
"@thatjohn @mschenk",
"@thatjohn Have they named the pilot?",
],
[
"#4U9525: Robin names Andreas Lubitz as the copilot in the flight deck who crashed the aircraft.",
"@thatjohn @mschenk",
Expand Down
2 changes: 1 addition & 1 deletion sgnlp/models/dual_bert/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __call__(self, model_outputs: [DualBertModelOutput], stance_label_mask):
temp_2.append(self.stance_labels[stance_label_idx[i][j]])
else:
break
stance_labels.append(temp_2)
stance_labels.append(temp_2[1:]) #first post should not have a stance label

return {
"rumor_labels": rumor_labels,
Expand Down

0 comments on commit 9f8f730

Please sign in to comment.