 text = "+text+"\n"     v=[(s,e) for s,e in w["offset_mapping"] if s<e]     for i,(s,e) in enumerate(v,1):       q=self.model.config.id2label[p[i,h[i]]].split("|")       u+="\t".join([str(i),text[s:e],"_",q[0],"_","|".join(q[1:-1]),str(h[i]),q[-1],"_","_" if i<len(v) and e<v[i][0] else "SpaceAfter=No"])+"\n"     return u+"\n"  nlp=UDgoeswith("KoichiYasuoka/roberta-base-japanese-aozora-ud-goeswith") print(nlp("全学年にわたって小学校の国語の教科書に挿し絵が用いられている")) ```  with [ufal.chu-liu-edmonds](https://pypi.org/project/ufal.chu-liu-edmonds/). Or without ufal.chu-liu-edmonds:  ``` from transformers import pipeline nlp=pipeline("universal-dependencies","KoichiYasuoka/roberta-base-japanese-aozora-ud-goeswith",trust_remote_code=True,aggregation_strategy="simple") print(nlp("全学年にわたって小学校の国語の教科書に挿し絵が用いられている")) ```  