Class MalletCorpusWrapper
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<cc.mallet.types.Instance>
cc.mallet.types.InstanceList
org.dice_research.topicmodeling.algorithm.mallet.MalletCorpusWrapper
- All Implemented Interfaces:
cc.mallet.types.AlphabetCarrying,Serializable,Cloneable,Iterable<cc.mallet.types.Instance>,Collection<cc.mallet.types.Instance>,List<cc.mallet.types.Instance>,RandomAccess,org.dice_research.topicmodeling.algorithms.VocabularyContaining
public class MalletCorpusWrapper
extends cc.mallet.types.InstanceList
implements org.dice_research.topicmodeling.algorithms.VocabularyContaining
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class cc.mallet.types.InstanceList
cc.mallet.types.InstanceList.CrossValidationIterator -
Field Summary
FieldsFields inherited from class cc.mallet.types.InstanceList
TARGET_PROPERTYFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionMalletCorpusWrapper(cc.mallet.pipe.Pipe pipe)MalletCorpusWrapper(cc.mallet.pipe.Pipe pipe, int capacity)MalletCorpusWrapper(cc.mallet.types.Alphabet dataAlphabet, cc.mallet.types.Alphabet targetAlphabet) -
Method Summary
Modifier and TypeMethodDescriptionorg.dice_research.topicmodeling.utils.vocabulary.VocabularyMethods inherited from class cc.mallet.types.InstanceList
add, add, add, add, add, addAll, addAll, addThruPipe, addThruPipe, clear, clone, cloneEmpty, cloneEmptyInto, crossValidationIterator, crossValidationIterator, getAlphabet, getAlphabets, getDataAlphabet, getDataClass, getFeatureSelection, getInstanceWeight, getInstanceWeight, getPerLabelFeatureSelection, getPipe, getTargetAlphabet, getTargetClass, hideSomeLabels, hideSomeLabels, load, noisify, remove, remove, removeSources, removeTargets, sampleWithInstanceWeights, sampleWithReplacement, sampleWithWeights, save, set, setFeatureSelection, setInstance, setInstanceWeight, setInstanceWeight, setPerLabelFeatureSelection, setPipe, shallowClone, shuffle, split, split, splitInOrder, splitInOrder, splitInTwoByModulo, subList, subList, targetLabelDistribution, unhideAllLabelsMethods inherited from class java.util.ArrayList
contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
-
Constructor Details
-
MalletCorpusWrapper
public MalletCorpusWrapper(cc.mallet.pipe.Pipe pipe) -
MalletCorpusWrapper
public MalletCorpusWrapper(cc.mallet.pipe.Pipe pipe, int capacity) -
MalletCorpusWrapper
public MalletCorpusWrapper(cc.mallet.types.Alphabet dataAlphabet, cc.mallet.types.Alphabet targetAlphabet)
-
-
Method Details
-
getVocabulary
public org.dice_research.topicmodeling.utils.vocabulary.Vocabulary getVocabulary()- Specified by:
getVocabularyin interfaceorg.dice_research.topicmodeling.algorithms.VocabularyContaining
-