My code giving me only 52 % accuracy. Cn you fix fix this issue. I have uploaded my code the csv file on this link:
Chuk Norris Joke
hey @amanbh_123 ,
kindly dont replace ,
with empty space.
Just enclose respective sentences that contains ,
inside qoutes.
I hope this helps. .
Can you tell me how to enclose those sentences inside qoutes in a csv file. And I if don’t remove commas won’t it create error?
I would recommend to use pandas for this functioning as it automatically deals with this without any problem.
Other than that , if you want then what you can do is , check if a string contains comma and then do
s = f'{s}'
it will work , i hope so.