GapLabeler (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.parser

## Interface GapLabeler

- All Known Implementing Classes:
    AncoraSpanishHeadRules, HeadRules

      public interface GapLabeler

  Interface for labeling nodes which contain traces so that these traces can be predicted by the parser.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `labelGaps(Stack<Constituent> stack)` Labels the constituents found in the stack with gap labels if appropriate.

- - ### Method Detail

    - #### labelGaps

          void labelGaps(Stack<Constituent> stack)

      Labels the constituents found in the stack with gap labels if appropriate.
      Parameters:
        `stack` - The stack of un-completed constituents.

Copyright © 2026 The Apache Software Foundation. All rights reserved.