def toDicts(articles):
 uArticles = toUnicode(articles)
 return (dict([(x, x) for x in articles]), dict([(x, x) for x in uArticles]))

def toDicts ( articles ) : uArticles = toUnicode ( articles ) return ( dict ( [ ( x , x ) for x in articles ] ) , dict ( [ ( x , x ) for x in uArticles ] ) )
given a list of utf-8 encoded articles .