def has_trimmed_or_unk(spl_snt, voc):
    """ Filter out sentences with trimmed words or words not in the voc
    spl_snt is a list of words """
    for word in spl_snt:
        if word not in voc.word2index:
            return True
