Best Answer · By JanBask Data Science Expert
Answered on Dec 20, 2019


The output is given below

To avoid this issue, the Term Document Matrix or the TDM should get rid of too much sparsity. By adding the below code will fix the problem.

Now the predicted output is given below.
