rnlpudpipe

udpipe_accuracy() always gives the same error " The CoNLL-U line '....' does not contain 10 columns!"


This is regarding the R package udpipe for NLP. I am using it to tokenize, tag, lemmatize and perform dependency parsing on text files.

I am not sure which template the conllu file is needed for the function

udpipe_accuracy

I loaded a CSV file of 10 columns but the error persists.

I could not search any questions on SO on this package and also there is no tag of udpipe.


Solution

  • udpipe_accuracy is used in combination with udpipe_train. If you trained a custom udpipe model with udpipe_train based on data in conllu format, you can see how good it is by using udpipe_accuracy on hold-out conllu data which was not used to build the model.