public class BabelSynsetRelation extends Object implements SynsetRelation
| Constructor and Description |
|---|
BabelSynsetRelation(it.uniroma1.lcl.jlt.util.Language language,
BabelPointer pointer,
String target)
Builds a synset relation
|
BabelSynsetRelation(it.uniroma1.lcl.jlt.util.Language language,
BabelPointer pointer,
String target,
double weight,
double normalizedWeight)
Deprecated.
For removal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static BabelSynsetRelation |
fromString(String edge)
Creates a new instance of
BabelSynsetRelation from an input record
in the same format as found in BabelNetIndexField.RELATION |
BabelSynsetID |
getBabelSynsetIDTarget()
Gets the target as a
BabelSynsetID |
it.uniroma1.lcl.jlt.util.Language |
getLanguage()
Returns the relation language
|
double |
getNormalizedWeight()
Deprecated.
For removal.
|
BabelPointer |
getPointer()
Returns the relation type
|
String |
getTarget()
Gets the target ID.
|
double |
getWeight()
Deprecated.
For removal.
|
int |
hashCode() |
void |
setNormalizedWeight(double normalizedWeight)
Deprecated.
For removal.
|
void |
setWeight(double weight)
Deprecated.
For removal.
|
String |
toString() |
public BabelSynsetRelation(it.uniroma1.lcl.jlt.util.Language language,
BabelPointer pointer,
String target)
language - the relation languagepointer - the relation typetarget - the target offset@Deprecated public BabelSynsetRelation(it.uniroma1.lcl.jlt.util.Language language, BabelPointer pointer, String target, double weight, double normalizedWeight)
language - the relation languagepointer - the relation typetarget - the target offsetweight - the relation weightnormalizedWeight - the relation normalized weightpublic it.uniroma1.lcl.jlt.util.Language getLanguage()
public BabelPointer getPointer()
@Deprecated public double getWeight()
@Deprecated public void setWeight(double weight)
weight - the relation weight@Deprecated public double getNormalizedWeight()
@Deprecated public void setNormalizedWeight(double normalizedWeight)
normalizedWeight - the normalized weightpublic String getTarget()
public BabelSynsetID getBabelSynsetIDTarget()
BabelSynsetIDBabelSynsetIDpublic static BabelSynsetRelation fromString(String edge)
BabelSynsetRelation from an input record
in the same format as found in BabelNetIndexField.RELATIONedge - the String representation of the edgeBabelSynsetRelation from a string representation.Copyright © 2016–2022. All rights reserved.