Package 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 contain 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
  Description
  `static class`
  `LetsmtDocument.LetsmtDocumentHandler`
  A `content handler` to receive and process SAX events.
  `static class`
  `LetsmtDocument.LetsmtSentence`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<LetsmtDocument.LetsmtSentence>`
  `getSentences()`

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

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

- ## Method Details

  - ### getSentences

    public List<LetsmtDocument.LetsmtSentence> getSentences()
    Returns:
      Retrieves the sentences of a `LetsmtDocument`.