File tree Expand file tree Collapse file tree 2 files changed +0
-43
lines changed Expand file tree Collapse file tree 2 files changed +0
-43
lines changed Original file line number Diff line number Diff line change 5757 " # graphviz.Source(deplacy.dot(doc))"
5858 ]
5959 },
60- {
61- "cell_type" :" markdown" ,
62- "metadata" :{ "colab_type" :" text" },
63- "source" :[
64- " ## 於[GuwenCOMBO](https://github.com/KoichiYasuoka/GuwenCOMBO)\n "
65- ]
66- },
67- {
68- "cell_type" :" code" ,
69- "metadata" :{ "colab_type" :" code" },
70- "source" :[
71- " !pip install deplacy guwencombo 'google-cloud-storage>=1.32.0'\n " ,
72- " !python -m spacy download en_core_web_sm\n " ,
73- " import guwencombo\n " ,
74- " nlp=guwencombo.load(Danku=True)\n " ,
75- " doc=nlp(\" 瓜田不納履李下不正冠\" )\n " ,
76- " import deplacy\n " ,
77- " deplacy.render(doc)\n " ,
78- " deplacy.serve(doc,port=None)\n " ,
79- " # import graphviz\n " ,
80- " # graphviz.Source(deplacy.dot(doc))"
81- ]
82- },
8360 {
8461 "cell_type" :" markdown" ,
8562 "metadata" :{ "colab_type" :" text" },
Original file line number Diff line number Diff line change 4040冠 NOUN < ╝ obj
4141```
4242
43- ## 於[ GuwenCOMBO] ( https://github.com/KoichiYasuoka/GuwenCOMBO )
44-
45- ``` py
46- >> > import guwencombo
47- >> > nlp= guwencombo.load(Danku = True )
48- >> > doc= nlp(" 瓜田不納履李下不正冠" )
49- >> > import deplacy
50- >> > deplacy.render(doc)
51- 瓜 NOUN < ╗ nmod
52- 田 NOUN ═╝< ══╗ nsubj
53- 不 ADV < ══╗ ║ advmod
54- 納 VERB ═╗═╝═╝ root
55- 履 NOUN < ╝ obj
56- 李 PROPN ═╗< ══╗ nsubj
57- 下 NOUN < ╝ ║ flat
58- 不 ADV < ══╗ ║ advmod
59- 正 VERB ═╗═╝═╝ root
60- 冠 NOUN < ╝ obj
61- ```
62-
6343## 於[ UD-Chinese] ( https://pypi.org/project/udchinese )
6444
6545``` py
You can’t perform that action at this time.
0 commit comments