Closed anuraagbhavaraju closed 2 years ago
Current: _stext(filteredoutput.reviewText)
Proposed Change: def compile_text(df,text_column): compiled_text='' for text in df[text_column].fillna('NA.'): if text!='NA.' and text!='NA': compiled_text=compiled_text+' '+text return compiled_text
compiled_text=compile_text(filtered_output[:1000],'reviewText') _stext(compiledtext)
@sayantikabanik can we try the proposed approach to pre-process reviewText/pros/cons column data before summarizing it
Feel free to make the changes and raise a PR
Current: _stext(filteredoutput.reviewText)
Proposed Change: def compile_text(df,text_column): compiled_text='' for text in df[text_column].fillna('NA.'): if text!='NA.' and text!='NA': compiled_text=compiled_text+' '+text return compiled_text
compiled_text=compile_text(filtered_output[:1000],'reviewText') _stext(compiledtext)