Skip to content
Discussion options

You must be logged in to vote

The problem is that these docs are coming back with different vocabs:

docs_per_level = [list(conll_ner_to_docs(iob, model=nlp)) for iob in iob_per_level]

I haven't tested this, but I think you can fix it by providing a single model (so they all use the same model vocab) to use for all the conversions:

nlp = spacy.blank("en")  # or some appropriate blank model
docs_per_level = [list(conll_ner_to_docs(iob, model=nlp)) for iob in iob_per_level]

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@adrianeboyd
Comment options

@egumasa
Comment options

@egumasa
Comment options

@adrianeboyd
Comment options

@egumasa
Comment options

Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / training Feature: Training utils, Example, Corpus and converters
2 participants