Hi Greg I don't bother about segments but have been pretty successful using this to get a document's sections.
*add org.mitre.medfacts.uima.ZoneAnnotator SectionRegex=org/mitre/medfacts/uima/section_regex.xml* Have you checked out this annotator? It creates "Heading" types and the config file above is a good place to start from. It has a nice ability to normalize section types so that if note type A and B both have assessment sections that are somewhat titled differently, you can have them both tagged with the same label. The annotator had some rough edges and unwanted printing in the log which I've recently modified. Also I did some optimization of the code which was wasting compute cycles by re-initializing itself for every document. I can check it in, but you can get a good flavor of it by trying what's in the codebase already. Peter On Tue, Mar 22, 2022 at 6:33 PM Greg Silverman <g...@umn.edu.invalid> wrote: > How do I modify org.apache.ctakes.typesystem.type.textspan.Segment to > actually create annotations for document segments/sections? > > Also, how do I disable annotations for the SemanticRoleRelation annotation > type? > > Thanks! > > Greg-- > > -- > Greg M. Silverman > Senior Systems Developer > NLP/IE <https://healthinformatics.umn.edu/research/nlpie-group> > Department of Surgery > University of Minnesota > g...@umn.edu >