Re: Synax error in string assignment

2018-08-18 Thread Chris Angelico
On Sun, Aug 19, 2018 at 2:47 PM, Sharan Basappa wrote: > I am not sure what the issue is with the 2nd file that assigns string to text > variable. > > Here is the code: > # -*- coding: utf-8 -*- > text = “this’s a sent tokenize test. this is sent two. is this sent three? > sent 4 is cool! Now it

Synax error in string assignment

2018-08-18 Thread Sharan Basappa
I am not sure what the issue is with the 2nd file that assigns string to text variable. Here is the code: # -*- coding: utf-8 -*- text = “this’s a sent tokenize test. this is sent two. is this sent three? sent 4 is cool! Now it’s your turn.” from nltk.tokenize import sent_tokenize sent_tokenize_