edu.indiana.iucbrf.feature
Class TextTermVectorPair

java.lang.Object
  extended by edu.indiana.iucbrf.feature.TextTermVectorPair
All Implemented Interfaces:
java.io.Serializable

public class TextTermVectorPair
extends java.lang.Object
implements java.io.Serializable

Principle use is at the value of a StringFeature.

See Also:
Serialized Form

Field Summary
protected  java.lang.String text
           
protected  iglu.ir.TermVector tv
          A term vector, containing keywords for the text.
 
Constructor Summary
protected TextTermVectorPair()
          For serialization only.
  TextTermVectorPair(java.lang.String text)
           
  TextTermVectorPair(java.lang.String text, iglu.ir.TermVector tv)
           
 
Method Summary
 iglu.ir.TermVector getTermVector()
           
 java.lang.String getText()
           
 java.lang.String toString()
          Returns the text only.
 java.lang.String toString(int detailLevel)
          For detailLevel > 0, returns text and keywords.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

protected java.lang.String text

tv

protected iglu.ir.TermVector tv
A term vector, containing keywords for the text. May be null if no keywords are available.

Constructor Detail

TextTermVectorPair

protected TextTermVectorPair()
For serialization only.


TextTermVectorPair

public TextTermVectorPair(java.lang.String text)

TextTermVectorPair

public TextTermVectorPair(java.lang.String text,
                          iglu.ir.TermVector tv)
Method Detail

getText

public java.lang.String getText()

getTermVector

public iglu.ir.TermVector getTermVector()

toString

public java.lang.String toString()
Returns the text only.

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int detailLevel)
For detailLevel > 0, returns text and keywords. Else returns text only.