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! |
Beta Was this translation helpful? Give feedback.
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: |
Beta Was this translation helpful? Give feedback.
hey, I made quick python script to convert output directly to docbin, so there no need to spacy convert. Tested, and it works.