diff --git a/demo/2024-07-05/lzh-qwen-upos.ipynb b/demo/2024-07-05/lzh-qwen-upos.ipynb index cc90d87..27edf39 100644 --- a/demo/2024-07-05/lzh-qwen-upos.ipynb +++ b/demo/2024-07-05/lzh-qwen-upos.ipynb @@ -48,7 +48,6 @@ "nlp=TCP(model=mdl,tokenizer=tkz)\n", "txt=\"四十而不惑\"\n", "doc=\"\\n\".join(\"\\t\".join([str(i+1),txt[t[\"start\"]:t[\"end\"]],\"_\",t[\"entity\"]]+[\"_\"]*5+[\"SpaceAfter=No\"]) for i,t in enumerate(nlp(txt)))+\"\\n\\n\"\n", - "import deplacy\n", "deplacy.serve(doc,port=None)" ] }, @@ -104,7 +103,6 @@ "nlp=BFP(model=mdl,tokenizer=tkz)\n", "txt=\"四十而不惑\"\n", "doc=\"\\n\".join(\"\\t\".join([str(i+1),txt[t[\"start\"]:t[\"end\"]],\"_\",t[\"entity\"]]+[\"_\"]*5+[\"SpaceAfter=No\"]) for i,t in enumerate(nlp(txt)))+\"\\n\\n\"\n", - "import deplacy\n", "deplacy.serve(doc,port=None)" ] }