def wotan2penntreebank(token, tag):
 for (k, v) in wotan.items():
  if tag.startswith(k):
   for (a, b) in v:
    if (a in tag):
     return (token, b)
 return (token, tag)

def wotan2penntreebank ( token , tag ) : for ( k , v ) in wotan . items ( ) : if tag . startswith ( k ) : for ( a , b ) in v : if ( a in tag ) : return ( token , b ) return ( token , tag )
converts a wotan tag to a penn treebank ii tag .