guihu commited on
Commit
ad2066e
1 Parent(s): 729447b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -30,8 +30,10 @@ def sentence_cls_score(input_strings, predicate_cls_model, predicate_cls_tokeniz
30
  softmax_cls_output = torch.softmax(prev_cls_output.logits, dim=1, )
31
  return softmax_cls_output
32
 
 
33
  tokenizer = AutoTokenizer.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Large")
34
  model = AutoModelForSequenceClassification.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Large")
 
35
 
36
  # pairs of texts (as premises) and triples (as hypotheses)
37
  cls_texts = [("the aarhus is the airport of aarhus, denmark", "aarhus airport | city served | aarhus, denmark"),
 
30
  softmax_cls_output = torch.softmax(prev_cls_output.logits, dim=1, )
31
  return softmax_cls_output
32
 
33
+
34
  tokenizer = AutoTokenizer.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Large")
35
  model = AutoModelForSequenceClassification.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Large")
36
+ model.to(torch.device("cuda"))
37
 
38
  # pairs of texts (as premises) and triples (as hypotheses)
39
  cls_texts = [("the aarhus is the airport of aarhus, denmark", "aarhus airport | city served | aarhus, denmark"),