Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KoichiYasuoka committed Mar 30, 2024
1 parent 21ce79e commit cc87822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deplacy/deplacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def to_conllu(doc,RtoL=False):
return str(doc)+"\n"
elif s.find("list")==8:
if str(type(doc[0])).find("combo")==8:
from combo.data import sentence2conllu
return "".join(sentence2conllu(s,False).serialize() for s in doc)
from combo.data.api import sentence2conllu,serialize_token_list
return "".join(serialize_token_list(sentence2conllu(s,False)) for s in doc)
return "".join("".join(str(t)+"\n" for t in s)+"\n" for s in doc)
elif s.find("dict")==8 and "sentences" in doc:
from trankit.utils.conll import CoNLL
Expand Down

0 comments on commit cc87822

Please sign in to comment.