I try to run NER in Indonesian Language
I've read some resources, they said that the BERT model has positional embeddings only for first 512 subtokens. So, the model can't work with longer sequences. I can't truncate text to 512 as there will be loss of information in that case.
There is also a model for long sequences, the name is 'Longformers'. But I can't use this model because the entity from deeppavlov is more complete than it.
Also I found sliding window approach at Pytorch error "RuntimeError: index out of range: Tried to access index 512 out of table with 511 rows", but I dont know how to implement it at NER usecase.
Could you please help how can I handle this?
The input is pandas.core.series.Series 'df'