def _add_pos1 ( token ) : result = token . copy ( ) result [ 'pos1' ] = _POSMAP [ token [ 'pos' ] . split ( "(" ) [ 0 ] ] return result
how to give object in tokenization in python 3
Adds a pos1 element to a frog token .
def _add_pos1(token):
    """
    Adds a 'pos1' element to a frog token.
    """
    result = token.copy()
    result['pos1'] = _POSMAP[token['pos'].split("(")[0]]
    return result