def parole2universal(token, tag):
 if (tag == 'CS'):
  return (token, CONJ)
 if (tag == 'DP'):
  return (token, DET)
 if (tag in ('P0', 'PD', 'PI', 'PP', 'PR', 'PT', 'PX')):
  return (token, PRON)
 return penntreebank2universal(*parole2penntreebank(token, tag))

def parole2universal ( token , tag ) : if ( tag == 'CS' ) : return ( token , CONJ ) if ( tag == 'DP' ) : return ( token , DET ) if ( tag in ( 'P0' , 'PD' , 'PI' , 'PP' , 'PR' , 'PT' , 'PX' ) ) : return ( token , PRON ) return penntreebank2universal ( * parole2penntreebank ( token , tag ) )
converts a parole tag to a universal tag .