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

opennlp.tools.formats.irishsentencebank

## Class IrishSentenceBankDocument

- java.lang.Object
- - opennlp.tools.formats.irishsentencebank.IrishSentenceBankDocument

-     public class IrishSentenceBankDocument
      extends Object

  A structure to hold an Irish Sentence Bank document, which is a collection of tokenized sentences.

  The sentence bank can be downloaded from, and is described here

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `IrishSentenceBankDocument.IrishSentenceBankFlex`
    `static class` | `IrishSentenceBankDocument.IrishSentenceBankSentence`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `IrishSentenceBankDocument()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(IrishSentenceBankDocument.IrishSentenceBankSentence sent)`
    `List<IrishSentenceBankDocument.IrishSentenceBankSentence>` | `getSentences()`
    `static IrishSentenceBankDocument` | `parse(InputStream is)`

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

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

- - ### Constructor Detail

    - #### IrishSentenceBankDocument

          public IrishSentenceBankDocument()

  - ### Method Detail

    - #### add

          public void add(IrishSentenceBankDocument.IrishSentenceBankSentence sent)

    - #### getSentences

          public List<IrishSentenceBankDocument.IrishSentenceBankSentence> getSentences()

    - #### parse

          public static IrishSentenceBankDocument parse(InputStream is)
                                                 throws IOException

      Throws:
        `IOException`

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