def simplify_spacy_token(t):
    """Extract important information from spacy token into a simple dictionary"""
    def check_ent(tok):
        OUT_OF_ENT = 2
        NO_ENT_DEFINED = 0
        return tok.ent_iob != OUT_OF_ENT and tok.ent_iob != NO_ENT_DEFINED

    return {
        "token": t.text,
        "pos": t.pos_,
        "dep": t.dep_,
        "norm": t.norm_,
        "tag": t.tag_,
        "lemma": t.lemma_,
        "head": t.head,
        "is_ent": check_ent(t),
    }