smile.nlp
Class Text
- java.lang.Object
-
- smile.nlp.Text
-
- Direct Known Subclasses:
- SimpleText
public class Text extends java.lang.ObjectA minimal interface of text in the corpus.
-
-
Constructor Summary
Constructors Constructor and Description Text(java.lang.String id, java.lang.String title, java.lang.String body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetBody()Returns the body of text.java.lang.StringgetID()Returns the id of document in the corpus.java.lang.StringgetTitle()Returns the title of text.TextsetBody(java.lang.String body)TextsetID(java.lang.String id)TextsetTitle(java.lang.String title)
-
-
-
Constructor Detail
-
Text
public Text(java.lang.String id, java.lang.String title, java.lang.String body)
-
-
Method Detail
-
getID
public java.lang.String getID()
Returns the id of document in the corpus.
-
setID
public Text setID(java.lang.String id)
-
getTitle
public java.lang.String getTitle()
Returns the title of text.
-
setTitle
public Text setTitle(java.lang.String title)
-
getBody
public java.lang.String getBody()
Returns the body of text.
-
setBody
public Text setBody(java.lang.String body)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG