Ah, I first thought this was in the Prodigy documentation – but in spaCy’s docs, the patterns are written in Python, since this is how you’ll feed them in when using spaCy directly:
Since Prodigy lets you load in patterns in JSON format, this notation will have to be converted to the JavaScript notation as well. This usually means that all quotes should be double quotes, true and false are lowercase and None → null (although this usually shouldn’t come up much). Prodigy’s pattern format also uses lowercase keys for the token properties:
I am receiving following error using textcat.teach after I export my files and manually made modifications using nodepad ++ (before manual modifications, the file was readable):
What exactly did you change? The error indicates that somehow, the JSON in your file isn't readable, so maybe editing it in notepad++ corrupted the file.
In the example you copied, all quotation makes show up as “ instead of " – was it like that before, or did that only get changed by our forum? I just tested it with your examples and " for all quotation marks, and it worked fine for me.
And could you try copying each line of your file separately to this JSON validator and check if it complains?