Skip to content

feat(medcat-tutorials): Add bulk inference tutorial - #594

Merged
mart-r merged 8 commits into
mainfrom
feat/medcat-tutorials/add-bulk-inference-tutorial
Jul 28, 2026
Merged

feat(medcat-tutorials): Add bulk inference tutorial#594
mart-r merged 8 commits into
mainfrom
feat/medcat-tutorials/add-bulk-inference-tutorial

Conversation

@mart-r

@mart-r mart-r commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

This PR adds a bulk inference tutorial. It goes over filtering as well as multiprocessing. It also tried to note as many of the relevant caveats as possible.

The notebook is best viewed here:
https://github.com/CogStack/cogstack-nlp/blob/feat/medcat-tutorials/add-bulk-inference-tutorial/medcat-v2-tutorials/notebooks/introductory/basic/5._Running_model_on_large_datasets.ipynb

PS:
Also added 4th part to workflow (it had been omitted for some reason).

Comment thread medcat-v2-tutorials/mkdocs.yml Outdated
- 2. Unsupervised training on model: introductory/basic/2._Unsupervised_training_on_model.ipynb
- 3. Supervised training on model: introductory/basic/3._Supervised_training_on_model.ipynb
- 4. Evaluating performance on dataset: introductory/basic/4._Evaluating_performance_on_dataset.ipynb
- 5. Running models on large datasets: 5._Running_model_on_large_datasets.ipynb

@alhendrickson alhendrickson Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 5. Running models on large datasets: 5._Running_model_on_large_datasets.ipynb
- 5. Running models on large datasets: introductory/basic/5._Running_model_on_large_datasets.ipynb

Missing the path here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep - thought I was following whaat was already there, but clearly not.

"source": [
"## Loading model pack\n",
"\n",
"We can reuse a model pack we created in earlier parts for the purposes of the tutorial."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you've decided to download the med mentions in the end - would reword this accordingly as you're not using a model pack created earlier anymore

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - thanks.
I didn't think the earlier models would really be useful examples for filtering.

@alhendrickson alhendrickson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

…del_on_large_datasets.ipynb

Co-authored-by: Alistair Hendrickson <alistair@cogstack.org>
@mart-r
mart-r merged commit e6097e7 into main Jul 28, 2026
16 checks passed
@mart-r
mart-r deleted the feat/medcat-tutorials/add-bulk-inference-tutorial branch July 28, 2026 17:44
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