def _translate_excp(func):

    @six.wraps(func)
    def wrapper(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except (automaton_exceptions.InvalidState,
                automaton_exceptions.NotInitialized,
                automaton_exceptions.FrozenMachine,
                automaton_exceptions.NotFound) as e:
            raise excp.InvalidState(six.text_type(e))
        except automaton_exceptions.Duplicate as e:
            raise excp.Duplicate(six.text_type(e))

    return wrapper
Return a list of tuples of the form (word, tag)
dataset/ETHPy150Open openstack/ironic/ironic/common/fsm.py/_translate_excp--crossover with--dataset/ETHPy150Open sloria/TextBlob/textblob/base.py/BaseTagger.tag