Running the following commands
prodigy ner.manual ner_data2 blank:en ${xseed}/prodigy/test/data2.csv --label DISEASE,DRUG
prodigy ner.manual ner_data1 blank:en ${xseed}/prodigy/test/data1.csv --label DISEASE,DRUG
prodigy ner.manual ner_data0 blank:en ${xseed}/prodigy/test/data0.csv --label DISEASE,DRUG
The following example csv file fails
cat data2.csv
Text,Label,Meta
This is a sentence.,POSITIVE,0
This is another sentence.,NEGATIVE,0.1
when the browser starts up.
✘ Invalid task format for view ID 'ner_manual'
meta value is not a valid dict
{'text': 'This is a sentence.', 'label': 'POSITIVE', 'meta': '0', '_input_hash': 1061759252, '_task_hash': -1161079259, '_is_binary': False, 'tokens': [{'text': 'This', 'start': 0, 'end': 4, 'id': 0, 'ws': True}, {'text': 'is', 'start': 5, 'end': 7, 'id': 1, 'ws': True}, {'text': 'a', 'start': 8, 'end': 9, 'id': 2, 'ws': True}, {'text': 'sentence', 'start': 10, 'end': 18, 'id': 3, 'ws': False}, {'text': '.', 'start': 18, 'end': 19, 'id': 4, 'ws': False}]}
NO ISSSUES with data1.csv
cat data1.csv
Text,Label,Meta
This is a sentence.,POSITIVE,
This is another sentence.,NEGATIVE,
NO ISSSUES with data0.csv
Text,Label,Meta
This is a sentence.,,
This is another sentence.,,
What are valid values for Label and Meta? I am doing NER.
Could you put some examples of valid csv files here
prodigy-recipes/example-datasets at master · explosion/prodigy-recipes (github.com)