How can I access a language code for Urdu?

120 Views Asked by At

I am retraining a POS tag model of STANZA library. After updating the CONLLU files (dev,test, train), when I try to prepare the script by

python3 -m stanza.utils.datasets.prepare_pos_treebank UD_URDU-UDTB

It gives the following error

raise ValueError("Unable to find language code for %s" % lang)
ValueError: Unable to find language code for URDU

How can I fix it

1

There are 1 best solutions below

0
John On

It expects capitalization to be standard. Perhaps that is something we can update. Try UD_Urdu-UDTB