guihu commited on
Commit
7869c42
1 Parent(s): 53c0c2a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -30,6 +30,7 @@ def sentence_cls_score(input_strings, predicate_cls_model, predicate_cls_tokeniz
30
  return softmax_cls_output
31
  tokenizer = AutoTokenizer.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Small")
32
  model = AutoModelForSequenceClassification.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Small")
 
33
  # pairs of texts (as premises) and triples (as hypotheses)
34
  cls_texts = [("the aarhus is the airport of aarhus, denmark", "aarhus airport | city served | aarhus, denmark"),
35
  ("aarhus airport is 25.0 metres above the sea level", "aarhus airport | elevation above the sea level | 1174")]
 
30
  return softmax_cls_output
31
  tokenizer = AutoTokenizer.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Small")
32
  model = AutoModelForSequenceClassification.from_pretrained("Inria-CEDAR/FactSpotter-DeBERTaV3-Small")
33
+ model.to(torch.device("cuda"))
34
  # pairs of texts (as premises) and triples (as hypotheses)
35
  cls_texts = [("the aarhus is the airport of aarhus, denmark", "aarhus airport | city served | aarhus, denmark"),
36
  ("aarhus airport is 25.0 metres above the sea level", "aarhus airport | elevation above the sea level | 1174")]