def map_tag(source, target, source_tag):
 if (target == u'universal'):
  if (source == u'wsj'):
   source = u'en-ptb'
  if (source == u'brown'):
   source = u'en-brown'
 return tagset_mapping(source, target)[source_tag]

def map_tag ( source , target , source_tag ) : if ( target == u'universal' ) : if ( source == u'wsj' ) : source = u'en-ptb' if ( source == u'brown' ) : source = u'en-brown' return tagset_mapping ( source , target ) [ source_tag ]
maps the tag from the source tagset to the target tagset .