Create Example object for Classification with SPacy 3.x #9850
-
How to create correctly the Example? I try with this code:
But it get the following error:
How I should create it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Thanks for your question! There should be one tag per token, hence Doc length and annotation length should match. Here's an example, there are 2 tokens in my Doc:
|
Beta Was this translation helpful? Give feedback.
-
I think the issue is excluding the tok2vec pipeline component,
|
Beta Was this translation helpful? Give feedback.
Thanks for your question!
There should be one tag per token, hence Doc length and annotation length should match. Here's an example, there are 2 tokens in my Doc: