public class Graph extends TreeMap<String,Node>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
org.apache.commons.math3.stat.descriptive.SummaryStatistics |
dist_stats
Public members.
|
static double |
INCLUSIVE_COEFF
Public definitions.
|
static double |
KEYWORD_REDUCTION_FACTOR |
protected Node[] |
node_list
Protected members.
|
static double |
STANDARD_ERROR_THRESHOLD |
static double |
TEXTRANK_DAMPING_FACTOR |
| Constructor and Description |
|---|
Graph() |
| Modifier and Type | Method and Description |
|---|---|
double |
getRankThreshold()
Calculate a threshold for the ranked results.
|
protected void |
iterateGraph(int max_iterations)
Iterate through the graph, calculating rank.
|
void |
runTextRank()
Run through N iterations of the TreeRank algorithm, or until
the standard error converges below a given threshold.
|
void |
sortResults(long max_results)
Sort results to identify potential keywords.
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmpty, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, removepublic static final double INCLUSIVE_COEFF
public static final double KEYWORD_REDUCTION_FACTOR
public static final double TEXTRANK_DAMPING_FACTOR
public static final double STANDARD_ERROR_THRESHOLD
public org.apache.commons.math3.stat.descriptive.SummaryStatistics dist_stats
protected Node[] node_list
public void runTextRank()
protected void iterateGraph(int max_iterations)
public void sortResults(long max_results)
public double getRankThreshold()
Copyright © 2017. All rights reserved.