zli12321 commited on
Commit
24f6212
·
verified ·
1 Parent(s): b5d2bcd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -121,7 +121,7 @@ Returns True if the candidate answer is a match of any of the gold answers.
121
  from qa_metrics.transformerMatcher import TransformerMatcher
122
 
123
  question = "Which movie is loosley based off the Brother Grimm's Iron Henry?"
124
- tm = TransformerMatcher("roberta-large")
125
  scores = tm.get_scores(reference_answer, candidate_answer, question)
126
  match_result = tm.transformer_match(reference_answer, candidate_answer, question)
127
  print("Score: %s; bert Match: %s" % (scores, match_result))
 
121
  from qa_metrics.transformerMatcher import TransformerMatcher
122
 
123
  question = "Which movie is loosley based off the Brother Grimm's Iron Henry?"
124
+ tm = TransformerMatcher("zli12321/answer_equivalence_roberta-large")
125
  scores = tm.get_scores(reference_answer, candidate_answer, question)
126
  match_result = tm.transformer_match(reference_answer, candidate_answer, question)
127
  print("Score: %s; bert Match: %s" % (scores, match_result))