guihu commited on
Commit
db490b1
1 Parent(s): b86f54f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -11,7 +11,7 @@ language:
11
 
12
  This model is related to the paper **"FactSpotter: Evaluating the Factual Faithfulness of Graph-to-Text Generation"**.
13
 
14
- Given a triple of format "subject | predicate | object" and a text, the model determines if the triple is present in the text.
15
 
16
  Different from the paper using ELECTRA, this model is finetuned on DeBERTaV3.
17
 
@@ -37,8 +37,8 @@ model = AutoModelForSequenceClassification.from_pretrained("Inria-CEDAR/FactSpot
37
  model.to(torch.device("cuda"))
38
 
39
  # pairs of texts (as premises) and triples (as hypotheses)
40
- cls_texts = [("the aarhus is the airport of aarhus, denmark", "aarhus airport | city served | aarhus, denmark"),
41
- ("aarhus airport is 25.0 metres above the sea level", "aarhus airport | elevation above the sea level | 1174")]
42
  cls_scores = sentence_cls_score(cls_texts, model, tokenizer)
43
  # Dimensions: 0-entailment, 1-neutral, 2-contradiction
44
  label_names = ["entailment", "neutral", "contradiction"]
 
11
 
12
  This model is related to the paper **"FactSpotter: Evaluating the Factual Faithfulness of Graph-to-Text Generation"**.
13
 
14
+ Given a triple of format "subject, predicate, object" and a text, the model determines if the triple is present in the text.
15
 
16
  Different from the paper using ELECTRA, this model is finetuned on DeBERTaV3.
17
 
 
37
  model.to(torch.device("cuda"))
38
 
39
  # pairs of texts (as premises) and triples (as hypotheses)
40
+ cls_texts = [("the aarhus is the airport of aarhus, denmark", "aarhus airport, city served, aarhus, denmark"),
41
+ ("aarhus airport is 25.0 metres above the sea level", "aarhus airport, elevation above the sea level, 1174")]
42
  cls_scores = sentence_cls_score(cls_texts, model, tokenizer)
43
  # Dimensions: 0-entailment, 1-neutral, 2-contradiction
44
  label_names = ["entailment", "neutral", "contradiction"]