def get_description(model_class):
    """
    Returns the model's description from the docstring.
    """
    return model_class.__doc__.split("# Parameters")[0].strip()
Returns the model's description from the docstring.
allennlp/common/model_card.py