Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KoichiYasuoka committed Jul 4, 2024
1 parent c697d34 commit c8797e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions demo/2024-07-05/lzh-qwen-upos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
Expand Down Expand Up @@ -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)"
]
}
Expand Down

0 comments on commit c8797e6

Please sign in to comment.