public class MeshSimilarity extends Object implements SimilarityMetric
Similarity measures of comparing two MeSH nodes
Copyright: Copyright (c) 2006
Company: Drexel University
| Modifier and Type | Field and Description |
|---|---|
static int |
FEATURE |
static int |
JIANG |
static int |
JING |
static int |
KNAPPE |
static int |
LEACOCK |
static int |
LI |
static int |
LIN |
static int |
MAO |
static int |
MIN_LEN |
static int |
RESINK |
static int |
WU_PALMER |
| Constructor and Description |
|---|
MeshSimilarity(String hierFile,
int similarityMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
genSimilarityMatrix(String matrixFile,
double threshold) |
String[] |
getAncestors(String path) |
String |
getCommonParent(String path1,
String path2) |
int |
getDepth(String path) |
ArrayList |
getDescendant(String path) |
int |
getDescendantNum(String path) |
int |
getMaxPathLen(String path) |
MeshNodeList |
getMeshNodeList() |
int |
getMinLen(String path1,
String path2) |
int |
getMinLen(String path1,
String path2,
String coParent) |
String |
getParent(String path) |
String |
getRoot(String path) |
String[] |
getSharedAncestors(String path1,
String path2) |
double |
getSimilarity(String path1,
String path2) |
double |
getSimilarity(Term a,
Term b)
Computes the similarity between two onotlogical terms.
|
String[] |
getUnionAncestors(String path1,
String path2) |
boolean |
isRoot(String path) |
void |
trainWeightByInformationContent(ArrayList trainings) |
public static final int MIN_LEN
public static final int WU_PALMER
public static final int LI
public static final int LEACOCK
public static final int JING
public static final int LIN
public static final int JIANG
public static final int RESINK
public static final int MAO
public static final int FEATURE
public static final int KNAPPE
public MeshSimilarity(String hierFile, int similarityMode)
public boolean isRoot(String path)
public int getDescendantNum(String path)
public int getMaxPathLen(String path)
public int getDepth(String path)
public MeshNodeList getMeshNodeList()
public void trainWeightByInformationContent(ArrayList trainings)
public void genSimilarityMatrix(String matrixFile, double threshold)
public double getSimilarity(Term a, Term b)
SimilarityMetricgetSimilarity in interface SimilarityMetrica - the first termb - the second termCopyright © 2018 JULIE Lab, Germany. All rights reserved.