ADSentenceStream.Sentence (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.formats.ad

## Class ADSentenceStream.Sentence

- java.lang.Object
- - opennlp.tools.formats.ad.ADSentenceStream.Sentence

- Enclosing class:
    ADSentenceStream

      public static class ADSentenceStream.Sentence
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `META_LABEL_FINAL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Sentence()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getMetadata()`
    `ADSentenceStream.SentenceParser.Node` | `getRoot()`
    `String` | `getText()`
    `void` | `setMetadata(String metadata)`
    `void` | `setRoot(ADSentenceStream.SentenceParser.Node root)`
    `void` | `setText(String text)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### META_LABEL_FINAL

          public static final String META_LABEL_FINAL

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### Sentence

          public Sentence()

  - ### Method Detail

    - #### getText

          public String getText()

    - #### setText

          public void setText(String text)

    - #### getRoot

          public ADSentenceStream.SentenceParser.Node getRoot()

    - #### setRoot

          public void setRoot(ADSentenceStream.SentenceParser.Node root)

    - #### setMetadata

          public void setMetadata(String metadata)

    - #### getMetadata

          public String getMetadata()

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