# spancat with really large spans? (Identify sections in text)

**URL:** <https://support.prodi.gy/t/spancat-with-really-large-spans-identify-sections-in-text/6094>\
**Category:** Uncategorized\
**Tags:** spancat\
**Created:** [November 9, 2022, 8:14am UTC](https://support.prodi.gy/t/spancat-with-really-large-spans-identify-sections-in-text/6094 "2022-11-09T08:14:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![koaning](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/koaning/32/230_2.png) [@koaning](https://support.prodi.gy/u/koaning)\
**Post date:** [November 11, 2022, 3:19pm UTC](https://support.prodi.gy/t/spancat-with-really-large-spans-identify-sections-in-text/6094/5 "2022-11-11T15:19:24Z")

</div>

I found a dialogue on the forum that might be inspirational here.

> [@Combining NER with text classification](https://support.prodi.gy/t/combining-ner-with-text-classification/305/6):
>
> @wpm If you segment the document into paragraphs, you can run the NER over all the paragraphs though, right? I think it makes good sense to use the text classifier during training to find paragraphs with a high enough density of entities to make your annotation effort productive. But at runtime, where you just want the tool to extract entities, you may as well run it over the whole text. As far as doing joint learning goes: there are a few ways you can do this. One solution would be to share t…

It's a different problem, but it highlights another two-step approach to rethinking spans.

That said, reading your reply still makes me think that textcat might be the simplest way forward, albeit on paragraphs instead of sentences. While I like your idea of using NER to detect the start of a section, I wonder if you might be able to leverage that this always starts on a newline, which suggests a heuristic might be better than a ML model.

---

_[View the full topic](https://support.prodi.gy/t/spancat-with-really-large-spans-identify-sections-in-text/6094)._
