Skip to content

Commit 5206714

Browse files
committed
tensorflow_serving deployment demo for https://bbs.hankcs.com/t/topic/2957
1 parent 6db989e commit 5206714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/demo/zh/demo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import hanlp
1010
from hanlp.common.component import KerasComponent
1111

12-
tagger: KerasComponent = hanlp.load(hanlp.pretrained.pos.CTB5_POS_RNN)
12+
tagger: KerasComponent = hanlp.load(hanlp.pretrained.pos.CTB5_POS_RNN, transform_only=True)
1313
transform = tagger.transform
1414
del tagger
1515

0 commit comments

Comments
 (0)