public class EntityMatch extends Object implements Comparable<EntityMatch>
Modifier and Type | Class and Description |
---|---|
static class |
EntityMatch.SortByPosition |
static class |
EntityMatch.SpotLengthComparator |
Constructor and Description |
---|
EntityMatch(Entity e,
double score,
SpotMatch spot) |
EntityMatch(int id,
double score,
SpotMatch spot) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EntityMatch em) |
boolean |
equals(Object obj) |
double |
getCommonness() |
int |
getEnd() |
Entity |
getEntity() |
int |
getFrequency() |
int |
getId() |
String |
getMention() |
double |
getScore() |
SpotMatch |
getSpot() |
double |
getSpotLinkProbability() |
int |
getStart() |
int |
hashCode() |
boolean |
overlaps(EntityMatch s)
Returns true if this spot and the given spots overlaps in the annotated
text, e.g.
|
void |
setEntity(Entity entity) |
void |
setId(int id) |
void |
setScore(double score) |
void |
setSpot(SpotMatch spot) |
String |
toEntityString() |
String |
toString() |
public EntityMatch(int id, double score, SpotMatch spot)
public double getCommonness()
public int compareTo(EntityMatch em)
compareTo
in interface Comparable<EntityMatch>
public Entity getEntity()
public int getId()
public double getScore()
public SpotMatch getSpot()
public int getStart()
public int getEnd()
public String getMention()
public void setEntity(Entity entity)
public void setId(int id)
public void setScore(double score)
public void setSpot(SpotMatch spot)
public String toEntityString()
public int getFrequency()
public double getSpotLinkProbability()
public boolean overlaps(EntityMatch s)
"neruda pablo picasso"
. neruda pablo
and pablo picasso
overlaps.s
- the entity match to checkCopyright © 2013. All rights reserved.