How to custom the entity name when using duckling to extract time entity

the code below is from duckling_http_extractor.py.

def convert_duckling_format_to_rasa(matches):
    extracted = []

    for match in matches:
        value = extract_value(match)
        entity = {
            "start": match["start"],
            "end": match["end"],
            "text": match.get("body", match.get("text", None)),
            "value": value,
            "confidence": 1.0,
            "additional_info": match["value"],
            "entity": match["dim"],
        }

        extracted.append(entity)

    return extracted

how to set entity name rather than match[“dim”]?

Hi, is there a solution? Thanks :slight_smile: