Closed weallwegot closed 6 years ago
From @weAllWeGot on December 15, 2016 20:37
instead of throwing out short reviews, they should be concatenated with the sentence before and after them..
reviewLength = len(TextBlob(sentencesofreview).sentences) for sentenceIndex in xrange(reviewLength): currsentence = review(sentenceIndex) sentenceLength = len(currsentence) if(sentenceLength<20) and (sentenceIndex < reviewLength) and (sentenceIndex > 0): currsentence = review(sentenceIndex-1) + review(sentenceIndex) + review(sentenceIndex+1) elif(sentenceLength<20) and (sentenceIndex < reviewLength) and (sentenceIndex == 0): currsentence = review(sentenceIndex) + review(sentenceIndex+1) elif(sentenceLength<20) and (sentenceIndex == reviewLength) and (sentenceIndex > 0): currsentence = review(sentenceIndex-1) + review(sentenceIndex
_Copied from original issue: weAllWeGot/kbai_chatbot3#30
This issue was moved to weAllWeGot/omscs_chatbot#18
From @weAllWeGot on December 15, 2016 20:37
instead of throwing out short reviews, they should be concatenated with the sentence before and after them..
_Copied from original issue: weAllWeGot/kbai_chatbot3#30