public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
float |
getAvgDistance(java.util.ArrayList<Node> nodes)
Given a list of nodes, looks at all names and rates
the distance of words in the list
(rating is from [0,1])
looks at pairwise distances between names, and keeps lowest pairwise
distance, adds them up and divides by total
|
java.util.ArrayList<Node> |
splitEntityNames(java.util.ArrayList<Node> nodes)
Given a list of nodes iterates through the list and renames
nodes (ex: MyClass --> My Class
HTML --> HTML
PDFLoader --> PDF Loader
|
public float getAvgDistance(java.util.ArrayList<Node> nodes)
nodes
- public java.util.ArrayList<Node> splitEntityNames(java.util.ArrayList<Node> nodes)
nodes
- the list of nodes