By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,661 Members | 1,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,661 IT Pros & Developers. It's quick & easy.

Dialog extraction from text files using Python and natural language toolkit

P: 2
I have used nltk.sent_tokenize(text) to get sentences from a huge text file.Now i have to extract dialogs.

I tried using regular expressions by passing a pattern to match quoted string but it did not work. please suggest ideas
Feb 6 '14 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 2.5K+
P: 2,851
I would suggest tweaking your regular expressions attempt. An example can be found here.
Feb 6 '14 #2

P: 2
Thanks,im trying it.
Feb 7 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.