minor update

This commit is contained in:
Miroslav Stampar 2010-12-25 09:43:14 +00:00
parent 272476773f
commit ea7ba19f6b

View File

@ -33,12 +33,13 @@ def tableExists(tableFile):
infoMsg = "checking table existence using items from '%s'" % tableFile infoMsg = "checking table existence using items from '%s'" % tableFile
logger.info(infoMsg) logger.info(infoMsg)
infoMsg = "adding words used on web page to check list" infoMsg = "adding words used on web page to name check list"
logger.info(infoMsg) logger.info(infoMsg)
pageWords = getPageTextWordsSet(kb.originalPage) pageWords = getPageTextWordsSet(kb.originalPage)
for word in pageWords: for word in pageWords:
word = word.lower() if len(word) > 2 and not word[0].isdigit() and word.lower() not in tableSet:
if len(word) > 1 and not word[0].isdigit() and word not in tableSet: tables.append(word.lower())
if word.lower() != word:
tables.append(word) tables.append(word)
count = [0] count = [0]