Skip to content
Discussion options

You must be logged in to vote

The labels are normally read in from the docs train.spacy under token.tag_. Can you load the file and check that the docs are tagged?

import spacy
from spacy.tokens import DocBin

nlp = spacy.blank("en")
db = DocBin().from_disk("train.spacy")
for doc in db.get_docs(nlp.vocab):
    assert doc.has_annotation("TAG")
    # or just inspect the tags
    for token in doc:
        print(token.text, token.tag_)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
Comment options

You must be logged in to vote
2 replies
@polm
Comment options

@Tayaress51
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / pipeline Feature: Processing pipeline and components feat / config Feature: Training config
4 participants
Converted from issue

This discussion was converted from issue #7595 on March 30, 2021 07:39.