|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpatialSpan
Representation of a gazetteer object found in text. SpatialSpan
s
are often associated with location Entity
objects, but systems should
not depend on that.
Field Summary | |
---|---|
static AnnotationType<SpatialSpan> |
TYPE
|
Method Summary | |
---|---|
Double |
getLatitude()
Returns the latitude of the geographic object (optional). |
Double |
getLongitude()
Returns the longitude of the geographic object (optional). |
List<String> |
getParents()
Returns the list of geographic objects that contain this one in increasing order (optional). |
Integer |
getPopulation()
Returns the human population of the geographic object (optional). |
Methods inherited from interface com.languagecomputer.api.text.Text |
---|
getAnnotationType, getCongruentAnnotations, getDocument, getDocumentID, getEndCharOffset, getIntersectingAnnotations, getRawString, getStartCharOffset, getSubAnnotations, getSuperAnnotations |
Field Detail |
---|
static final AnnotationType<SpatialSpan> TYPE
Method Detail |
---|
Double getLatitude()
null
.
null
if this functionality isn't
implemented.Double getLongitude()
null
.
null
if this functionality isn't
implemented.List<String> getParents()
SpatialSpan
covers the
text Dallas, then the parents could be Texas, United
States, North America, and Earth. Implementors that
choose not to provide the geographic parents should return
null
.
List
of the geographic parents of this
SpatialSpan
, or null
if this functionality
isn't implemented.Integer getPopulation()
null
.
null
if this functionality isn't
implemented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |