Package smile.nlp

Class Text

java.lang.Object
smile.nlp.Text
Direct Known Subclasses:
SimpleText

public class Text extends Object
A minimal interface of text in the corpus.
  • Field Details Link icon

    • id Link icon

      public final String id
      The id of document in the corpus.
    • title Link icon

      public final String title
      The title of document;
    • body Link icon

      public final String body
      The text body.
  • Constructor Details Link icon

    • Text Link icon

      public Text(String body)
      Constructor.
      Parameters:
      body - the text body of document.
    • Text Link icon

      public Text(String title, String body)
      Constructor.
      Parameters:
      title - the title of document.
      body - the text body of document.
    • Text Link icon

      public Text(String id, String title, String body)
      Constructor.
      Parameters:
      id - the id of document.
      title - the title of document.
      body - the text body of document.