public class LinkInfo extends Object implements Comparable<LinkInfo>
Constructor and Description |
---|
LinkInfo() |
LinkInfo(LocalLink link) |
LinkInfo(Token token) |
Modifier and Type | Method and Description |
---|---|
void |
addScore(int wpId,
double score) |
int |
compareTo(LinkInfo o) |
String |
getAnchortext()
Text of possible link.
|
Integer |
getDest() |
int |
getEndChar() |
Integer |
getKnownDest()
Wikipedia id of destination this is an existing link, otherwise null (used for training)
|
double |
getLinkProbability()
Probability that specified text represents a link.
|
PrunedCounts<Integer> |
getPrior()
Prior distribution of links associated with text.
|
Double |
getScore() |
Scoreboard<Integer> |
getScores()
Scores for outbound pages, ordered by score (track top 5).
|
int |
getStartChar()
Range of the anchortext token.
|
int |
getTopPriorDestination() |
boolean |
hasOnePossibility() |
boolean |
intersects(gnu.trove.set.TIntSet used) |
void |
markAsUsed(gnu.trove.set.TIntSet used) |
void |
setAnchortext(String anchortext) |
void |
setDest(Integer dest) |
void |
setEndChar(int endChar) |
void |
setKnownDest(Integer knownDest) |
void |
setLinkProbability(double linkProbability) |
void |
setPrior(PrunedCounts<Integer> prior) |
void |
setScore(Double score) |
void |
setScores(Scoreboard<Integer> scores) |
void |
setStartChar(int startChar) |
LocalLink |
toLocalLink(Language language,
int wpId) |
public LinkInfo()
public LinkInfo(Token token)
public LinkInfo(LocalLink link)
public boolean hasOnePossibility()
public int getTopPriorDestination()
public void addScore(int wpId, double score)
public int compareTo(LinkInfo o)
compareTo
in interface Comparable<LinkInfo>
public boolean intersects(gnu.trove.set.TIntSet used)
public void markAsUsed(gnu.trove.set.TIntSet used)
public String getAnchortext()
public void setAnchortext(String anchortext)
public double getLinkProbability()
public void setLinkProbability(double linkProbability)
public PrunedCounts<Integer> getPrior()
public void setPrior(PrunedCounts<Integer> prior)
public Scoreboard<Integer> getScores()
public void setScores(Scoreboard<Integer> scores)
public Integer getKnownDest()
public void setKnownDest(Integer knownDest)
public int getStartChar()
public void setStartChar(int startChar)
public int getEndChar()
public void setEndChar(int endChar)
public Integer getDest()
public void setDest(Integer dest)
public Double getScore()
public void setScore(Double score)
Copyright © 2014. All rights reserved.