T - public class LinkedSpan<T extends BaseLink> extends Span
| Constructor and Description |
|---|
LinkedSpan(ArrayList<T> linkedEntries,
int s,
int e) |
LinkedSpan(ArrayList<T> linkedEntries,
int s,
int e,
String type) |
LinkedSpan(ArrayList<T> linkedEntries,
int s,
int e,
String type,
double prob) |
LinkedSpan(ArrayList<T> linkedEntries,
Span span,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks if the specified span is equal to the current span.
|
ArrayList<T> |
getLinkedEntries()
Returns the n best linked entries from an external data source.
|
String |
getSearchTerm()
Returns the search term that was used to link this span to an external data
source
|
int |
getSentenceid()
Returns the id or index of the sentence from which this span was extracted
|
int |
hashCode()
Generates a hash code of the current span.
|
void |
setLinkedEntries(ArrayList<T> linkedEntries)
Sets the n best linked entries from an external data source.
|
void |
setSearchTerm(String searchTerm)
sets the search term that is used to link this span to an external data
source
|
void |
setSentenceid(int sentenceid)
sets the id or index of the sentence from which this span was extracted
|
String |
toString()
Generates a human readable string.
|
compareTo, contains, contains, crosses, getCoveredText, getEnd, getProb, getStart, getType, intersects, length, spansToStrings, spansToStrings, startsWith, trimpublic ArrayList<T> getLinkedEntries()
public void setLinkedEntries(ArrayList<T> linkedEntries)
public int getSentenceid()
public void setSentenceid(int sentenceid)
sentenceid - public String getSearchTerm()
public void setSearchTerm(String searchTerm)
searchTerm - public String toString()
Spanpublic int hashCode()
SpanCopyright © 2015 The Apache Software Foundation. All rights reserved.