def process_article(args):
 (text, lemmatize, title, pageid) = args
 text = filter_wiki(text)
 if lemmatize:
  result = utils.lemmatize(text)
 else:
  result = tokenize(text)
 return (result, title, pageid)

def process_article ( args ) : ( text , lemmatize , title , pageid ) = args text = filter_wiki ( text ) if lemmatize : result = utils . lemmatize ( text ) else : result = tokenize ( text ) return ( result , title , pageid )
parse a wikipedia article .