Skip to content

Commit

Permalink
CU-8693wtx4b: Update notebook with some extra documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mart-r committed Feb 29, 2024
1 parent 5184419 commit 76ddd8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion medcat/compare_models/model_comparison.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,9 @@
"# we may optionally specify the documents we wish to look at\n",
"# we will specify one document here so as to not generate too much output\n",
"docs = ['doc_2']\n",
"for doc_name, pair in ann_diffs.iter_ann_pairs(docs=docs):\n",
"# by default, this will omit identical annotations\n",
"# but this can be changed by setting omit_identical=False\n",
"for doc_name, pair in ann_diffs.iter_ann_pairs(docs=docs, omit_identical=True):\n",
" print('='*20,f'\\n{doc_name} ({pair.comparison_type})', f'\\n{\"=\"*20}')\n",
" compare_dicts(pair.one, pair.two)"
]
Expand Down

0 comments on commit 76ddd8d

Please sign in to comment.