However are you sure that your /home/centos/disease_only_lower.jsonl is fine and that you actually have matches using your patterns? Looking at your patterns it seems that you have the same patterns reoccurring.
can i input this
python3 -m prodigy ner.match med_ner en_core_web_sm /home/centos/med_test5.jsonl --patterns /home/centos/patterns_for_disease_new_latest2.jsonl
I think if the JSON was broken, it'd fail much ealier – so the fact that it loads the stream is a good sign. And that "empty stream" message typically means that there's nothing to suggest for annotation. In the case of ner.match, which only shows matches, this would mean that there are no matches.
The files also look fine to me at first glance, and the patterns make sense. So I agree with @nix411's suggestion: maybe try it with a few texts and a few patterns that you know definitely match? Also make sure to use a new dataset, in case you've already annotated something before (because Prodigy will skip examples you've already annotated by default).
spacy identifies this for me , is it possible for me to make heat shock as the med_rcd entity manually if spacy identifies only shock and med_rcd entity
If you upgrade to the latest Prodigy v1.9, you can also use ner.manual with --patterns instead of ner.match. This will pre-highlight the suggestions from your patterns and let you manually edit them. See here for more details and an example: https://prodi.gy/docs/named-entity-recognition#manual-patterns
as well can you please tell me if this is my regex for postal (postal_pattern = r"\b([Gg][Ii][Rr] 0[Aa]{2})\b|\b((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9][A-Za-z]?))))\s?[0-9][A-Za-z]{2})\b"
) for a particular entity what will be the command in prodigy
If you want to use your own custom rules for matching, you can write a custom recipe that adds "spans" with the matched "start" and "end" character offsets to each incoming example. See the documentation for the expected format.
I have a doubt after training the model for the medical entity the pretrained entities of spacy like PERSON, ORG all get disappeared example Bill's is suffering from cancer (cancer gets identified as the medical entity but the PERSON entity doesnot why is that and how can i resolve it
I get the the above error for the command as follows "python3 -m prodigy ner.manual med-terms en_core_web_sm ./text-inputs.jsonl --label MEDICAL --patterns ./pattern-inputs.jsonl"
The --patterns argument was only added in v1.9. If you're running an older version (you can run python3 -m prodigy stats to check), you'll need to upgrade to use the new features