minor update (to prevent adding too much items)

This commit is contained in:
Miroslav Stampar 2010-12-25 10:42:36 +00:00
parent b472b96f92
commit c5c4aae3d5

View File

@ -37,9 +37,8 @@ def tableExists(tableFile):
logger.info(infoMsg) logger.info(infoMsg)
pageWords = getPageTextWordsSet(kb.originalPage) pageWords = getPageTextWordsSet(kb.originalPage)
for word in pageWords: for word in pageWords:
if len(word) > 2 and not word[0].isdigit() and word.lower() not in tableSet: word = word.lower()
tables.append(word.lower()) if len(word) > 2 and not word[0].isdigit() and word not in tableSet:
if word.lower() != word:
tables.append(word) tables.append(word)
count = [0] count = [0]