Bool flag not accepted in the jsonl pattern file #12885
-
I'm using spacy config.cfg to train my model
In my_patterns.jsonl file, I wrote all the patterns using the srsly.write_jsonl. The thing is the output file will transform all the True flag to true. Which are correct for the JSON format but not recognized by python. In the other hand, I tried to write a simple code :
This code works and can detect the keyword from the doc. But, when training the model using the config.cfg and my_patterns.jsonl file. It is not working. How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you try your config with the If you do want |
Beta Was this translation helpful? Give feedback.
Can you try your config with the
ner
component removed or disabled? My first guess based on the information above is that theentity_ruler
is not overwriting entities predicted by thener
component and that's why you're not seeing the same matches as with just theMatcher
and your patterns.If you do want
entity_ruler
to overwrite existing entities, there's anoverwrite_ents
setting.