我猜我认为这更多的是看后面比前面一看:
import re
# article_content contains all the article's paragraphs
# in this case, a single paragraph.
article_content = ["""Recognizing the rising opportunity Jerusalem Venture Partners opened up their Cyber Labs incubator, giving a home to many of the city’s promising young companies. International corporates like EMC have also established major centers in the park, leading the way for others to follow! On a visit last June, the park had already grown to two buildings with the ground being broken for the construction of more in the near future. This is really interesting! What do you think?"""]
split_article_content = []
for element in article_content:
split_article_content += re.split("(?<=[.!?])\s+", element)
print(*split_article_content, sep='\n\n')
输出
% python3 test.py
Recognizing the rising opportunity Jerusalem Venture Partners opened up their Cyber Labs incubator, giving a home to many of the city’s promising young companies.
International corporates like EMC have also established major centers in the park, leading the way for others to follow!
On a visit last June, the park had already grown to two buildings with the ground being broken for the construction of more in the near future.
This is really interesting!
What do you think?
%