public class Document
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
ACMClass |
classification
The classification of the document.
|
java.lang.String |
filePath
The file path String of the Document
|
java.util.ArrayList<java.lang.Double> |
normalizedWordCounts
An array of normalized word counts.
|
java.lang.String |
rawText
The raw text of the document.
|
java.util.ArrayList<java.lang.Integer> |
wordCounts
An ArrayList of how many times each word in the document appears.
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
wordFreqencyMap
A Hashmap of each word and its frequency in the document
|
Constructor and Description |
---|
Document()
Construct an empty, unclassified Document.
|
Document(Document doc)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Document |
clone() |
void |
setDocPath(java.lang.String path) |
java.lang.String |
toString() |
public java.lang.String filePath
public java.util.HashMap<java.lang.String,java.lang.Integer> wordFreqencyMap
public java.lang.String rawText
public java.util.ArrayList<java.lang.Integer> wordCounts
public java.util.ArrayList<java.lang.Double> normalizedWordCounts
public ACMClass classification
public Document()
public Document(Document doc)
doc
- the document to copy frompublic Document clone()
clone
in class java.lang.Object
public void setDocPath(java.lang.String path)
public java.lang.String toString()
toString
in class java.lang.Object