tomaarsen / SpanMarkerNER

SpanMarker for Named Entity Recognition
https://tomaarsen.github.io/SpanMarkerNER/
Apache License 2.0
401 stars 28 forks source link

Urgent : Example to use custom dataset from csv file #62

Open vatsaldin opened 5 months ago

vatsaldin commented 5 months ago

Hi @tomaarsen

Can you please provide some link/reference to custom dataset creation which can work with SpanMarker code?

Like from CSV file which has some data.

Please share as I am getting error as below while trying to run training code

image

the dataset looks like below

image

The csv file looks as below

image

image

Whereas in all standard examples, while we check dataset values ner_tags show mostly numbers 0,1 -- mapping with actual ner_tags in form of id so I think I am missing that step however some code example might be helpful.

Thanks