How to convert .spacy training / testing data and use inside existing python code #10717
-
Hi, I have an existing code in Python that worked with SpaCy v2 by using JSON format datasets:
Now that I converted the JSON files to .spacy binary files, this code is no longer working.
But this is returning an error:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @milos-cuculovic , The second argument, Example(nlp.make_doc(doc.text), doc) Another thing to keep in mind is that you might run into some problems if the vocabs aren't the same, so just be aware of that. |
Beta Was this translation helpful? Give feedback.
-
Thanks @ljvmiranda921 , I was able to solve it by using this code:
|
Beta Was this translation helpful? Give feedback.
Thanks @ljvmiranda921 , I was able to solve it by using this code: