public class DfStore extends Object implements DfModel, Serializable
TfidfConsumer
and deserialized and used by
TfidfAnnotator
.Constructor and Description |
---|
DfStore() |
DfStore(String featurePath,
boolean convertToLowercase) |
Modifier and Type | Method and Description |
---|---|
void |
closeCurrentDocument()
Call this method when processing of document is over.
|
void |
countTerm(String term) |
int |
getDf(String term)
Returns the number of documents, in which the term appears.
|
int |
getDocumentCount() |
String |
getFeaturePath() |
boolean |
getLowercase() |
void |
registerNewDocument()
Call this method when starting processing a new document.
|
public DfStore()
public DfStore(String featurePath, boolean convertToLowercase)
public void registerNewDocument()
public void countTerm(String term)
public void closeCurrentDocument()
public int getDf(String term)
DfModel
public int getDocumentCount()
getDocumentCount
in interface DfModel
public String getFeaturePath()
getFeaturePath
in interface DfModel
public boolean getLowercase()
getLowercase
in interface DfModel
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.