gov.nist.nlpir.irf.feature
Class IdxFeatWordInText

java.lang.Object
  |
  +--gov.nist.nlpir.irf.feature.IndexingFeature
        |
        +--gov.nist.nlpir.irf.feature.IdxFeatWordInString
              |
              +--gov.nist.nlpir.irf.feature.IdxFeatWordInText

public class IdxFeatWordInText
extends IdxFeatWordInString

Container for elements of an Indexing Feature, the feature itself (a term, vector, label, etc.) and the source document that it was generated from.

Version:
$Revision: 1.1 $
Author:
This software was produced by NIST, an agency of the U.S. government, and by statute is not subject to copyright in the United States. Recipients of this software assume all responsibilities associated with its operation, modification and maintenance.

Field Summary
private  int paragraphCount
          Paragraph number information.
 
Fields inherited from class gov.nist.nlpir.irf.feature.IdxFeatWordInString
wordCount
 
Fields inherited from class gov.nist.nlpir.irf.feature.IndexingFeature
feature, proxyRefsCountedTrue, sourceDoc, sourceField
 
Constructor Summary
IdxFeatWordInText(ProxyDataElem feature, ProxyDocument sourceDoc, ProxyDataElem sourceField, int wordCount, int paragraphCount)
           
 
Method Summary
 int getParagraphCount()
          Gets the paragraph number information.
 void setParagraphCount(int paragraphCount)
          Sets the paragraph number information.
 java.lang.String toString()
          returns string representation of indexing feature showing feature and source.
 
Methods inherited from class gov.nist.nlpir.irf.feature.IdxFeatWordInString
getWordCount, setWordCount
 
Methods inherited from class gov.nist.nlpir.irf.feature.IndexingFeature
finalize, getFeature, getSourceDoc, getSourceField, setFeature, setProxyRefsCountedTrue, setSourceDoc, setSourceField
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

paragraphCount

private int paragraphCount
Paragraph number information.
Constructor Detail

IdxFeatWordInText

public IdxFeatWordInText(ProxyDataElem feature,
                         ProxyDocument sourceDoc,
                         ProxyDataElem sourceField,
                         int wordCount,
                         int paragraphCount)
Parameters:
f - feature to be stored
s - source document to be stored
Method Detail

toString

public java.lang.String toString()
returns string representation of indexing feature showing feature and source.
Returns:
string representation of indexing feature
Overrides:
toString in class IdxFeatWordInString

getParagraphCount

public final int getParagraphCount()
Gets the paragraph number information.

setParagraphCount

public final void setParagraphCount(int paragraphCount)
Sets the paragraph number information.