KaterinaDK
KaterinaDK
I also have a key error when trying to use the Dutch parser for text from text files. I checked the tag_map.py file and it already includes 'SP': {POS: SPACE}....
Also, my text is cleaned of \n, so i'm not sure why this error comes up.
This is the error I get: `/home/akandyla/spaCy/spacy/morphology.pyx in spacy.morphology.Morphology.assign_tag_id (spacy/morphology.cpp:4082)() 51 # Related to Issue #220 52 if Lexeme.c_check_flag(token.lex, IS_SPACE): ---> 53 tag_id = self.reverse_index[self.strings['SP']] 54 analysis = self._cache.get(tag_id, token.lex.orth)...
Solved it. I was looking into the wrong tag_map.py I had to add "SP": {POS: SPACE} in the folder of the language Dutch. I hope this is helpful for other...