public class SpotMatch extends Object implements Comparable<SpotMatch>
field
where the spot was matchedEntityMatchList
,
Field
,
Spot
Modifier and Type | Field and Description |
---|---|
protected EntityMatchList |
entities |
protected Field |
field |
protected Spot |
spot |
Constructor and Description |
---|
SpotMatch(Spot spot) |
SpotMatch(Spot spot,
EntityMatchList entities) |
SpotMatch(Spot s,
Field field) |
SpotMatch(Spot spot,
List<Entity> entities) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SpotMatch m) |
boolean |
equals(Object obj) |
int |
getEnd() |
EntityMatchList |
getEntities() |
double |
getEntityCommonness(Entity entity) |
int |
getFrequency() |
int |
getLinkFrequency() |
double |
getLinkProbability() |
String |
getMention() |
double |
getProbability()
Returns probability to be a link to a entity for the text of this spot,
it is computed dividing the number of documents in Wikipedia containing
this spot as a anchor by the number of documents in wikipedia containing
this spot as simple text.
|
Spot |
getSpot() |
int |
getStart() |
int |
hashCode() |
boolean |
overlaps(SpotMatch s)
Returns true if this spot and the given spots overlaps in the annotated
text, e.g.,
"neruda pablo picasso" -> 'neruda pablo' 'pablo picasso'
. |
void |
setEnd(int end) |
void |
setEntities(EntityMatchList entities) |
void |
setProbability(double probability) |
void |
setSpot(Spot spot) |
void |
setStart(int start) |
protected Spot spot
protected EntityMatchList entities
protected Field field
public SpotMatch(Spot spot)
public SpotMatch(Spot spot, EntityMatchList entities)
public void setProbability(double probability)
public int compareTo(SpotMatch m)
compareTo
in interface Comparable<SpotMatch>
public int getStart()
public void setStart(int start)
public int getEnd()
public void setEnd(int end)
public EntityMatchList getEntities()
public Spot getSpot()
public void setEntities(EntityMatchList entities)
public String getMention()
public void setSpot(Spot spot)
public double getProbability()
public boolean overlaps(SpotMatch s)
"neruda pablo picasso" -> 'neruda pablo' 'pablo picasso'
.s
- - The spot to checkpublic double getEntityCommonness(Entity entity)
public int getFrequency()
public int getLinkFrequency()
public double getLinkProbability()
Copyright © 2013. All rights reserved.