def evaluate(): """Evaluate on a corpus.""" model = load_model() return run_evaluation(model)
def evaluate(): """Evaluate a trained majority vote model.""" model = load_model() return run_evaluation(lambda sents: make_preds(model, sents))
def evaluate(): """Evaluate on a corpus.""" model = SumBasic() return run_evaluation(model)
def evaluate(): """Evaluate on a corpus.""" model = OracleSummarizer() return run_evaluation(model)
def evaluate(): """Evaluate a trained neural tagger.""" field_odict = load_fields() model = load_model(field_odict) model.eval() return run_evaluation(lambda sents: make_preds(field_odict, model, sents))
def evaluate(): """Evaluate on a corpus.""" model = Lead() return run_evaluation(model)