You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"-c", "--cand", type=str, required=True, help="candidate (system outputs) file path or a string"
35
35
)
36
+
parser.add_argument("--no_punc", action="store_true", help="exclude punctuation-only tokens in candidate and reference")
37
+
parser.add_argument(
38
+
"--sources", type=str, required=True, help="a list of a source for each candidate, to be concatenated"
39
+
"with the candidates but removed from the similarity computation"
40
+
)
41
+
parser.add_argument("--chunk_overlap", type=float, default=0.5, help="how much overlap between chunks, when the input is longer than the models' max length")
print('When providing the context: "find the index of target in this.elements"')
64
-
pred_results=code_bert_score.score(cands=predictions, refs=refs, no_punc=True, lang='java', idf=java_idf, sources=['find the index of target in this.elements'] *2)
65
-
print_results(predictions, refs, pred_results)
63
+
# print('When providing the context: "find the index of target in this.elements"')
64
+
# pred_results = code_bert_score.score(cands=predictions, refs=refs, no_punc=True, lang='java', idf=java_idf, sources=['find the index of target in this.elements'] * 2)
0 commit comments