public class BabelSynsetIDRelation extends Object
Constructor and Description |
---|
BabelSynsetIDRelation(it.uniroma1.lcl.jlt.util.Language language,
BabelPointer pointer,
String target) |
BabelSynsetIDRelation(it.uniroma1.lcl.jlt.util.Language language,
BabelPointer pointer,
String target,
double weight,
double normalizedWeight) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static BabelSynsetIDRelation |
fromString(String edge)
Creates a new instance of
BabelSynsetIDRelation from an input record
in the same format as found in BabelNetIndexField.RELATION |
BabelSynsetID |
getBabelSynsetIDTarget()
Get BabelSynsetID target
|
it.uniroma1.lcl.jlt.util.Language |
getLanguage() |
double |
getNormalizedWeight()
Getter for the weight normalized across all relations of the same
knowledge source, namely such that \sum_{e \in E_out^{WN/WIKI}} w(e) = 1
|
BabelPointer |
getPointer() |
String |
getTarget()
Get id target
|
double |
getWeight()
Getter for the weight of the relation
|
int |
hashCode() |
void |
setNormalizedWeight(double normalizedWeight) |
void |
setWeight(double weight) |
String |
toString() |
public BabelSynsetIDRelation(it.uniroma1.lcl.jlt.util.Language language, BabelPointer pointer, String target)
public BabelSynsetIDRelation(it.uniroma1.lcl.jlt.util.Language language, BabelPointer pointer, String target, double weight, double normalizedWeight)
public it.uniroma1.lcl.jlt.util.Language getLanguage()
public BabelPointer getPointer()
public double getWeight()
public void setWeight(double weight)
public double getNormalizedWeight()
public void setNormalizedWeight(double normalizedWeight)
public String getTarget()
public BabelSynsetID getBabelSynsetIDTarget()
public static BabelSynsetIDRelation fromString(String edge)
BabelSynsetIDRelation
from an input record
in the same format as found in BabelNetIndexField.RELATION
edge
- BabelSynsetIDRelation
from a string representation.Copyright © 2016. All rights reserved.