我正在尝试在google colab中运行一个Dispatience服务器:
from spacy import displacy
frasesin=nlp("Yo quisiera saber porqué el jugador hizo tan mala jugada")
dep=[]
for x in range(1,len(frasesin)):
dep.append([ frasesin[x].text, frasesin[x].dep_, frasesin[x].head.text])
dep
displacy.serve(frasesin, style="dep")
运行良好:
^{pr2}$但是我如何访问colab中的这个端口来查看结果呢?在
我也有同样的问题。 试试这个:http://localhost:5000/ 它对我有用
使用不高兴。渲染而不是.serve,并设置jupyter=True
相关问题 更多 >
编程相关推荐