sgnlp.models.span_extraction.eval.evaluate

evaluate(cfg: sgnlp.models.span_extraction.data_class.RecconSpanExtractionArguments)[source]

Method to evaluate a trained RecconSpanExtractionModel.

Parameters

config (RecconSpanExtractionArguments) – RecconSpanExtractionArguments config load from config file.

Example:

import json
from sgnlp.models.span_extraction import evaluate
from sgnlp.models.span_extraction.utils import parse_args_and_load_config

cfg = parse_args_and_load_config('config/span_extraction_config.json')
evaluate(cfg)