|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.geoclass.CageClass
public class CageClass
The classification algorithm for marking web pages with their corresponding geographical scopes, with basis on a probabilistic graphical model of geographical concepts.
| Constructor Summary | |
|---|---|
CageClass()
Constructor for CageClass. |
|
CageClass(java.lang.String sitesFile,
java.lang.String GKBFile)
Constructor for CageClass. |
|
| Method Summary | |
|---|---|
Node |
getScope(Cage cage)
Returns the Geographical Scope associated with a given document. |
Node |
getScope(NamedEntity[] entities)
Returns the Geographical Scope associated with a given document. |
Node |
getScope(java.lang.String url)
Returns the Geographical Scope associated with a given document. |
Node |
getScope(java.lang.String url,
Cage cage)
Returns the Geographical Scope associated with a given document. |
Node |
getScope(java.lang.String url,
NamedEntity[] entities)
Returns the Geographical Scope associated with a given document. |
Node |
getScope(java.lang.String url,
java.lang.String text)
Returns the Geographical Scope associated with a given document. |
static void |
main(java.lang.String[] args)
Main method for running the classifyer from the command line. |
void |
writeAllVersus()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CageClass()
throws java.lang.Exception
java.lang.Exception - A problem occured while reading from the knowledge base.
public CageClass(java.lang.String sitesFile,
java.lang.String GKBFile)
throws java.lang.Exception
java.lang.Exception - A problem occured while reading from the knowledge base.| Method Detail |
|---|
public Node getScope(NamedEntity[] entities)
entities - An array of named entities associated with the document.
public Node getScope(java.lang.String url,
NamedEntity[] entities)
url - The document's URL.entities - An array of named entities.
public Node getScope(java.lang.String url)
url - The document's URL.
public Node getScope(java.lang.String url,
Cage cage)
url - The document's URL.cage - The named entity recognizer for the document.
public Node getScope(java.lang.String url,
java.lang.String text)
url - The document's URL.cage - The named entity recognizer for the document.
public Node getScope(Cage cage)
cage - The named entity recognized for the document.
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - The command line arguments, tokenized.
java.lang.Exceptionpublic void writeAllVersus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||