modnlp.tc.dstruct
public class TSReducedText extends java.util.Vector
ARFFUtil
,
modnlp.tc.classify.BVProbabilityModel
,
Serialized FormConstructor and Description |
---|
TSReducedText(ParsedCorpus pt,
WordFrequencyPair[] tset) |
TSReducedText(TCInvertedIndex ii,
WordFrequencyPair[] tset) |
TSReducedText(WordFrequencyPair[] tset) |
Modifier and Type | Method and Description |
---|---|
boolean |
addNIAV(NewsItemAsOccurVector niav) |
int |
getNoOfDocuments() |
WordFrequencyPair[] |
getReducedTermSet()
Get the value of wfp.
|
void |
setReducedTermSet(WordFrequencyPair[] v)
Set the value of wfp.
|
java.lang.String |
toBooleanVectorARFF(java.lang.String category) |
void |
toBooleanVectorARFF(java.lang.String category,
java.io.PrintStream out) |
java.lang.String |
toOccurVectorARFF(java.lang.String category) |
void |
toOccurVectorARFF(java.lang.String category,
java.io.PrintStream out) |
java.lang.String |
toPWeightVectorARFF(java.lang.String category) |
void |
toPWeightVectorARFF(java.lang.String category,
java.io.PrintStream out) |
java.lang.String |
toString() |
void |
toString(java.io.PrintStream out) |
java.lang.String |
toTFIDFVectorARFF(java.lang.String category) |
void |
toTFIDFVectorARFF(java.lang.String category,
java.io.PrintStream out) |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize
public TSReducedText(WordFrequencyPair[] tset)
public TSReducedText(ParsedCorpus pt, WordFrequencyPair[] tset)
public TSReducedText(TCInvertedIndex ii, WordFrequencyPair[] tset)
public boolean addNIAV(NewsItemAsOccurVector niav)
public java.lang.String toString()
toString
in class java.util.Vector
public void toString(java.io.PrintStream out)
public java.lang.String toOccurVectorARFF(java.lang.String category)
public java.lang.String toBooleanVectorARFF(java.lang.String category)
public java.lang.String toPWeightVectorARFF(java.lang.String category)
public java.lang.String toTFIDFVectorARFF(java.lang.String category)
public void toBooleanVectorARFF(java.lang.String category, java.io.PrintStream out)
public void toOccurVectorARFF(java.lang.String category, java.io.PrintStream out)
public void toPWeightVectorARFF(java.lang.String category, java.io.PrintStream out)
public void toTFIDFVectorARFF(java.lang.String category, java.io.PrintStream out)
public int getNoOfDocuments()
public WordFrequencyPair[] getReducedTermSet()
public void setReducedTermSet(WordFrequencyPair[] v)
v
- Value to assign to wfp.