def getPageWordSet(page):
 retVal = set()
 if isinstance(page, unicode):
  _ = getFilteredPageContent(page)
  retVal = set(re.findall('\\w+', _))
 return retVal

def getPageWordSet ( page ) : retVal = set ( ) if isinstance ( page , unicode ) : _ = getFilteredPageContent ( page ) retVal = set ( re . findall ( '\\w+' , _ ) ) return retVal
returns word set used in page content .