2004年03月12日 星期五 08:41
I want to split a long sentence, using the punctuations as the delimitors like so: clauses = re.split(r',|,|。|:|》|《|||!|、|;|; |\(|\)| |\(|\)|\?', chunks[i]) I have problem with the book title mark 《》, whenever I use it in the regular expression above, I will have problem even if I don't have the book title mark in the input sentence. If I remove the book mark title from the regular expression, then it works fine. Any idea? __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com
Zeuux © 2024
京ICP备05028076号