Skip to content

Commit

Permalink
update demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibing624 committed Apr 6, 2021
1 parent cbd6dcc commit af26796
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pycorrector/electra/predict_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def detect_error_demo():
fake_tokens = tokenizer.tokenize(sentence)
print(fake_tokens)
fake_inputs = tokenizer.encode(sentence, return_tensors="pt")

discriminator_outputs = discriminator(fake_inputs)
predictions = torch.round((torch.sign(discriminator_outputs[0]) + 1) / 2)

Expand Down

0 comments on commit af26796

Please sign in to comment.