Skip to content
Discussion options

You must be logged in to vote

Hi, this isn't the right conversion script for your data. You're setting doc.cats instead of doc.ents in the line doc.cats = line["annotations"].

See an example for entities here (you'll have to adjust it to read JSONL instead of JSON and to use the correct dict keys for the spans/offsets):

https://github.com/explosion/projects/blob/6e2a4ff98c2cfcda93431ffc9361470795609592/pipelines/ner_demo/scripts/convert.py

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer
2 participants
Converted from issue

This discussion was converted from issue #8469 on June 23, 2021 12:10.