From 5d8385508877fb5831ef4478c3053450d0a12c72 Mon Sep 17 00:00:00 2001 From: Linker Lin Date: Sun, 28 Jul 2013 00:12:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=A3=80=E6=B5=8BCPU?= =?UTF-8?q?=E6=95=B0=E7=9B=AE=EF=BC=8C=E5=90=AF=E5=8A=A8=E5=90=88=E9=80=82?= =?UTF-8?q?=E6=95=B0=E7=9B=AE=E7=9A=84=E8=BF=9B=E7=A8=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/parallel/test_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test_file.py b/test/parallel/test_file.py index 0a5f0fe..e10d1a2 100644 --- a/test/parallel/test_file.py +++ b/test/parallel/test_file.py @@ -3,8 +3,8 @@ import sys,time import sys sys.path.append("../../") import jieba -import multiprocessing -jieba.enable_parallel(multiprocessing.cpu_count()) + +jieba.enable_parallel() url = sys.argv[1] content = open(url,"rb").read()