def bagOfWords_MultinomialNB(txtFile):
    total_words = 0
    reviewFile = txtFile
    with open(reviewFile, 'r', encoding='utf8') as file:
        txt = file.read().replace('\n', '')
    reviewList = txt.split('<br /><br />')
    for review in reviewList:
        review = re.sub('[^\\w\\s]', '', review)
    vocabTokens = createVocabTokens(reviewList)
    numReviews = len(reviewList)
    vocabDict = dict.fromkeys(vocabTokens, 0)
    for i in range(len(reviewList)):
        words = extractCleanWords(reviewList[i])
        for word in words:
            vocabDict[word] += 1
            total_words += 1
    return (vocabDict, total_words, numReviews)
def bagOfWords_MultinomialNB(txtFile):
    total_words = 0
    reviewFile = txtFile
    with open(reviewFile, 'r', encoding='utf8') as file:
        txt = file.read().replace('\n', )
    reviewList = txt.split('<br /><br />')
    for review in reviewList:
        review = re.sub('[^\\w\\s]', , review)
    vocabTokens = createVocabTokens(reviewList)
    numReviews = len(reviewList)
    vocabDict = dict.fromkeys(vocabTokens, 0)
    for i in range(len(reviewList)):
        words = extractCleanWords(reviewList[i])
        for word in words:
            vocabDict[word] += 1
            total_words += 1
    return (vocabDict, total_words, numReviews)