Repository navigation
Create Example object for Classification with SPacy 3.x #9850
Answered
by
DuyguA
nicolalandro
asked this question in
Help: Coding & Implementations
|
How to create correctly the Example? I try with this code: But it get the following error: How I should create it? |
Answered by
DuyguA
Dec 13, 2021
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: |
4 replies
Answer selected by
svlandeg
|
I think the issue is excluding the tok2vec pipeline component, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: