Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocacciola committed May 15, 2024
1 parent 5c652e1 commit c8d3618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion donut/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def token2json_with_confs(
]
tokens = tokens.replace(start_token, "")
tksplit = [tk for tk in tokens.split(delim) if tk]
print(len(tksplit), len(confs), len(idxs))
print(tokens, tksplit, idxs, len(tksplit), len(confs), len(idxs))
assert len(tksplit) == len(confs) == len(idxs)
else:
end_token = end_token.group()
Expand Down

0 comments on commit c8d3618

Please sign in to comment.