MedCAT icon indicating copy to clipboard operation
MedCAT copied to clipboard

How to use CUI filtering

Open sandertan opened this issue 3 years ago • 0 comments

Hi @w-is-h , CUI filtering can be done at various stages during training and application of named entity linking, with different results. For a specific usecase I need to apply filtering, but I'm not sure whether I should remove the CUI from the concept CSV, use a filter during training, use a filter during MedCATService or apply my own filter on the results. Can you expand the documentation on filtering, perhaps with some examples? Also, can you elaborate how to use the filter_before_disamb? The documentation says "Useful for the trainer". Would setting this to True be functionally equal to removing the CUI from the input concept CSV?

This part would be nice to update: https://github.com/CogStack/MedCAT/blob/169bc1d3d8b507a0187f67c5c0d10877ee2c4d53/medcat/linking/vector_context_model.py#L140

sandertan avatar Dec 27 '22 09:12 sandertan