public class OccurrenceInfo extends Object implements Comparable<OccurrenceInfo>
Modifier and Type | Field and Description |
---|---|
String |
context
A maximum 3 sentences long textual context snippet including the mention.
|
int |
endPosInContext
The end offset to locate the mention inside the context.
|
String |
mention
The context part that actually references an entity
|
double |
order
Ordering info such as position in source document to be able to order the
occurrences relative to one another.
|
int |
startPosInContext
The start offset to locate the mention inside the context.
|
Constructor and Description |
---|
OccurrenceInfo(String context,
int startPosInContext,
int endPosInContext) |
OccurrenceInfo(String mention,
String context) |
Modifier and Type | Method and Description |
---|---|
Map<String,Serializable> |
asQuoteyMap() |
int |
compareTo(OccurrenceInfo o) |
boolean |
equals(Object obj) |
String |
getMention() |
String |
getPrefixContext() |
String |
getSuffixContext() |
int |
hashCode() |
String |
toString() |
OccurrenceInfo |
withOrder(double order)
The end offset to locate the mention inside the context.
|
public final String mention
public final String context
public final int startPosInContext
public final int endPosInContext
public double order
public OccurrenceInfo(String context, int startPosInContext, int endPosInContext)
public Map<String,Serializable> asQuoteyMap()
public String getMention()
public String getPrefixContext()
public String getSuffixContext()
public int compareTo(OccurrenceInfo o)
compareTo
in interface Comparable<OccurrenceInfo>
public OccurrenceInfo withOrder(double order)
Copyright © 2011 Nuxeo SA. All Rights Reserved.