gr.demokritos.iit.jinsect.documentModel.representations
Class DocumentNGramSymWinGraph
java.lang.Object
gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph
gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramSymWinGraph
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class DocumentNGramSymWinGraph
- extends DocumentNGramGraph
- See Also:
- Serialized Form
Method Summary |
void |
createGraphs()
Creates the graph of n-grams, for all the levels specified in the MinSize, MaxSize range. |
void |
createSymEdgesConnecting(Graph gGraph,
java.lang.String sStartNode,
java.util.List lOtherNodes,
java.util.HashMap hAppearenceHistogram)
Creates an edge in [gGraph] connecting [sStartNode] to each node in the
[lOtherNodes] list of nodes, as well as other nodes to [sBaseNode]. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph |
calcCoexistenceImportance, calcCoexistenceImportance, clone, createEdgesConnecting, createWeightedEdgesConnecting, degrade, degredationDegree, deleteItem, getAllNodes, getDataString, getGraphLevel, getGraphLevelByNGramSize, getMaxSize, getMinSize, getWindowSize, InitGraphs, intersectGraph, inverseIntersectGraph, isEmpty, length, loadDataStringFromFile, mergeGraph, nullify, prune, setDataString, toCooccurenceText |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eclLocator
public EdgeCachedLocator eclLocator
- Speeds up edge location in a given graph, by caching last searches.
DocumentNGramSymWinGraph
public DocumentNGramSymWinGraph()
DocumentNGramSymWinGraph
public DocumentNGramSymWinGraph(int iMinSize,
int iMaxSize,
int iCorrelationWindow)
createGraphs
public void createGraphs()
- Description copied from class:
DocumentNGramGraph
- Creates the graph of n-grams, for all the levels specified in the MinSize, MaxSize range.
- Overrides:
createGraphs
in class DocumentNGramGraph
createSymEdgesConnecting
public void createSymEdgesConnecting(Graph gGraph,
java.lang.String sStartNode,
java.util.List lOtherNodes,
java.util.HashMap hAppearenceHistogram)
- Creates an edge in [gGraph] connecting [sStartNode] to each node in the
[lOtherNodes] list of nodes, as well as other nodes to [sBaseNode].
If an edge exists, its weight is increased by [iIncreaseWeight],
else its weight is set to [iStartWeight]
- Parameters:
gGraph
- The graph to usesStartNode
- The node from which all edges beginlOtherNodes
- The list of nodes to which sBaseNode is connected. The list MUST BE ORDERED ASCENDINGLY
based on distance from the sStartNode
.hAppearenceHistogram
- The histogram of appearences of the terms
main
public static void main(java.lang.String[] args)