Force PoS mapping to UD tag set
I'm trying to train the PoS tagger in spaCy for Norwegian, and I see in the train_tagger.py script that one has to include a mapping from the tag set in the training data to the universal (UD) tag set. The problem arises when the mapping between the original tags and the tags in the UD tag set is not a one-to-one-mapping, which is the case for some of the tags in the Norwegian Dependency Treebank (NDT - see http://www.lrec-conf.org/proceedings/lrec2016/pdf/462_Paper.pdf). For instance, NDT does not distinguish between auxiliary and main verbs, hence a mapping would be something like 'verb': {'pos':('VERB', 'AUX')}. Why is this mapping forced? Shouldn't the tagger be able to learn from the tags in the training data, no matter the tag set?
The mapping is forced so that the user can take advantage of the .pos attribute. You can feel free to just shrug and say the coarse-grained tags won't be particularly accurate in your tagger. You can also use some fix-up process afterwards to correct them, if you want.
Ah, okay, got it.
By the way, should the train_tagger.py tutorial suffice for the training of the tagger? I'm running in it on Norwegian and reaching an accuracy of 44% on the test data, which is disappointing to say the least. It seems to make all kinds of extremely strange errors, such as tagging '.' as noun.
Hmm.
If you don't have lemmatization or Brown clusters the tagger might be pretty bad. But 44% seems wrong.
Yeah, something must be off, the types of errors are all kinds of strange. I'm not using lemmatization or Brown clusters, instead simply supplying the tokens and tags, which is common when evaluating PoS taggers to my knowledge. I've evaluated taggers such as TnT, HunPos and SVMTool in an identical manner, reaching accuracies exceeding 97%.
See #579 for resolution
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.