@staticmethod
def _create_entities(parsed_entities, sidx, eidx):
    entities = []
    for (k, vs) in parsed_entities.items():
        if (not isinstance(vs, list)):
            vs = [vs]
        for value in vs:
            entities.append({'entity': k, 'start': sidx, 'end': eidx, 'value': value})
    return entities
@staticmethod
def _create_entities(parsed_entities, sidx, eidx):
    entities = []
    for (k, vs) in parsed_entities.items():
        if (not isinstance(vs, list)):
            vs = [vs]
        for value in vs:
            entities.append({'entity': k, 'start': sidx, 'end': eidx, 'value': value})
    return entities