public abstract class TfidfVectorizer<VECTOR_TYPE> extends TextVectorizer<VECTOR_TYPE>
Vectorizer.RecordCallBackcache, MIN_WORD_FREQUENCY, minWordFrequency, STOP_WORDS, stopWords, TOKENIZER, tokenizerFactory| Constructor and Description |
|---|
TfidfVectorizer() |
| Modifier and Type | Method and Description |
|---|---|
TokenizerFactory |
createTokenizerFactory(Configuration conf)
Create tokenizer factory based on the configuration
|
abstract VECTOR_TYPE |
createVector(Object[] args) |
void |
doWithTokens(Tokenizer tokenizer)
Increment counts, add to collection,...
|
abstract VECTOR_TYPE |
fitTransform(RecordReader reader) |
abstract VECTOR_TYPE |
transform(Collection<Writable> record) |
fit, fit, initialize, toString, wordFrequenciesForRecordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfitTransformpublic void doWithTokens(Tokenizer tokenizer)
TextVectorizerdoWithTokens in class TextVectorizer<VECTOR_TYPE>public TokenizerFactory createTokenizerFactory(Configuration conf)
TextVectorizercreateTokenizerFactory in class TextVectorizer<VECTOR_TYPE>conf - the configuration to usepublic abstract VECTOR_TYPE createVector(Object[] args)
public abstract VECTOR_TYPE fitTransform(RecordReader reader)
public abstract VECTOR_TYPE transform(Collection<Writable> record)
Copyright © 2015. All rights reserved.