Performance 如何加速无扫描模块?

Performance 如何加速无扫描模块?,performance,python-import,theano,theano.scan,tuna,Performance,Python Import,Theano,Theano.scan,Tuna,我正在运行以下python脚本来对一些文本进行标点: from punctuator import Punctuator from datetime import datetime import sys p = Punctuator('Demo-Europarl-EN.pcl') startTime = datetime.now() print(p.punctuate('the flower the tiger and the rider went to the sea they spent

我正在运行以下python脚本来对一些文本进行标点:

from punctuator import Punctuator
from datetime import datetime
import sys

p = Punctuator('Demo-Europarl-EN.pcl')

startTime = datetime.now()
print(p.punctuate('the flower the tiger and the rider went to the sea they spent a nice day together they built a sand statue'))
print(datetime.now() - startTime, file=sys.stderr)
脚本在此时间内无流运行:0:00:00.097005

然而,我必须等很长时间才能结束。下面是脚本导入报告的屏幕截图。瓶颈之一是编号扫描模块

您能建议如何减少NO.scan\u模块花费的时间吗