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

opennlp.tools.formats.letsmt

## Class LetsmtDocument

- java.lang.Object
- - opennlp.tools.formats.letsmt.LetsmtDocument

-     public class LetsmtDocument
      extends Object

  A structure to hold the letsmt document. The documents contains sentences and depending on the source it either contains tokenized text (words) or an un-tokenized sentence string.

  The format specification can be found here.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `LetsmtDocument.LetsmtDocumentHandler`
    `static class` | `LetsmtDocument.LetsmtSentence`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<LetsmtDocument.LetsmtSentence>` | `getSentences()`

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

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

- - ### Method Detail

    - #### getSentences

          public List<LetsmtDocument.LetsmtSentence> getSentences()

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