public class DfStore extends Object implements DfModel, Serializable
TfIdfWriter 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)
DfModelpublic int getDocumentCount()
getDocumentCount in interface DfModelpublic String getFeaturePath()
getFeaturePath in interface DfModelpublic boolean getLowercase()
getLowercase in interface DfModelCopyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.