-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CU-8692my74y / CU-8692kj0tw Clean eval mct export #7
CU-8692my74y / CU-8692kj0tw Clean eval mct export #7
Conversation
Couldn't find a MCT export that had the datatime format that was supported. So now supporting the format that was present in the example I had
… add the relevant document names
…in case of subsequent calls (i.e after renaming meta annotations)
…, lower indentation)
…o model pack available
Hey can you elaborate on what "Wouldn't work" in the The rest of this PR can be merged. |
Is this what you mean? All I meant was that it requires a If you meant something else, I must have missed what you meant. |
Looking at it again, I can now tell what you meant. I didn't read my own description of the PR, only looked at the code. It's been a while since I did all of this, so I don't remember what the issue was exactly.
I tried and it does work just fine if when I specified a model. In any case, unless we want to bundle this project with a full model pack, it's not (automatically) testable in its current state. |
I've since added a set of offline tests. The idea is that these should be ran not on GHA but locally on the developer's computer (or perhaps in the future in some other isolated environment). The reason is the fact that these tests require model packs and we don't want to have to download and re-download these on GHA.
With that said, you also need to have the medmentions model at |
What this PR does:
Removed the legacy notebook.
Some fixes to
medcat/evaluate_mct_export/mct_analysis.py
:project_names
containing whole projects, not just their namesSome added functionality to
medcat/evaluate_mct_export/mct_analysis.py
:CAT
instance) is requiredSome more minor changes that shouldn't affect operation
Added a bunch of tests for
medcat/evaluate_mct_export/mct_analysis.py
intests/medcat/evaluate_mct_export/test_mct_analysis.py
:I tried also looking at the few
medcat/evaluate_mct_export/mct_analysis.py
methods that depended on the model packfull_annotation_df
meta_anns_concept_summary
generate_report
Wouldn't workopenpyxl
and a model packopenpyxl
could be added to requirementsEDIT (12.12.2023)
I've since added a set of offline tests. The idea is that these should be ran not on GHA but locally on the developer's computer (or perhaps in the future in some other isolated environment). The reason is the fact that these tests require model packs and we don't want to have to download and re-download these on GHA.
I've added the tests in a way that makes them not discoverable for `python -m unittest discover. As such, to run them, you'd need to run:
With that said, you also need to have the medmentions model at
tests/medcat/resources/offline/medmen_wstatus_2021_oct.zip
in order for these tests to run.PS:
There may still be quite a few things that could use some attention. So I'm open to suggestions.