|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Page
Class for describing a text document. Pending application of generic properties on graphs and actors, this represents text-based documents.
Method Summary | |
---|---|
double |
compare(Page p)
Compute a similarity between 2 pages. |
java.util.HashMap<java.lang.String,java.lang.Double> |
getHistogram()
Retrieve the histogram describing this document. |
java.lang.String |
getID()
get the unique id identifying this page |
void |
load(java.util.HashMap<java.lang.String,java.lang.Double> histogram)
Create a page given the bag-of-words description. |
void |
load(java.lang.String content)
Create a page document fromthe given string. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
double compare(Page p)
p
- page to compare to
void load(java.lang.String content)
content
- contents of the text documentvoid load(java.util.HashMap<java.lang.String,java.lang.Double> histogram)
histogram
- bag-of-words description of a text documentjava.util.HashMap<java.lang.String,java.lang.Double> getHistogram()
java.lang.String getID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |