|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.cluster.Subsumption
public class Subsumption
Description of the Class
Field Summary | |
---|---|
private java.util.HashMap |
docRanking
|
private java.util.HashMap |
documents
|
private boolean |
fullTernary
|
private Hierarchy |
hierarchy
|
private static java.util.HashMap |
ligators
Lista de pavaras que podem ligar duas outras palavras, por forma a construir super frases |
private static java.lang.String[] |
ligatorTerms
|
private org.apache.log4j.Logger |
logger
|
private int |
maxLevels
|
private int |
numDocs
|
private boolean |
onlyDouble
|
private java.util.HashMap |
queryTerms
|
private static java.util.Random |
rand
Random number generator for the quicksort algorithm |
private java.lang.String |
sentenceExclude
|
private static pt.tumba.util.QuasiStemmer |
stemmer
|
private java.util.HashMap |
termFrequency
|
private java.util.HashMap |
terms
|
private boolean |
ternaryTerms
|
private java.util.HashMap |
titles
|
Constructor Summary | |
---|---|
Subsumption()
Constructor for the Subsumption object |
|
Subsumption(java.util.Vector contents)
Constructor for the Subsumption object |
|
Subsumption(java.util.Vector contents,
java.lang.String query)
Constructor for the Subsumption object |
Method Summary | |
---|---|
private void |
addDocument(java.lang.Object document,
java.lang.String text)
Adds a feature to the Document attribute of the Subsumption object |
private void |
addTerm(java.lang.String t,
java.lang.Object int1,
int frequency)
Adds a feature to the Term attribute of the Subsumption object |
private void |
computeHierarchy()
Description of the Method |
private void |
computeHierarchy(java.lang.String term,
java.util.HashMap terms2,
Hierarchy hierarchy,
int level)
Description of the Method |
private static java.util.List |
exchangePos(java.util.List v,
int p1,
int p2)
Description of the Method |
java.lang.String |
genderAndCase(java.lang.String aux)
|
java.util.List |
getDocuments(java.lang.String path)
Gets the documents attribute of the Subsumption object |
java.util.Vector |
getHierarchy()
Gets the hierarchy attribute of the Subsumption object |
private java.util.Vector |
getHierarchy(java.lang.String p)
Gets the hierarchy attribute of the Subsumption object |
java.util.List |
getTerms(java.lang.String p)
Gets the terms attribute of the Subsumption object |
java.lang.String |
getTitle(java.lang.String url)
Gets the title attribute of the Subsumption object |
private java.util.Vector |
getUnorderedDocuments(java.lang.String p)
Gets the unorderedDocuments attribute of the Subsumption object |
void |
makeHierarchy()
Description of the Method |
boolean |
occurInSameDocuments(java.lang.String term1,
java.lang.String term2)
Description of the Method |
private Hierarchy |
pruneHierarchy(Hierarchy h2,
Hierarchy parent,
boolean s2)
Description of the Method |
private Hierarchy |
pruneHierarchy2(Hierarchy h,
Hierarchy parent)
|
Hierarchy |
pruneHierarchyMaxNodes(Hierarchy hierarchy,
int max)
|
private void |
removeTerms()
Description of the Method |
void |
setSentenceExclude(java.lang.String s)
Sets the sentenceExclude attribute of the Subsumption object |
private void |
termSelection()
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static pt.tumba.util.QuasiStemmer stemmer
private static java.util.HashMap ligators
private static java.lang.String[] ligatorTerms
private static java.util.Random rand
private java.util.HashMap docRanking
private java.util.HashMap documents
private Hierarchy hierarchy
private int numDocs
private java.util.HashMap queryTerms
private java.lang.String sentenceExclude
private java.util.HashMap termFrequency
private java.util.HashMap terms
private java.util.HashMap titles
private boolean ternaryTerms
private boolean onlyDouble
private boolean fullTernary
private int maxLevels
private org.apache.log4j.Logger logger
Constructor Detail |
---|
public Subsumption()
public Subsumption(java.util.Vector contents)
contents
- Description of the Parameterpublic Subsumption(java.util.Vector contents, java.lang.String query)
contents
- Description of the Parameterquery
- Description of the ParameterMethod Detail |
---|
private static java.util.List exchangePos(java.util.List v, int p1, int p2)
v
- Description of the Parameterp1
- Description of the Parameterp2
- Description of the Parameter
private void addDocument(java.lang.Object document, java.lang.String text)
document
- The feature to be added to the Document attributetext
- The feature to be added to the Document attributeprivate void addTerm(java.lang.String t, java.lang.Object int1, int frequency)
term
- The feature to be added to the Term attributeint1
- The feature to be added to the Term attributefrequency
- The feature to be added to the Term attributeprivate void computeHierarchy()
public Hierarchy pruneHierarchyMaxNodes(Hierarchy hierarchy, int max)
private void computeHierarchy(java.lang.String term, java.util.HashMap terms2, Hierarchy hierarchy, int level)
term
- Description of the Parameterterms2
- Description of the Parameterhierarchy
- Description of the Parameterlevel
- Description of the Parameterpublic java.util.List getDocuments(java.lang.String path)
path
- Description of the Parameter
public java.util.Vector getHierarchy()
private java.util.Vector getHierarchy(java.lang.String p)
path
- Description of the Parameter
public java.util.List getTerms(java.lang.String p)
path
- Description of the Parameter
public java.lang.String getTitle(java.lang.String url)
url
- Description of the Parameter
private java.util.Vector getUnorderedDocuments(java.lang.String p)
path
- Description of the Parameter
public void makeHierarchy()
public boolean occurInSameDocuments(java.lang.String term1, java.lang.String term2)
term1
- Description of the Parameterterm2
- Description of the Parameter
private Hierarchy pruneHierarchy(Hierarchy h2, Hierarchy parent, boolean s2)
h
- Description of the Parameterparent
- Description of the Parameter
private Hierarchy pruneHierarchy2(Hierarchy h, Hierarchy parent)
private void removeTerms()
sentence
- Description of the Parameterpublic void setSentenceExclude(java.lang.String s)
s
- The new sentenceExclude valuepublic java.lang.String genderAndCase(java.lang.String aux)
private void termSelection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |