Hi @ines
I am following this to load the pre-annotated data.
Does Prodigy load pre-annotated data? - Prodigy Support
the data format I have pushed in db is same as mentioned in the link.
"{
"text":"Pumped 18 M3 1,45 SG EZ spot pill, displaced same with 18 M3 1,4 SG mud. Spotted 10,3 M3 around BHA, left 7,7 M3 inside pipe.",
"spans":[
{"start":24,"end":33,"token_start":6,"token_end":7,"label":"EQUIPMENT"},
{"start":120,"end":124,"token_start":28,"token_end":28,"label":"DEVICE"}
]
}"
- Since ner.batch-train is depreciated I am using ner train.
- and ner.teach as:
Blockquote
prodigy ner.teach scrapinghub_golden trained_models/scrapinghub_model_v1/ scrapinghub_goldendata.jsonl --label CAST_CREW,PERSON,EXECUTIVE_NAME,CONTENTNAME,COMPANY,DATE,LOCATION,LICENSE_TERR,MONEY,COUNTRY
Blockquote
And getting KeyError: 'score' for this.
had a look on this, but eliminating spans from .jsonl will not bring my pre-annotations.
- I had also tried using:
PRODIGY_PORT=5000 prodigy ner.manual scrapinghub_golden trained_models/scrapinghub_model_v1/ scrapinghub_goldendata.jsonl --label CAST_CREW,PERSON,EXECUTIVE_NAME,CONTENTNAME,CARDINAL,ORDINAL,COMPANY,DATE,LOCATION,DEAL_VAL,LICENSE_TERR,COUNTRY,MONEY,BOOK_NAME,WORKING_TITLE
this generates "No available task" page.
Could you please help?
BR,
K