def from_keywords_format(keywords: list) -> dict:
    """Convert a list of keywords in a specific format into a dictionary.

    Args:
        keywords: A list in the format specified in wrapper/output_format.py

    Returns:
        The keywords as a dictionary with the keyword as key and its counter as
        value.
    """
    keywords_dict = {}
    for keyword in keywords:
        keywords_dict[keyword.get("text", "Unknown")] = keyword.get("value", 0)
    return keywords_dict