Skip to content

Conversation

@mart-r
Copy link
Collaborator

@mart-r mart-r commented Jul 8, 2025

There was an issue when using a trainer export that had a negative sample such that the within the model that's being trained the name used didn't actually match to the CUI incorrectly linked by the model in the trainer.

That is to say, if the model in the trainer incorrectly identified "ABC" as CUI "C1", the annotator then corrected it. But the model being trained doesn't know that "ABC" is a synonym for "C1".

This PR fixes that.
It also adds a little bit of extra context to errors if something similar were to happen again.

@mart-r mart-r merged commit 08f1fd7 into main Jul 8, 2025
13 checks passed
@mart-r mart-r deleted the CU-8699q97m0-fix-supervised-train-negative-examples branch July 8, 2025 16:36
mart-r added a commit that referenced this pull request Jul 8, 2025
* CU-8699q97m0: Fix negative examples in supervised training data

* CU-8699q97m0: Show better exceptions for KeyError when doing supervised training
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants