MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / postprocess_text

Function postprocess_text

eval_heldout/science-world/fast_agent/ds_train.py:329–333  ·  view source on GitHub ↗
(preds, labels)

Source from the content-addressed store, hash-verified

327 metric = load_metric("sacrebleu")
328
329 def postprocess_text(preds, labels):
330 preds = [pred.strip() for pred in preds]
331 labels = [[label.strip()] for label in labels]
332
333 return preds, labels
334
335 def compute_metrics(eval_preds):
336 preds, labels = eval_preds

Callers 1

compute_metricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected