# Reenabling pipeline components

**URL:** <https://discourse.cogstack.org/t/reenabling-pipeline-components/73>\
**Category:** MedCAT\
**Created:** [August 15, 2022, 7:51pm UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73 "2022-08-15T19:51:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![plandes](https://dub1.discourse-cdn.com/flex017/user_avatar/discourse.cogstack.org/plandes/32/26_2.png) [@plandes](https://discourse.cogstack.org/u/plandes)\
**Post date:** [August 15, 2022, 7:51pm UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73/1 "2022-08-15T19:51:46Z")

</div>

Disabling spaCy components means missing annotation data such as sentence boundaries and parsed data (i.e. head tree). What happens when we _add back_ the `sentencizer` and `parser` spaCy components?

So far in my testing, nothing “bad” seems to happen. However, can others confirm this doesn’t lead to harmful side effects?

---

<div class="post-metadata">

**Author:** ![zeljko](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zeljko](https://discourse.cogstack.org/u/zeljko)\
**Post date:** [August 16, 2022, 6:38pm UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73/2 "2022-08-16T18:38:41Z")

</div>

Hi @plandes there should be no harmful effects, unless you use NER components from spacy that somehow clash with MedCAT NER components. Things like sentencizer or parser will not affect anything.

---

<div class="post-metadata">

**Author:** ![plandes](https://dub1.discourse-cdn.com/flex017/user_avatar/discourse.cogstack.org/plandes/32/26_2.png) [@plandes](https://discourse.cogstack.org/u/plandes)\
**Post date:** [August 16, 2022, 6:56pm UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73/3 "2022-08-16T18:56:26Z")

</div>

No, these are the only two components, then merge non-medical NER from a different spaCy `Language` model instance.

However, I _have_ noticed the sentence boundaries are at places different from a non-MedCAT spaCy language model. Any insight on that?

---

<div class="post-metadata">

**Author:** ![zeljko](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zeljko](https://discourse.cogstack.org/u/zeljko)\
**Post date:** [August 16, 2022, 8:04pm UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73/4 "2022-08-16T20:04:53Z")

</div>

Possibly because we’ve modified the standard spacy tokenizer and added some other rules, but should be minimal. One thing to check is that the spacy model you are using is exactly the same as the spacy model in the medcat pipeline and that all the components that help to detect sentence boundaries are enabled.

---

<div class="post-metadata">

**Author:** ![plandes](https://dub1.discourse-cdn.com/flex017/user_avatar/discourse.cogstack.org/plandes/32/26_2.png) [@plandes](https://discourse.cogstack.org/u/plandes)\
**Post date:** [August 18, 2022, 1:33am UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73/5 "2022-08-18T01:33:22Z")

</div>

This makes sense. Thank you.

---

<div class="post-metadata">

**Author:** ![plandes](https://dub1.discourse-cdn.com/flex017/user_avatar/discourse.cogstack.org/plandes/32/26_2.png) [@plandes](https://discourse.cogstack.org/u/plandes)\
**Post date:** [August 18, 2022, 2:25pm UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73/6 "2022-08-18T14:25:48Z")

</div>

One more question on this: can you provide an example of text where the spelling is fixed and an abbreviation expanded for the purposes of a unit test case with my own setup? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![zeljko](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zeljko](https://discourse.cogstack.org/u/zeljko)\
**Post date:** [August 18, 2022, 10:44pm UTC](https://discourse.cogstack.org/t/reenabling-pipeline-components/73/7 "2022-08-18T22:44:34Z")

</div>

Try typing the following `Intracerebral heorrhage and CKD` in the demo app [here](https://medcat.rosalind.kcl.ac.uk/). It will detect the first part even though it is misspelt and also CKD even though it is an abbreviation. The text will not be touched, but internally the model will ignore the spelling mistakes and also detect abbreviations.
