Loading json output into displacy or spacy #43
|
I've tested your annotation tool and it looks great. So I exported my annotations to JSON. Now I want to figure out how to import this JSON into Spacy or Displacy. In a separate discussion topic you link a user to https://spacy.io/api/data-formats#json-input. But that page and section are very abstract. Can you provide or point us to some sample code? Thanks! |
Answered by
MikhailKlemin
Jun 18, 2022
Replies: 1 comment 4 replies
|
@jkurlandski01 You will need to convert the JSON to the DocBin format using the command line as mentioned in the above link. (relevant section below) Then load the docbin file using something like this: |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

hey, I made quick python script to convert output directly to docbin, so there no need to spacy convert. Tested, and it works.