| Constructor and Description |
|---|
DfTableArray(String file)
Creates a
DfTableArray object. |
DfTableArray(String file,
FileSystem fs)
Creates a
DfTableArray object. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCountOfTermWithDfOne()
Returns the number of terms that only appear in one document.
|
int |
getDf(String term)
Returns the document frequency of a term.
|
int |
getDocumentCount()
Returns the number of documents in the collection.
|
int |
getMaxDf()
Returns the document frequency of the term with the highest document
frequency.
|
String |
getMaxDfTerm()
Returns the term with the highest document frequency.
|
int |
getVocabularySize()
Returns the number of unique terms in the collection.
|
static void |
main(String[] args) |
public DfTableArray(String file) throws IOException
DfTableArray object.file - collection frequency data fileIOExceptionpublic DfTableArray(String file, FileSystem fs) throws IOException
DfTableArray object.file - collection frequency data filefs - FileSystem to read fromIOExceptionpublic int getCountOfTermWithDfOne()
DfTablegetCountOfTermWithDfOne in interface DfTablepublic int getDf(String term)
DfTablepublic int getDocumentCount()
DfTablegetDocumentCount in interface DfTablepublic int getMaxDf()
DfTablepublic String getMaxDfTerm()
DfTablegetMaxDfTerm in interface DfTablepublic int getVocabularySize()
DfTablegetVocabularySize in interface DfTable